From cheguebeara at ...626... Tue Apr 1 00:10:19 2008 From: cheguebeara at ...626... (Che Guebeara) Date: Mon, 31 Mar 2008 18:10:19 -0400 Subject: [Gambas-user] gambas2-gb-pdf and libpoppler1 issue In-Reply-To: <200804010815.27137.rterry@...1822...> References: <47F0DCC9.2070804@...626...> <20080331120730.446a169d@...1835...> <200804010815.27137.rterry@...1822...> Message-ID: <20080331181019.19e122e5@...1835...> *sigh* What I really needed... Well, let's see... Back when I STARTED using Linux... about Slackware 1.1 or was it 1.2 in the EARLY 90's... we compiled the kernels by hand... Enough of a story... or perhaps you would like me to tell you war stories about hand writing and compiling a connection layer between my HP9000 (HP-Ux 9.x) box and a Windows 3.x network...?? What I wanted was some sort of clarification about the libpoppler1 vs. libpoppler2 crap and how it affects the pdf / gtk.ext part of the install so that I would not have to hack Gambas2 or my Update manager... Then again maybe I should just go back to how I did it on mainframes in the 70's??? Geez... I don't need a song and dance about why your distro is better than my distro... Mark On Tue, 1 Apr 2008 08:15:27 +1100 richard terry wrote: > On Tue, 1 Apr 2008 03:07:30 am Che Guebeara wrote: > > Hi, > > > > I saw something about this on the ubuntu forums but no resolution. > > > > I upgraded to 2.4.1 and all went well until my upgrade manager > > flagged gb-pdf and gb-gtk-ext and would not upgrade them or clear. > > Tried everything including punting gambas2 and reinstalling it. > > > > At that point I cant reinstall Gambas2 as it says there are > > unresolved dependencies on gb-pdf related to libpoppler1 which is > > obsoleted. > > > > Is there a workaround (I searched the list here and nadas that I can > > see)? As of right now I am sans-Gambas and in the middle of some > > new app ideas. > > > > Pretty easy work around. If you've been in linux for any number of > years you'd know there are two disto package formats that suck big > time. > > Firstly (as anyone knows so it goes almost without saying) rpm based > systems. > > Secondly as your eventually finding out .deb based systems. > > Both these invariably get tangled up in dependancy messes if your > trying to stay on a cutting edge. > > Do yourself a favour and try ARCH linux (www.archlinux.org) and > you'll never look back... mind you you'll have to get your hands > alittle dirty, but hey, the days of that sort of dependancy hell are > gone forever. > > Regards > > Richard > > > Thanks, > > Mark > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac > >e _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1822... Tue Apr 1 00:19:13 2008 From: rterry at ...1822... (richard terry) Date: Tue, 1 Apr 2008 09:19:13 +1100 Subject: [Gambas-user] gambas2-gb-pdf and libpoppler1 issue In-Reply-To: <20080331181019.19e122e5@...1835...> References: <47F0DCC9.2070804@...626...> <200804010815.27137.rterry@...1822...> <20080331181019.19e122e5@...1835...> Message-ID: <200804010919.13630.rterry@...1822...> On Tue, 1 Apr 2008 09:10:19 am Che Guebeara wrote: > *sigh* > > What I really needed... Sorry to offend, no offence intended, I don't know how to put smileys after my comments, must have mis-interpeted your post. Well, me too I go a little way back , I used to program in assembler/FORTH (my favourite language ever), built a 1MB RAM disk from 8k chips piggybacked on top of each other, in the early 80's, like a block of flats to instantly load the o/s, back in those days we used to have to move data around between chips on the mainboard to 'get it out of the way' of what was coming - so limited was the memory. Built my own popup windowing system and once put debian on a DX100 including the gui.... We all share interesting experiences. But, your experience starts a decade before mine so I'll bow to that and I'm essentially a computer klutz - I manage to screw up and kill anything, so that's why I stick to a distro that is fairly tolerant of my unpredictability in the use of a computer - which in essence also makes me a fabulous beta-tester. Regards and once again, no offence intended. Richard > > Well, let's see... > > Back when I STARTED using Linux... about Slackware 1.1 or was it 1.2 in > the EARLY 90's... we compiled the kernels by hand... > > Enough of a story... or perhaps you would like me to tell you war > stories about hand writing and compiling a connection layer between my > HP9000 (HP-Ux 9.x) box and a Windows 3.x network...?? > > What I wanted was some sort of clarification about the libpoppler1 vs. > libpoppler2 crap and how it affects the pdf / gtk.ext part of the > install so that I would not have to hack Gambas2 or my Update manager... > > Then again maybe I should just go back to how I did it on mainframes in > the 70's??? > > Geez... I don't need a song and dance about why your distro is better > than my distro... > > Mark > > On Tue, 1 Apr 2008 08:15:27 +1100 > > richard terry wrote: > > On Tue, 1 Apr 2008 03:07:30 am Che Guebeara wrote: > > > Hi, > > > > > > I saw something about this on the ubuntu forums but no resolution. > > > > > > I upgraded to 2.4.1 and all went well until my upgrade manager > > > flagged gb-pdf and gb-gtk-ext and would not upgrade them or clear. > > > Tried everything including punting gambas2 and reinstalling it. > > > > > > At that point I cant reinstall Gambas2 as it says there are > > > unresolved dependencies on gb-pdf related to libpoppler1 which is > > > obsoleted. > > > > > > Is there a workaround (I searched the list here and nadas that I can > > > see)? As of right now I am sans-Gambas and in the middle of some > > > new app ideas. > > > > Pretty easy work around. If you've been in linux for any number of > > years you'd know there are two disto package formats that suck big > > time. > > > > Firstly (as anyone knows so it goes almost without saying) rpm based > > systems. > > > > Secondly as your eventually finding out .deb based systems. > > > > Both these invariably get tangled up in dependancy messes if your > > trying to stay on a cutting edge. > > > > Do yourself a favour and try ARCH linux (www.archlinux.org) and > > you'll never look back... mind you you'll have to get your hands > > alittle dirty, but hey, the days of that sort of dependancy hell are > > gone forever. > > > > Regards > > > > Richard > > > > > Thanks, > > > Mark > > > > > > ----------------------------------------------------------------------- > > >-- Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/market > > >plac e _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl > >ace _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Apr 1 00:29:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Apr 2008 00:29:53 +0200 Subject: [Gambas-user] IDE ERROR : Type mismatch error (2.99 Build 1276) In-Reply-To: <200804010847.01753.rterry@...1822...> References: <200804010847.01753.rterry@...1822...> Message-ID: <200804010029.53589.gambas@...1...> On lundi 31 mars 2008, richard terry wrote: > This is reproducable and came up suddenly as I mistyped. > > The key sequence was: > s > The cursor was at the left margin of the editor I hit the tab key (and then > the space bar to line up the text with that on the line above above as I'd > obviously not tabbed the line above correctly). > > I then typed this: > > DIM sTempY > > and accidently bumped the space bar so the text would have been > > Dim STempy > > I then hit the backspace key to go backwards and up came the error. > > Doing the same thing in a 2.4 editor after you hit the backspace up pops a > prompt [step] as per the piccies below. OK, fixed! -- Benoit Minisini From rterry at ...1822... Tue Apr 1 01:16:46 2008 From: rterry at ...1822... (richard terry) Date: Tue, 1 Apr 2008 10:16:46 +1100 Subject: [Gambas-user] How to remove the marquee of a list (ie the highlighted line color) In-Reply-To: <976ad9050803300220i3e673c1evcc7f0afb0183b496@...627...> References: <200803292341.28305.rterry@...1822...> <976ad9050803300220i3e673c1evcc7f0afb0183b496@...627...> Message-ID: <200804011016.46128.rterry@...1822...> On Sun, 30 Mar 2008 08:20:15 pm you wrote: > On 3/29/08, richard terry wrote: > > I've two lists one above the other. When the second list is clicked on, I > > want > > to remove the marquee from the first one. > > > > I've tried. list.item.selected = False and it dosn't seem to do anything. > > > > Any help appreciated. > > Hi, I assume you use ListView. Using a column view, tried the same code and got a 'stack overflow' message, maybe you could try and see if you get the same. Richard > > you can use ListViewObject.SelectAll(False) > > NB: I'm using gambas3 svn, retrieved 2 days ago. From robert.c.rowe at ...626... Tue Apr 1 01:31:56 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Mon, 31 Mar 2008 19:31:56 -0400 Subject: [Gambas-user] Collections Message-ID: <47F1746C.20607@...626...> Is the a way to access a collection's items in the order that they were added? What I really need is an index property but I didn't see one. Robert Rowe From gambas at ...1... Tue Apr 1 01:35:33 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Apr 2008 01:35:33 +0200 Subject: [Gambas-user] Collections In-Reply-To: <47F1746C.20607@...626...> References: <47F1746C.20607@...626...> Message-ID: <200804010135.33216.gambas@...1...> On mardi 1 avril 2008, Robert Rowe wrote: > Is the a way to access a collection's items in the order that they were > added? What I really need is an index property but I didn't see one. > > Robert Rowe > Collection have no index property. But you have the guarantee that if you enumerate it, you will get the element in the order they were added to it. Regards, -- Benoit Minisini From dcamposf at ...626... Tue Apr 1 01:52:33 2008 From: dcamposf at ...626... (Daniel Campos) Date: Tue, 1 Apr 2008 01:52:33 +0200 Subject: [Gambas-user] gambas2-gb-pdf and libpoppler1 issue In-Reply-To: <200804010919.13630.rterry@...1822...> References: <47F0DCC9.2070804@...626...> <200804010815.27137.rterry@...1822...> <20080331181019.19e122e5@...1835...> <200804010919.13630.rterry@...1822...> Message-ID: <7259b5ae0803311652y6599dda4oe14719e2f7d540ff@...627...> Hi: Libpoppler entered in most distros when It was unstable, it is not a good idea to add unstable software in a stable distro, however in that case they needed an answer for PDF management problem and they decided to include it, the same happened with Dbus, for example. As expected, libpoppler API changed, so it is not possible to run gb.pdf with the different libpoppler1 external interface. The only way to do it in an old distribution is adding libpoppler2 by hand, that is compiling it from sources, and then compiling Gambas2, or if you find backports for your distribution, adding new repositories. Daniel From robert.c.rowe at ...626... Tue Apr 1 01:57:04 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Mon, 31 Mar 2008 19:57:04 -0400 Subject: [Gambas-user] Collections In-Reply-To: <200804010135.33216.gambas@...1...> References: <47F1746C.20607@...626...> <200804010135.33216.gambas@...1...> Message-ID: <47F17A50.2030208@...626...> Thanks. I thought that I tried that and didn't get them back in order but I may be mistaken. I'll try it again. Robert Rowe Benoit Minisini wrote: > On mardi 1 avril 2008, Robert Rowe wrote: > >> Is the a way to access a collection's items in the order that they were >> added? What I really need is an index property but I didn't see one. >> >> Robert Rowe >> >> > > Collection have no index property. But you have the guarantee that if you > enumerate it, you will get the element in the order they were added to it. > > Regards, > > From hscast at ...407... Tue Apr 1 03:34:44 2008 From: hscast at ...407... (Scott Castaline) Date: Mon, 31 Mar 2008 21:34:44 -0400 Subject: [Gambas-user] Installing 2.4.1 on Fedora 7 Message-ID: <47F19134.6010100@...407...> I have Fedora 7, (2.6.23.15-80.fc7) installed. I am trying to compile and install Gambas 2.4.1 and cannot seem to get any where. When I run ./configure -C I get the following errors: * Failed to find file libintl.so configure: This library should be located inside the system C library checking for optional external charset conversion library headers... /usr/local/include/ checking for optional external charset conversion library libraries... /usr/local/lib/ checking for foreign function interface component with pkg-config... no configure: Cannnot find libffi support with pkg-config checking for foreign function interface headers... no * Failed to find file ffi.h checking for foreign function interface libraries... /usr/local/lib/ configure: WARNING: *** foreign function interface is disabled configure: error: libffi library and headers are required configure: error: ./configure failed for main I found the source code for libffi.so, libffi-3.0.4, dl'd ran ./configure, make, make install, all as root. It still could not find it even though the header files are in /usr/local/lib/include and the other files are in /usr/local/lib. I was also getting a message about missing libiconv.so and after a long search I found libiconv-1.12 and did the same for that as libffi. The error for libiconv went away but the libintl and libffi were still there. I finally founf something about gettext. I checked through my pkgmgr and found that I had gettext but not gettext-devel, so installed that. I'm still getting the above. Any ideas? From robert.c.rowe at ...626... Tue Apr 1 03:38:07 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Mon, 31 Mar 2008 21:38:07 -0400 Subject: [Gambas-user] Installing 2.4.1 on Fedora 7 In-Reply-To: <47F19134.6010100@...407...> References: <47F19134.6010100@...407...> Message-ID: <47F191FF.3040708@...626...> I think that packages exist for Fedora. Have you tried using yum? Robert Rowe Scott Castaline wrote: > I have Fedora 7, (2.6.23.15-80.fc7) installed. I am trying to compile > and install Gambas 2.4.1 and cannot seem to get any where. When I run > ./configure -C I get the following errors: > > * Failed to find file libintl.so > configure: This library should be located inside the system C library > checking for optional external charset conversion library headers... > /usr/local/include/ > checking for optional external charset conversion library libraries... > /usr/local/lib/ > checking for foreign function interface component with pkg-config... no > configure: Cannnot find libffi support with pkg-config > checking for foreign function interface headers... no > * Failed to find file ffi.h > checking for foreign function interface libraries... /usr/local/lib/ > configure: WARNING: *** foreign function interface is disabled > configure: error: libffi library and headers are required > configure: error: ./configure failed for main > > I found the source code for libffi.so, libffi-3.0.4, dl'd ran > ./configure, make, make install, all as root. It still could not find it > even though the header files are in /usr/local/lib/include and the other > files are in /usr/local/lib. I was also getting a message about missing > libiconv.so and after a long search I found libiconv-1.12 and did the > same for that as libffi. The error for libiconv went away but the > libintl and libffi were still there. I finally founf something about > gettext. I checked through my pkgmgr and found that I had gettext but > not gettext-devel, so installed that. I'm still getting the above. > > Any ideas? > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From hscast at ...407... Tue Apr 1 03:56:12 2008 From: hscast at ...407... (Scott Castaline) Date: Mon, 31 Mar 2008 21:56:12 -0400 Subject: [Gambas-user] Installing 2.4.1 on Fedora 7 In-Reply-To: <47F191FF.3040708@...626...> References: <47F19134.6010100@...407...> <47F191FF.3040708@...626...> Message-ID: <47F1963C.9050800@...407...> Robert Rowe wrote: > I think that packages exist for Fedora. Have you tried using yum? > > Robert Rowe > > Scott Castaline wrote: > >> I have Fedora 7, (2.6.23.15-80.fc7) installed. I am trying to compile >> and install Gambas 2.4.1 and cannot seem to get any where. When I run >> ./configure -C I get the following errors: >> >> * Failed to find file libintl.so >> configure: This library should be located inside the system C library >> checking for optional external charset conversion library headers... >> /usr/local/include/ >> checking for optional external charset conversion library libraries... >> /usr/local/lib/ >> checking for foreign function interface component with pkg-config... no >> configure: Cannnot find libffi support with pkg-config >> checking for foreign function interface headers... no >> * Failed to find file ffi.h >> checking for foreign function interface libraries... /usr/local/lib/ >> configure: WARNING: *** foreign function interface is disabled >> configure: error: libffi library and headers are required >> configure: error: ./configure failed for main >> >> I found the source code for libffi.so, libffi-3.0.4, dl'd ran >> ./configure, make, make install, all as root. It still could not find it >> even though the header files are in /usr/local/lib/include and the other >> files are in /usr/local/lib. I was also getting a message about missing >> libiconv.so and after a long search I found libiconv-1.12 and did the >> same for that as libffi. The error for libiconv went away but the >> libintl and libffi were still there. I finally founf something about >> gettext. I checked through my pkgmgr and found that I had gettext but >> not gettext-devel, so installed that. I'm still getting the above. >> >> Any ideas? >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > I tried looking earlier but only found 1.0.19 and now 2.4.1 is there. Did they just add it today? From rospolosco at ...152... Tue Apr 1 04:21:17 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 1 Apr 2008 04:21:17 +0200 Subject: [Gambas-user] How to remove the marquee of a list (ie the highlighted line color) In-Reply-To: <200804011016.46128.rterry@...1822...> References: <200803292341.28305.rterry@...1822...> <976ad9050803300220i3e673c1evcc7f0afb0183b496@...627...> <200804011016.46128.rterry@...1822...> Message-ID: <200804010421.18022.rospolosco@...152...> Alle 01:16, marted? 1 aprile 2008, richard terry ha scritto: > On Sun, 30 Mar 2008 08:20:15 pm you wrote: > > On 3/29/08, richard terry wrote: > > > I've two lists one above the other. When the second list is clicked on, > > > I want > > > to remove the marquee from the first one. > > > > > > I've tried. list.item.selected = False and it dosn't seem to do > > > anything. > > > > > > Any help appreciated. > > > > Hi, I assume you use ListView. > > Using a column view, tried the same code and got a 'stack overflow' > message, maybe you could try and see if you get the same. > With ColumnView this remove the marquee of a list: ColumnView1.Current.Selected = FALSE Stefano > > NB: I'm using gambas3 svn, retrieved 2 days ago. > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From cheguebeara at ...626... Tue Apr 1 04:28:52 2008 From: cheguebeara at ...626... (Che Guebeara) Date: Mon, 31 Mar 2008 22:28:52 -0400 Subject: [Gambas-user] gambas2-gb-pdf and libpoppler1 issue In-Reply-To: <7259b5ae0803311652y6599dda4oe14719e2f7d540ff@...627...> References: <47F0DCC9.2070804@...626...> <200804010815.27137.rterry@...1822...> <20080331181019.19e122e5@...1835...> <200804010919.13630.rterry@...1822...> <7259b5ae0803311652y6599dda4oe14719e2f7d540ff@...627...> Message-ID: <20080331222852.79e39347@...1835...> Interesting thing happened actually... I couldn't reinstall Gambas2 because of the unresolved pdf issue. Checking my repos I found the azores repo for feisty and gutsy (I upgraded this box rather than a clean install). Unchecking the feisty and reloading the repos I was able to shutdown Synaptic and install Gambas2 fine with apt-get in a terminal.... AND the pdf component installed fine along with the meta, which wasnt happening before... Long story short it might be worth having a look in your repos for outdated info esp if there is a version dupe like that. Thanks Daniel! Mark On Tue, 1 Apr 2008 01:52:33 +0200 "Daniel Campos" wrote: > Hi: > > Libpoppler entered in most distros when It was unstable, it is not a > good idea to add unstable software in a stable distro, however in that > case they needed an answer for PDF management problem and they decided > to include it, the same happened with Dbus, for example. As expected, > libpoppler API changed, so it is not possible to run gb.pdf with the > different libpoppler1 external interface. > > The only way to do it in an old distribution is adding libpoppler2 by > hand, that is compiling it from sources, and then compiling Gambas2, > or if you find backports for your distribution, adding new > repositories. > > Daniel > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From robert.c.rowe at ...626... Tue Apr 1 04:38:57 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Mon, 31 Mar 2008 22:38:57 -0400 Subject: [Gambas-user] Installing 2.4.1 on Fedora 7 In-Reply-To: <47F1963C.9050800@...407...> References: <47F19134.6010100@...407...> <47F191FF.3040708@...626...> <47F1963C.9050800@...407...> Message-ID: <47F1A041.70307@...626...> No idea. I just remembered seeing Fedora packages on the download page. The package maintainers release new packages quite regularly. :) Robert Rowe Scott Castaline wrote: > Robert Rowe wrote: > >> I think that packages exist for Fedora. Have you tried using yum? >> >> Robert Rowe >> >> Scott Castaline wrote: >> >> >>> I have Fedora 7, (2.6.23.15-80.fc7) installed. I am trying to compile >>> and install Gambas 2.4.1 and cannot seem to get any where. When I run >>> ./configure -C I get the following errors: >>> >>> * Failed to find file libintl.so >>> configure: This library should be located inside the system C library >>> checking for optional external charset conversion library headers... >>> /usr/local/include/ >>> checking for optional external charset conversion library libraries... >>> /usr/local/lib/ >>> checking for foreign function interface component with pkg-config... no >>> configure: Cannnot find libffi support with pkg-config >>> checking for foreign function interface headers... no >>> * Failed to find file ffi.h >>> checking for foreign function interface libraries... /usr/local/lib/ >>> configure: WARNING: *** foreign function interface is disabled >>> configure: error: libffi library and headers are required >>> configure: error: ./configure failed for main >>> >>> I found the source code for libffi.so, libffi-3.0.4, dl'd ran >>> ./configure, make, make install, all as root. It still could not find it >>> even though the header files are in /usr/local/lib/include and the other >>> files are in /usr/local/lib. I was also getting a message about missing >>> libiconv.so and after a long search I found libiconv-1.12 and did the >>> same for that as libffi. The error for libiconv went away but the >>> libintl and libffi were still there. I finally founf something about >>> gettext. I checked through my pkgmgr and found that I had gettext but >>> not gettext-devel, so installed that. I'm still getting the above. >>> >>> Any ideas? >>> >>> ------------------------------------------------------------------------- >>> Check out the new SourceForge.net Marketplace. >>> It's the best place to buy or sell services for >>> just about anything Open Source. >>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>> >>> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > I tried looking earlier but only found 1.0.19 and now 2.4.1 is there. > Did they just add it today? > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From rterry at ...1822... Tue Apr 1 05:59:07 2008 From: rterry at ...1822... (richard terry) Date: Tue, 1 Apr 2008 14:59:07 +1100 Subject: [Gambas-user] How to remove the marquee of a list (ie the highlighted line color) In-Reply-To: <200804010421.18022.rospolosco@...152...> References: <200803292341.28305.rterry@...1822...> <200804011016.46128.rterry@...1822...> <200804010421.18022.rospolosco@...152...> Message-ID: <200804011459.07951.rterry@...1822...> On Tue, 1 Apr 2008 01:21:17 pm you wrote: Stiill can't get this to work - I get an overflow error the minute I introduce any of the code (commented out in the example below): > Alle 01:16, marted? 1 aprile 2008, richard terry ha scritto: > > On Sun, 30 Mar 2008 08:20:15 pm you wrote: > > > On 3/29/08, richard terry wrote: > > > > I've two lists one above the other. When the second list is clicked > > > > on, I want > > > > to remove the marquee from the first one. > > > > > > > > I've tried. list.item.selected = False and it dosn't seem to do > > > > anything. > > > > > > > > Any help appreciated. > > > > > > Hi, I assume you use ListView. > > > > Using a column view, tried the same code and got a 'stack overflow' > > message, maybe you could try and see if you get the same. > > With ColumnView this remove the marquee of a list: > > ColumnView1.Current.Selected = FALSE Public Sub ProblemLists_Select() '-------------------------------------------------------------------------------- 'when user clicks on either active or inactive problem list 'set the value of iProblemKey, to that of the selected item 'hence PH[sProblemKey] becomes the selected problem '-------------------------------------------------------------------------------- Select Case Last.tag Case "active problems" cvwProblemsActive.MoveCurrent cvwProblemsActive.Item.Selected = True sProblemKey = cvwProblemsActive.Item.key ---- I tried this first: ' cvwProblemsInActive.Current.Selected = False --- then this next ' If cvwProblemsInActive.count Then ' cvwProblemsInActive.Current.Selected = False ' End If -- then this next ' If cvwProblemsInActive.count And cvwProblemsInActive.Current.Selected Then ' cvwProblemsInActive.Current.Selected = False ' End If And they all give 'overflow errors' Take any of that code out and the routine works normally, albeit without removing the marquee. I'll try and do a mini-project tonight with just the listview on it and see what happens and report back Case "inactive problems" cvwProblemsInActive.MoveCurrent cvwProblemsInActive.Item.Selected = True sProblemKey = cvwProblemsInActive.Item.key ' If cvwProblemsActive.count And cvwProblemsActive.Current.Selected Then ' cvwProblemsActive.Current.Selected = False ' End If ' If cvwProblemsActive.count Then ' cvwProblemsActive.Current.Selected = False ' End If End Select End Public Sub EditArea_Problem_Display() '---------------------------------------------------------- 'Place the contents of currentProblem into the editing area 'When this data is placed into the textboxes and checkboxes 'the change event in those controls will also be triggered 'so must set bExit to true whilst loading the data '---------------------------------------------------------- EditArea_Clear bExit = True bEditing = True 'PRINT " SR: EditArea_Problem_Display -Cleared the edit area, value now is", bexit currentProblem = PH[sProblemKey] Print "---------------------------------" "" Print "in displaying, the key is ", sProblemKey Print "---------------------------------" "" currentProblem = frmClinical.currentPatient.past_history[sProblemKey] ' PH_Copy = currentProblem txtCondition.text = currentProblem.description 'PRINT "changed problem , value now is", bexit Select Case currentProblem.fk_laterality Case 1 chkLateralityLeft.value = gvar.LateralityLeft Case 2 chkLateralityRight.value = gvar.LateralityRight Case 3 chkLateralityBoth.value = gvar.LateralityBoth End Select txtNotes.text = currentProblem.notes txtAgeOnset.text = currentProblem.age_onset txtYearOnset.text = currentProblem.year_onset chkYearOnsetUncertain.value = currentProblem.year_onset_uncertain chkActive.Value = currentProblem.active chkSignificant.Value = currentProblem.significant chkOperation.Value = currentProblem.operation chkConfidential.Value = currentProblem.confidential chkCauseOfDeath.Value = currentProblem.cause_of_death bExit = False End Public Sub Problem_Refresh_Lists() '----------------------------------------------- 'Refreshes the active and inactive problem lists '----------------------------------------------- modTemp.pasthistory_refresh_display(cvwProblemsActive, cvwProblemsInActive, PH) End Public Sub ProblemLists_LostFocus() 'FIXME - HOW TO REMOVE THE MAQUEE 'PRINT "lost focus" Select Case Last.tag Case "active problems" cvwProblemsActive.MoveFirst cvwProblemsActive.MoveAbove 'cvwProblemsActive.Item.Selected = False Case "iInactive problems" cvwProblemsInActive.Item.Selected = False End Select End Public Sub ProblemLists_Click() '----------------------------------------------------------- 'The user has clicked on either the active or inactive lists 'so display this problem in the editing area '------------------------------------------------------------ 'PRINT "before display, value of bExit is", bExit EditArea_Problem_Display 'PRINT "after display, value of bExit is", bExit End > > > Stefano > > > > NB: I'm using gambas3 svn, retrieved 2 days ago. > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl > >ac e _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: two_lists_past_history.png Type: image/png Size: 13108 bytes Desc: not available URL: From jbskaggs at ...1871... Tue Apr 1 06:38:12 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Mon, 31 Mar 2008 21:38:12 -0700 (PDT) Subject: [Gambas-user] does listview.item.selected=true do same as listview_click? Message-ID: <16412346.post@...1379...> I noticed with my perpetual file problems- that I needed to track down each step of the program. I discovered that every time listview.item.selected=true occurred it had the same affect as if I clicked on it- because it ran listview_click every time it occured. IN my ignorance and misunderstanding of the doc I thought it meant only to highlight the list.item. Am I understanding that properly now? listview.item.selected=true does same as listview_click? JB SKaggs -- View this message in context: http://www.nabble.com/does-listview.item.selected%3Dtrue-do-same-as-listview_click--tp16412346p16412346.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Tue Apr 1 07:09:44 2008 From: rterry at ...1822... (richard terry) Date: Tue, 1 Apr 2008 16:09:44 +1100 Subject: [Gambas-user] does listview.item.selected=true do same as listview_click? In-Reply-To: <16412346.post@...1379...> References: <16412346.post@...1379...> Message-ID: <200804011609.44945.rterry@...1822...> On Tue, 1 Apr 2008 03:38:12 pm jbskaggs wrote: > I noticed with my perpetual file problems- that I needed to track down each > step of the program. > > I discovered that every time listview.item.selected=true occurred it had > the same affect as if I clicked on it- because it ran listview_click every > time it occured. > > IN my ignorance and misunderstanding of the doc I thought it meant only to > highlight the list.item. > > Am I understanding that properly now? listview.item.selected=true does same > as listview_click? The list_select event seems to be triggered as soon as the user clicks on a list and has selected a row, however the row he clicked on is not necessarily matched by the internal pointer to the lists data. If you set the item to selected it just means the the current item is the one in the list you have selected, and in this event I've just moved the current internal pointer of the list to match what the user has selected on the screen. (.movecurrent). If there was no code attatched to the list_click event, nothing would happen. What you do with the click event is up to you. At least that's my experience, but others may correct me. > > JB SKaggs From kaoticus60 at ...151... Tue Apr 1 07:22:10 2008 From: kaoticus60 at ...151... (andy2) Date: Tue, 01 Apr 2008 07:22:10 +0200 Subject: [Gambas-user] Chart component In-Reply-To: References: Message-ID: <47F1C682.8040500@...151...> gambas-user-request at lists.sourceforge.net ha scritto: > 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: Installing 2.4.1 on Fedora 7 (Robert Rowe) > 2. Re: Installing 2.4.1 on Fedora 7 (Scott Castaline) > 3. Re: How to remove the marquee of a list (ie the highlighted > line color) (Stefano Palmeri) > 4. Re: gambas2-gb-pdf and libpoppler1 issue (Che Guebeara) > 5. Re: Installing 2.4.1 on Fedora 7 (Robert Rowe) > 6. Re: How to remove the marquee of a list (ie the highlighted > line color) (richard terry) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 31 Mar 2008 21:38:07 -0400 > From: Robert Rowe > Subject: Re: [Gambas-user] Installing 2.4.1 on Fedora 7 > To: mailing list for gambas users > Message-ID: <47F191FF.3040708 at ...626...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > I think that packages exist for Fedora. Have you tried using yum? > > Robert Rowe > > Scott Castaline wrote: > >> I have Fedora 7, (2.6.23.15-80.fc7) installed. I am trying to compile >> and install Gambas 2.4.1 and cannot seem to get any where. When I run >> ./configure -C I get the following errors: >> >> * Failed to find file libintl.so >> configure: This library should be located inside the system C library >> checking for optional external charset conversion library headers... >> /usr/local/include/ >> checking for optional external charset conversion library libraries... >> /usr/local/lib/ >> checking for foreign function interface component with pkg-config... no >> configure: Cannnot find libffi support with pkg-config >> checking for foreign function interface headers... no >> * Failed to find file ffi.h >> checking for foreign function interface libraries... /usr/local/lib/ >> configure: WARNING: *** foreign function interface is disabled >> configure: error: libffi library and headers are required >> configure: error: ./configure failed for main >> >> I found the source code for libffi.so, libffi-3.0.4, dl'd ran >> ./configure, make, make install, all as root. It still could not find it >> even though the header files are in /usr/local/lib/include and the other >> files are in /usr/local/lib. I was also getting a message about missing >> libiconv.so and after a long search I found libiconv-1.12 and did the >> same for that as libffi. The error for libiconv went away but the >> libintl and libffi were still there. I finally founf something about >> gettext. I checked through my pkgmgr and found that I had gettext but >> not gettext-devel, so installed that. I'm still getting the above. >> >> Any ideas? >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > > > > ------------------------------ > > Message: 2 > Date: Mon, 31 Mar 2008 21:56:12 -0400 > From: Scott Castaline > Subject: Re: [Gambas-user] Installing 2.4.1 on Fedora 7 > To: mailing list for gambas users > Message-ID: <47F1963C.9050800 at ...407...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Robert Rowe wrote: > >> I think that packages exist for Fedora. Have you tried using yum? >> >> Robert Rowe >> >> Scott Castaline wrote: >> >> >>> I have Fedora 7, (2.6.23.15-80.fc7) installed. I am trying to compile >>> and install Gambas 2.4.1 and cannot seem to get any where. When I run >>> ./configure -C I get the following errors: >>> >>> * Failed to find file libintl.so >>> configure: This library should be located inside the system C library >>> checking for optional external charset conversion library headers... >>> /usr/local/include/ >>> checking for optional external charset conversion library libraries... >>> /usr/local/lib/ >>> checking for foreign function interface component with pkg-config... no >>> configure: Cannnot find libffi support with pkg-config >>> checking for foreign function interface headers... no >>> * Failed to find file ffi.h >>> checking for foreign function interface libraries... /usr/local/lib/ >>> configure: WARNING: *** foreign function interface is disabled >>> configure: error: libffi library and headers are required >>> configure: error: ./configure failed for main >>> >>> I found the source code for libffi.so, libffi-3.0.4, dl'd ran >>> ./configure, make, make install, all as root. It still could not find it >>> even though the header files are in /usr/local/lib/include and the other >>> files are in /usr/local/lib. I was also getting a message about missing >>> libiconv.so and after a long search I found libiconv-1.12 and did the >>> same for that as libffi. The error for libiconv went away but the >>> libintl and libffi were still there. I finally founf something about >>> gettext. I checked through my pkgmgr and found that I had gettext but >>> not gettext-devel, so installed that. I'm still getting the above. >>> >>> Any ideas? >>> >>> ------------------------------------------------------------------------- >>> Check out the new SourceForge.net Marketplace. >>> It's the best place to buy or sell services for >>> just about anything Open Source. >>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>> >>> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > I tried looking earlier but only found 1.0.19 and now 2.4.1 is there. > Did they just add it today? > > > > ------------------------------ > > Message: 3 > Date: Tue, 1 Apr 2008 04:21:17 +0200 > From: Stefano Palmeri > Subject: Re: [Gambas-user] How to remove the marquee of a list (ie the > highlighted line color) > To: rterry at ...1823..., mailing list for gambas users > > Message-ID: <200804010421.18022.rospolosco at ...152...> > Content-Type: text/plain; charset="iso-8859-1" > > Alle 01:16, marted? 1 aprile 2008, richard terry ha scritto: > >> On Sun, 30 Mar 2008 08:20:15 pm you wrote: >> >>> On 3/29/08, richard terry wrote: >>> >>>> I've two lists one above the other. When the second list is clicked on, >>>> I want >>>> to remove the marquee from the first one. >>>> >>>> I've tried. list.item.selected = False and it dosn't seem to do >>>> anything. >>>> >>>> Any help appreciated. >>>> >>> Hi, I assume you use ListView. >>> >> Using a column view, tried the same code and got a 'stack overflow' >> message, maybe you could try and see if you get the same. >> >> > > With ColumnView this remove the marquee of a list: > > ColumnView1.Current.Selected = FALSE > > > Stefano > > > > >>> NB: I'm using gambas3 svn, retrieved 2 days ago. >>> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >> e _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > ------------------------------ > > Message: 4 > Date: Mon, 31 Mar 2008 22:28:52 -0400 > From: Che Guebeara > Subject: Re: [Gambas-user] gambas2-gb-pdf and libpoppler1 issue > To: gambas-user at lists.sourceforge.net > Message-ID: <20080331222852.79e39347 at ...1835...> > Content-Type: text/plain; charset=US-ASCII > > Interesting thing happened actually... > > I couldn't reinstall Gambas2 because of the unresolved pdf issue. > Checking my repos I found the azores repo for feisty and gutsy (I > upgraded this box rather than a clean install). Unchecking the feisty > and reloading the repos I was able to shutdown Synaptic and install > Gambas2 fine with apt-get in a terminal.... AND the pdf component > installed fine along with the meta, which wasnt happening before... > > Long story short it might be worth having a look in your repos for > outdated info esp if there is a version dupe like that. > > Thanks Daniel! > > Mark > > On Tue, 1 Apr 2008 01:52:33 +0200 > "Daniel Campos" wrote: > > >> Hi: >> >> Libpoppler entered in most distros when It was unstable, it is not a >> good idea to add unstable software in a stable distro, however in that >> case they needed an answer for PDF management problem and they decided >> to include it, the same happened with Dbus, for example. As expected, >> libpoppler API changed, so it is not possible to run gb.pdf with the >> different libpoppler1 external interface. >> >> The only way to do it in an old distribution is adding libpoppler2 by >> hand, that is compiling it from sources, and then compiling Gambas2, >> or if you find backports for your distribution, adding new >> repositories. >> >> Daniel >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > ------------------------------ > > Message: 5 > Date: Mon, 31 Mar 2008 22:38:57 -0400 > From: Robert Rowe > Subject: Re: [Gambas-user] Installing 2.4.1 on Fedora 7 > To: mailing list for gambas users > Message-ID: <47F1A041.70307 at ...626...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > No idea. I just remembered seeing Fedora packages on the download page. > The package maintainers release new packages quite regularly. :) > > Robert Rowe > > Scott Castaline wrote: > >> Robert Rowe wrote: >> >> >>> I think that packages exist for Fedora. Have you tried using yum? >>> >>> Robert Rowe >>> >>> Scott Castaline wrote: >>> >>> >>> >>>> I have Fedora 7, (2.6.23.15-80.fc7) installed. I am trying to compile >>>> and install Gambas 2.4.1 and cannot seem to get any where. When I run >>>> ./configure -C I get the following errors: >>>> >>>> * Failed to find file libintl.so >>>> configure: This library should be located inside the system C library >>>> checking for optional external charset conversion library headers... >>>> /usr/local/include/ >>>> checking for optional external charset conversion library libraries... >>>> /usr/local/lib/ >>>> checking for foreign function interface component with pkg-config... no >>>> configure: Cannnot find libffi support with pkg-config >>>> checking for foreign function interface headers... no >>>> * Failed to find file ffi.h >>>> checking for foreign function interface libraries... /usr/local/lib/ >>>> configure: WARNING: *** foreign function interface is disabled >>>> configure: error: libffi library and headers are required >>>> configure: error: ./configure failed for main >>>> >>>> I found the source code for libffi.so, libffi-3.0.4, dl'd ran >>>> ./configure, make, make install, all as root. It still could not find it >>>> even though the header files are in /usr/local/lib/include and the other >>>> files are in /usr/local/lib. I was also getting a message about missing >>>> libiconv.so and after a long search I found libiconv-1.12 and did the >>>> same for that as libffi. The error for libiconv went away but the >>>> libintl and libffi were still there. I finally founf something about >>>> gettext. I checked through my pkgmgr and found that I had gettext but >>>> not gettext-devel, so installed that. I'm still getting the above. >>>> >>>> Any ideas? >>>> >>>> ------------------------------------------------------------------------- >>>> Check out the new SourceForge.net Marketplace. >>>> It's the best place to buy or sell services for >>>> just about anything Open Source. >>>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>>> >>>> >>>> >>> ------------------------------------------------------------------------- >>> Check out the new SourceForge.net Marketplace. >>> It's the best place to buy or sell services for >>> just about anything Open Source. >>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>> >>> >> I tried looking earlier but only found 1.0.19 and now 2.4.1 is there. >> Did they just add it today? >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > > > > ------------------------------ > > Message: 6 > Date: Tue, 1 Apr 2008 14:59:07 +1100 > From: richard terry > Subject: Re: [Gambas-user] How to remove the marquee of a list (ie the > highlighted line color) > To: Stefano Palmeri , mailing list for gambas > users > Message-ID: <200804011459.07951.rterry at ...1822...> > Content-Type: text/plain; charset="iso-8859-1" > > On Tue, 1 Apr 2008 01:21:17 pm you wrote: > > Stiill can't get this to work - I get an overflow error the minute I introduce > any of the code (commented out in the example below): > > >> Alle 01:16, marted? 1 aprile 2008, richard terry ha scritto: >> >>> On Sun, 30 Mar 2008 08:20:15 pm you wrote: >>> >>>> On 3/29/08, richard terry wrote: >>>> >>>>> I've two lists one above the other. When the second list is clicked >>>>> on, I want >>>>> to remove the marquee from the first one. >>>>> >>>>> I've tried. list.item.selected = False and it dosn't seem to do >>>>> anything. >>>>> >>>>> Any help appreciated. >>>>> >>>> Hi, I assume you use ListView. >>>> >>> Using a column view, tried the same code and got a 'stack overflow' >>> message, maybe you could try and see if you get the same. >>> >> With ColumnView this remove the marquee of a list: >> >> ColumnView1.Current.Selected = FALSE >> > > > > Public Sub ProblemLists_Select() > '-------------------------------------------------------------------------------- > 'when user clicks on either active or inactive problem list > 'set the value of iProblemKey, to that of the selected item > 'hence PH[sProblemKey] becomes the selected problem > '-------------------------------------------------------------------------------- > Select Case Last.tag > Case "active problems" > cvwProblemsActive.MoveCurrent > cvwProblemsActive.Item.Selected = True > sProblemKey = cvwProblemsActive.Item.key > > ---- I tried this first: > ' cvwProblemsInActive.Current.Selected = False > --- then this next > ' If cvwProblemsInActive.count Then > ' cvwProblemsInActive.Current.Selected = False > ' End If > -- then this next > > ' If cvwProblemsInActive.count And cvwProblemsInActive.Current.Selected > Then > ' cvwProblemsInActive.Current.Selected = False > ' End If > > And they all give 'overflow errors' > > Take any of that code out and the routine works normally, albeit without > removing the marquee. I'll try and do a mini-project tonight with just the > listview on it and see what happens and report back > > Case "inactive problems" > cvwProblemsInActive.MoveCurrent > cvwProblemsInActive.Item.Selected = True > sProblemKey = cvwProblemsInActive.Item.key > ' If cvwProblemsActive.count And cvwProblemsActive.Current.Selected Then > ' cvwProblemsActive.Current.Selected = False > ' End If > > ' If cvwProblemsActive.count Then > ' cvwProblemsActive.Current.Selected = False > ' End If > End Select > End > > Public Sub EditArea_Problem_Display() > '---------------------------------------------------------- > 'Place the contents of currentProblem into the editing area > 'When this data is placed into the textboxes and checkboxes > 'the change event in those controls will also be triggered > 'so must set bExit to true whilst loading the data > '---------------------------------------------------------- > > EditArea_Clear > bExit = True > bEditing = True > 'PRINT " SR: EditArea_Problem_Display -Cleared the edit area, value now > is", bexit > currentProblem = PH[sProblemKey] > Print "---------------------------------" "" > Print "in displaying, the key is ", sProblemKey > Print "---------------------------------" "" > currentProblem = frmClinical.currentPatient.past_history[sProblemKey] > ' PH_Copy = currentProblem > txtCondition.text = currentProblem.description > 'PRINT "changed problem , value now is", bexit > Select Case currentProblem.fk_laterality > Case 1 > chkLateralityLeft.value = gvar.LateralityLeft > Case 2 > chkLateralityRight.value = gvar.LateralityRight > Case 3 > chkLateralityBoth.value = gvar.LateralityBoth > End Select > txtNotes.text = currentProblem.notes > txtAgeOnset.text = currentProblem.age_onset > txtYearOnset.text = currentProblem.year_onset > chkYearOnsetUncertain.value = currentProblem.year_onset_uncertain > chkActive.Value = currentProblem.active > chkSignificant.Value = currentProblem.significant > chkOperation.Value = currentProblem.operation > chkConfidential.Value = currentProblem.confidential > chkCauseOfDeath.Value = currentProblem.cause_of_death > > bExit = False > End > Public Sub Problem_Refresh_Lists() > '----------------------------------------------- > 'Refreshes the active and inactive problem lists > '----------------------------------------------- > modTemp.pasthistory_refresh_display(cvwProblemsActive, cvwProblemsInActive, > PH) > > End > > Public Sub ProblemLists_LostFocus() > 'FIXME - HOW TO REMOVE THE MAQUEE > 'PRINT "lost focus" > Select Case Last.tag > Case "active problems" > > cvwProblemsActive.MoveFirst > cvwProblemsActive.MoveAbove > 'cvwProblemsActive.Item.Selected = False > Case "iInactive problems" > cvwProblemsInActive.Item.Selected = False > End Select > > End > > Public Sub ProblemLists_Click() > '----------------------------------------------------------- > 'The user has clicked on either the active or inactive lists > 'so display this problem in the editing area > '------------------------------------------------------------ > 'PRINT "before display, value of bExit is", bExit > EditArea_Problem_Display > 'PRINT "after display, value of bExit is", bExit > End > >> Stefano >> >> >>>> NB: I'm using gambas3 svn, retrieved 2 days ago. >>>> >>> ------------------------------------------------------------------------- >>> Check out the new SourceForge.net Marketplace. >>> It's the best place to buy or sell services for >>> just about anything Open Source. >>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl >>> ac e _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: two_lists_past_history.png > Type: image/png > Size: 13108 bytes > Desc: not available > > ------------------------------ > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > ------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > End of Gambas-user Digest, Vol 22, Issue 91 > ******************************************* > > Little question: do u know if exist an howto about gb.chart component? I dont' see anything about ths component in gambas help. Thank.u ps. i need code to make linechart with result's data. andy(rome) From jbskaggs at ...1871... Tue Apr 1 07:25:39 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Mon, 31 Mar 2008 22:25:39 -0700 (PDT) Subject: [Gambas-user] Question about using list views? Message-ID: <16412346.post@...1379...> I noticed with my perpetual file problems- that I needed to track down each step of the program. I discovered that every time listview.item.selected=true occurred it had the same affect as if I clicked on it- because it ran listview_click every time it occured. IN my ignorance and misunderstanding of the doc I thought it meant only to highlight the list.item. Am I understanding that properly now? listview.item.selected=true does same as listview_click? JB SKaggs -- View this message in context: http://www.nabble.com/Question-about-using-list-views--tp16412346p16412346.html Sent from the gambas-user mailing list archive at Nabble.com. From ronstk at ...239... Tue Apr 1 07:47:51 2008 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 1 Apr 2008 07:47:51 +0200 Subject: [Gambas-user] Installing 2.4.1 on Fedora 7 In-Reply-To: <47F19134.6010100@...407...> References: <47F19134.6010100@...407...> Message-ID: <200804010747.52041.ronstk@...239...> On Tuesday 01 April 2008 03:34, Scott Castaline wrote: > I have Fedora 7, (2.6.23.15-80.fc7) installed. I am trying to compile > and install Gambas 2.4.1 and cannot seem to get any where. When I run > ./configure -C I get the following errors: > > * Failed to find file libintl.so > configure: This library should be located inside the system C library > checking for optional external charset conversion library headers... > /usr/local/include/ > checking for optional external charset conversion library libraries... > /usr/local/lib/ > checking for foreign function interface component with pkg-config... no > configure: Cannnot find libffi support with pkg-config > checking for foreign function interface headers... no > * Failed to find file ffi.h > checking for foreign function interface libraries... /usr/local/lib/ > configure: WARNING: *** foreign function interface is disabled > configure: error: libffi library and headers are required > configure: error: ./configure failed for main > > I found the source code for libffi.so, libffi-3.0.4, dl'd ran > ./configure, make, make install, all as root. It still could not find it > even though the header files are in /usr/local/lib/include and the other > files are in /usr/local/lib. I was also getting a message about missing > libiconv.so and after a long search I found libiconv-1.12 and did the > same for that as libffi. The error for libiconv went away but the > libintl and libffi were still there. I finally founf something about > gettext. I checked through my pkgmgr and found that I had gettext but > not gettext-devel, so installed that. I'm still getting the above. > > Any ideas? After failed ./configure and changes to the libraries it is wise to do a ./reconf-all to clean up the bad things. Ron From sbungay at ...981... Tue Apr 1 07:50:29 2008 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 01 Apr 2008 01:50:29 -0400 Subject: [Gambas-user] does listview.item.selected=true do same as listview_click? In-Reply-To: <200804011609.44945.rterry@...1822...> References: <16412346.post@...1379...> <200804011609.44945.rterry@...1822...> Message-ID: <47F1CD25.1020802@...981...> richard terry wrote: > On Tue, 1 Apr 2008 03:38:12 pm jbskaggs wrote: >> I noticed with my perpetual file problems- that I needed to track down each >> step of the program. >> >> I discovered that every time listview.item.selected=true occurred it had >> the same affect as if I clicked on it- because it ran listview_click every >> time it occured. >> >> IN my ignorance and misunderstanding of the doc I thought it meant only to >> highlight the list.item. >> >> Am I understanding that properly now? listview.item.selected=true does same >> as listview_click? > > The list_select event seems to be triggered as soon as the user clicks on a > list and has selected a row, however the row he clicked on is not necessarily > matched by the internal pointer to the lists data. > > If you set the item to selected it just means the the current item is the one > in the list you have selected, and in this event I've just moved the current > internal pointer of the list to match what the user has selected on the > screen. (.movecurrent). > > If there was no code attatched to the list_click event, nothing would happen. > What you do with the click event is up to you. > > At least that's my experience, but others may correct me. > > > > >> JB SKaggs Clicking on a listview fires the listview click event, it also sets the selected property to True. Normally the programmer would not have a need to programatically set the selected property to True, which is not to say it can't be done,.. but begs the question "should it be done". If the user clicks on an item in a listview it sets that item to a selected state and it will also set that item as the current item. The following code can be pasted into a blank form.. add a button, a listview, and a text area, keep the names of these controls to their defaults. ' Gambas class file Public Sub Button1_Click() PopulateList End Public Sub ListView1_Click() TextArea1.Text = ListView1.Item.Selected & " " & ListView1.Item.Text & " " & ListView1.Current.Key End Private Sub PopulateList() With ListView1 .Add("A", "A") .Add("B", "B") .Add("C", "C") .Add("D", "D") End With End Click the button and the list populates. Click on any item in the list and the text area will display the Selected State, the Text, and the Key (which in this case will be the same as the text). Steve. > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Tue Apr 1 08:00:55 2008 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 1 Apr 2008 08:00:55 +0200 Subject: [Gambas-user] does listview.item.selected=true do same as listview_click? In-Reply-To: <16412346.post@...1379...> References: <16412346.post@...1379...> Message-ID: <200804010800.55465.ronstk@...239...> On Tuesday 01 April 2008 06:38, jbskaggs wrote: > > I noticed with my perpetual file problems- that I needed to track down each > step of the program. > > I discovered that every time listview.item.selected=true occurred it had the > same affect as if I clicked on it- because it ran listview_click every time > it occured. If you use a control to show some information related to the selected listview/treeview item (i.e. the file list in a file manager) it should update that information. gambas does fire the event to access such update. It would be stupid to see the information (filelist) from wrong item(directory). You can use Lock and unlock to prevent if it is not wanted. > > IN my ignorance and misunderstanding of the doc I thought it meant only to > highlight the list.item. > No misunderstanding, the event is/was not mentioned and I had once the same problem of fireing the events. MS-VB let you set the new item in code and you must call the updating routine yourself. It is just logical the way gambas handle this. > Am I understanding that properly now? listview.item.selected=true does same > as listview_click? > So the answer is seam to be Yes :=) > JB SKaggs Ron From gambas.fr at ...626... Tue Apr 1 10:36:51 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 1 Apr 2008 10:36:51 +0200 Subject: [Gambas-user] Chart component In-Reply-To: <47F1C682.8040500@...151...> References: <47F1C682.8040500@...151...> Message-ID: <6324a42a0804010136q280d2d11sf054e06856a8a2d2@...627...> hi Andy ... this a short demo of the alpha Chart component ... remember it's not a ready to use component and many things will change in it in the next versions. When you want to fill it : Dim hresult as result hresult = exec... For each hresult Chart.headers.Value.add(hResult!Label) Chart[0].Values.Add(hResult!Value) next it's an example as the chart component is designed to be filled with multiple datasets... Regards, Fabien -------------- next part -------------- A non-text attachment was scrubbed... Name: demochart-0.0.1.tar.gz Type: application/x-gzip Size: 8111 bytes Desc: not available URL: From dcamposf at ...626... Tue Apr 1 10:47:11 2008 From: dcamposf at ...626... (Daniel Campos) Date: Tue, 1 Apr 2008 10:47:11 +0200 Subject: [Gambas-user] gambas2-gb-pdf and libpoppler1 issue In-Reply-To: <20080331222852.79e39347@...1835...> References: <47F0DCC9.2070804@...626...> <200804010815.27137.rterry@...1822...> <20080331181019.19e122e5@...1835...> <200804010919.13630.rterry@...1822...> <7259b5ae0803311652y6599dda4oe14719e2f7d540ff@...627...> <20080331222852.79e39347@...1835...> Message-ID: <7259b5ae0804010147v6671282wa9255ec729670747@...627...> > > Long story short it might be worth having a look in your repos for > outdated info esp if there is a version dupe like that. > Mmmh? So your distro is Gutsy or Feisty...? Both distros contain recent poppler versions, sorry I missed the firsts mails on this thread, what's exactly the scenario? Daniel From cheguebeara at ...626... Tue Apr 1 13:43:20 2008 From: cheguebeara at ...626... (Che Guebeara) Date: Tue, 1 Apr 2008 07:43:20 -0400 Subject: [Gambas-user] gambas2-gb-pdf and libpoppler1 issue In-Reply-To: <7259b5ae0804010147v6671282wa9255ec729670747@...627...> References: <47F0DCC9.2070804@...626...> <200804010815.27137.rterry@...1822...> <20080331181019.19e122e5@...1835...> <200804010919.13630.rterry@...1822...> <7259b5ae0803311652y6599dda4oe14719e2f7d540ff@...627...> <20080331222852.79e39347@...1835...> <7259b5ae0804010147v6671282wa9255ec729670747@...627...> Message-ID: <20080401074320.467de653@...1835...> Originally I was on Feisty then did the online upgrade to Gutsy. Could not install the component for pdf. Then the pdf and gtk-ext updates (2.4.1) were locking up my update manager (libpoppler1 issue was the flag). I eventually tried uninstalling Gambas2 but it would not reinstall, again the flag about libpoppler1. In the end I noticed I had the repos for Feisty and Gutsy in Synaptic so I dumped the Feisty repo, reloaded, and Gambas2 reinstalled fine including gtk-ext and pdf. Mark On Tue, 1 Apr 2008 10:47:11 +0200 "Daniel Campos" wrote: > > > > Long story short it might be worth having a look in your repos for > > outdated info esp if there is a version dupe like that. > > > > Mmmh? So your distro is Gutsy or Feisty...? Both distros contain > recent poppler versions, sorry I missed the firsts mails on this > thread, what's exactly the scenario? > > Daniel > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Apr 1 15:22:09 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Apr 2008 15:22:09 +0200 Subject: [Gambas-user] How to remove the marquee of a list (ie the highlighted line color) In-Reply-To: <200804011459.07951.rterry@...1822...> References: <200803292341.28305.rterry@...1822...> <200804010421.18022.rospolosco@...152...> <200804011459.07951.rterry@...1822...> Message-ID: <200804011522.09040.gambas@...1...> On mardi 1 avril 2008, richard terry wrote: > On Tue, 1 Apr 2008 01:21:17 pm you wrote: > > Stiill can't get this to work - I get an overflow error the minute I > introduce > No, you get a "stack overflow" error I guess. Do you know what it is? -- Benoit Minisini From gambas at ...1... Tue Apr 1 15:27:43 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Apr 2008 15:27:43 +0200 Subject: [Gambas-user] Installing 2.4.1 on Fedora 7 In-Reply-To: <47F19134.6010100@...407...> References: <47F19134.6010100@...407...> Message-ID: <200804011527.43565.gambas@...1...> On mardi 1 avril 2008, Scott Castaline wrote: > I have Fedora 7, (2.6.23.15-80.fc7) installed. I am trying to compile > and install Gambas 2.4.1 and cannot seem to get any where. When I run > ./configure -C I get the following errors: > > * Failed to find file libintl.so > configure: This library should be located inside the system C library > checking for optional external charset conversion library headers... > /usr/local/include/ > checking for optional external charset conversion library libraries... > /usr/local/lib/ > checking for foreign function interface component with pkg-config... no > configure: Cannnot find libffi support with pkg-config > checking for foreign function interface headers... no > * Failed to find file ffi.h > checking for foreign function interface libraries... /usr/local/lib/ > configure: WARNING: *** foreign function interface is disabled > configure: error: libffi library and headers are required > configure: error: ./configure failed for main > > I found the source code for libffi.so, libffi-3.0.4, dl'd ran > ./configure, make, make install, all as root. It still could not find it > even though the header files are in /usr/local/lib/include and the other > files are in /usr/local/lib. I was also getting a message about missing > libiconv.so and after a long search I found libiconv-1.12 and did the > same for that as libffi. The error for libiconv went away but the > libintl and libffi were still there. I finally founf something about > gettext. I checked through my pkgmgr and found that I had gettext but > not gettext-devel, so installed that. I'm still getting the above. > > Any ideas? > libiconv and libintl are not mandatory. As for libffi, the problem is that I forgot to add /usr/local/lib/include as an include search path for libffi. I will fix that in the next release, but please install libffi in another place (/usr/lib) for example as workaround. But you should not have to compile libffi, you should have a binary package. Regards, -- Benoit Minisini From gambas at ...1... Tue Apr 1 15:28:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Apr 2008 15:28:32 +0200 Subject: [Gambas-user] does listview.item.selected=true do same as listview_click? In-Reply-To: <16412346.post@...1379...> References: <16412346.post@...1379...> Message-ID: <200804011528.32818.gambas@...1...> On mardi 1 avril 2008, jbskaggs wrote: > I noticed with my perpetual file problems- that I needed to track down each > step of the program. > > I discovered that every time listview.item.selected=true occurred it had > the same affect as if I clicked on it- because it ran listview_click every > time it occured. > > IN my ignorance and misunderstanding of the doc I thought it meant only to > highlight the list.item. > > Am I understanding that properly now? listview.item.selected=true does same > as listview_click? > > JB SKaggs I think it depends on the selection mode. It should not raise the Click event if ListView.Mode = Select.Multiple. Regards, -- Benoit Minisini From demosthenesk at ...626... Tue Apr 1 15:38:02 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 1 Apr 2008 16:38:02 +0300 Subject: [Gambas-user] Installing 2.4.1 on Fedora 7 In-Reply-To: <200804011527.43565.gambas@...1...> References: <47F19134.6010100@...407...> <200804011527.43565.gambas@...1...> Message-ID: I installed libffi in /usr/local/lib in my *openSuse 10.2* but i had to have a line for the path in */etc/ld.so.conf* and run *ldconfig* after any lib installation. On Tue, Apr 1, 2008 at 4:27 PM, Benoit Minisini < gambas at ...1...> wrote: > On mardi 1 avril 2008, Scott Castaline wrote: > > I have Fedora 7, (2.6.23.15-80.fc7) installed. I am trying to compile > > and install Gambas 2.4.1 and cannot seem to get any where. When I run > > ./configure -C I get the following errors: > > > > * Failed to find file libintl.so > > configure: This library should be located inside the system C library > > checking for optional external charset conversion library headers... > > /usr/local/include/ > > checking for optional external charset conversion library libraries... > > /usr/local/lib/ > > checking for foreign function interface component with pkg-config... no > > configure: Cannnot find libffi support with pkg-config > > checking for foreign function interface headers... no > > * Failed to find file ffi.h > > checking for foreign function interface libraries... /usr/local/lib/ > > configure: WARNING: *** foreign function interface is disabled > > configure: error: libffi library and headers are required > > configure: error: ./configure failed for main > > > > I found the source code for libffi.so, libffi-3.0.4, dl'd ran > > ./configure, make, make install, all as root. It still could not find it > > even though the header files are in /usr/local/lib/include and the other > > files are in /usr/local/lib. I was also getting a message about missing > > libiconv.so and after a long search I found libiconv-1.12 and did the > > same for that as libffi. The error for libiconv went away but the > > libintl and libffi were still there. I finally founf something about > > gettext. I checked through my pkgmgr and found that I had gettext but > > not gettext-devel, so installed that. I'm still getting the above. > > > > Any ideas? > > > > libiconv and libintl are not mandatory. As for libffi, the problem is that > I > forgot to add /usr/local/lib/include as an include search path for libffi. > I > will fix that in the next release, but please install libffi in another > place > (/usr/lib) for example as workaround. > > But you should not have to compile libffi, you should have a binary > package. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From hscast at ...407... Tue Apr 1 18:40:16 2008 From: hscast at ...407... (Scott Castaline) Date: Tue, 01 Apr 2008 12:40:16 -0400 Subject: [Gambas-user] Installing 2.4.1 on Fedora 7 In-Reply-To: References: <47F19134.6010100@...407...> <200804011527.43565.gambas@...1...> Message-ID: <47F26570.3090006@...407...> Demosthenes Koptsis wrote: > I installed libffi in /usr/local/lib in my *openSuse 10.2* > but i had to have a line for the path in */etc/ld.so.conf* > and run *ldconfig* after any lib installation. > > On Tue, Apr 1, 2008 at 4:27 PM, Benoit Minisini < > gambas at ...1...> wrote: > > >> On mardi 1 avril 2008, Scott Castaline wrote: >> >>> I have Fedora 7, (2.6.23.15-80.fc7) installed. I am trying to compile >>> and install Gambas 2.4.1 and cannot seem to get any where. When I run >>> ./configure -C I get the following errors: >>> >>> * Failed to find file libintl.so >>> configure: This library should be located inside the system C library >>> checking for optional external charset conversion library headers... >>> /usr/local/include/ >>> checking for optional external charset conversion library libraries... >>> /usr/local/lib/ >>> checking for foreign function interface component with pkg-config... no >>> configure: Cannnot find libffi support with pkg-config >>> checking for foreign function interface headers... no >>> * Failed to find file ffi.h >>> checking for foreign function interface libraries... /usr/local/lib/ >>> configure: WARNING: *** foreign function interface is disabled >>> configure: error: libffi library and headers are required >>> configure: error: ./configure failed for main >>> >>> I found the source code for libffi.so, libffi-3.0.4, dl'd ran >>> ./configure, make, make install, all as root. It still could not find it >>> even though the header files are in /usr/local/lib/include and the other >>> files are in /usr/local/lib. I was also getting a message about missing >>> libiconv.so and after a long search I found libiconv-1.12 and did the >>> same for that as libffi. The error for libiconv went away but the >>> libintl and libffi were still there. I finally founf something about >>> gettext. I checked through my pkgmgr and found that I had gettext but >>> not gettext-devel, so installed that. I'm still getting the above. >>> >>> Any ideas? >>> >>> >> libiconv and libintl are not mandatory. As for libffi, the problem is that >> I >> forgot to add /usr/local/lib/include as an include search path for libffi. >> I >> will fix that in the next release, but please install libffi in another >> place >> (/usr/lib) for example as workaround. >> >> But you should not have to compile libffi, you should have a binary >> package. >> >> Regards, >> >> -- >> Benoit Minisini >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > > I understand the concept of what ldconfig is doing, I'm not sure how to structure my line(s) in ld.so.conf. What do I put there? And am I just concerned with the header files or also the .so files. From david_villalobos_c at ...43... Tue Apr 1 18:42:53 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 1 Apr 2008 09:42:53 -0700 (PDT) Subject: [Gambas-user] Double Click in DateChooser Message-ID: <684391.57752.qm@...1658...> Hi all, I try to use the Double Click event in Date Chooser, buy it does not works, is it normal? Attached is an example. Bes regards. David ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com -------------- next part -------------- A non-text attachment was scrubbed... Name: dlgDate-0.0.1.tar.gz Type: application/x-tgz Size: 7484 bytes Desc: not available URL: From gambas at ...1... Tue Apr 1 18:56:59 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Apr 2008 18:56:59 +0200 Subject: [Gambas-user] Double Click in DateChooser In-Reply-To: <684391.57752.qm@...1658...> References: <684391.57752.qm@...1658...> Message-ID: <200804011856.59417.gambas@...1...> On mardi 1 avril 2008, David Villalobos Cambronero wrote: > Hi all, > > I try to use the Double Click event in Date Chooser, buy it does not works, > is it normal? Attached is an example. > > Bes regards. > > David > Yes. DoubleClick is a low level mouse event, and the low level events work reliably only on basic controls. DateChooser is a conttol written in Gambas, and is actually a Container. So it won't see any DoubleClick events. You must use the DateChooser Activate event. Every time you want to use DoubleClick, check that you don't have the Activate event somewhere. You should only use mouse event directly if you are sure that you need them. Because you can activate something with the keyboard, not only with the mouse button. Same remark with popup menus. You must use the Menu event, not one of the mouse events. Regards, -- Benoit Minisini From david_villalobos_c at ...43... Tue Apr 1 19:47:00 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 1 Apr 2008 10:47:00 -0700 (PDT) Subject: [Gambas-user] Double Click in DateChooser Message-ID: <169924.3900.qm@...1674...> Ok, Great to know that... Regards... David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Tuesday, April 1, 2008 10:56:59 AM Subject: Re: [Gambas-user] Double Click in DateChooser On mardi 1 avril 2008, David Villalobos Cambronero wrote: > Hi all, > > I try to use the Double Click event in Date Chooser, buy it does not works, > is it normal? Attached is an example. > > Bes regards. > > David > Yes. DoubleClick is a low level mouse event, and the low level events work reliably only on basic controls. DateChooser is a conttol written in Gambas, and is actually a Container. So it won't see any DoubleClick events. You must use the DateChooser Activate event. Every time you want to use DoubleClick, check that you don't have the Activate event somewhere. You should only use mouse event directly if you are sure that you need them. Because you can activate something with the keyboard, not only with the mouse button. Same remark with popup menus. You must use the Menu event, not one of the mouse events. Regards, -- Benoit Minisini ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com From rterry at ...1822... Tue Apr 1 22:51:38 2008 From: rterry at ...1822... (richard terry) Date: Wed, 2 Apr 2008 07:51:38 +1100 Subject: [Gambas-user] How to remove the marquee of a list (ie the highlighted line color) In-Reply-To: <200804011522.09040.gambas@...1...> References: <200803292341.28305.rterry@...1822...> <200804011459.07951.rterry@...1822...> <200804011522.09040.gambas@...1...> Message-ID: <200804020751.39259.rterry@...1822...> On Wed, 2 Apr 2008 12:22:09 am Benoit Minisini wrote: > On mardi 1 avril 2008, richard terry wrote: > > On Tue, 1 Apr 2008 01:21:17 pm you wrote: > > > > Stiill can't get this to work - I get an overflow error the minute I > > introduce > > No, you get a "stack overflow" error I guess. Do you know what it is? Well, not really, except when I programmed in FORTH we used to use a 'stack' and a return stack to plonk numbers/addresses etc on for later use. I guess its a space limited hole that when it gets filled up it complains. Whatever the case I can't get it to work, I'll try and make a little project up to illustrate in the next few days . Richard From gambas at ...1... Tue Apr 1 23:03:20 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Apr 2008 23:03:20 +0200 Subject: [Gambas-user] How to remove the marquee of a list (ie the highlighted line color) In-Reply-To: <200804020751.39259.rterry@...1822...> References: <200803292341.28305.rterry@...1822...> <200804011522.09040.gambas@...1...> <200804020751.39259.rterry@...1822...> Message-ID: <200804012303.20739.gambas@...1...> On mardi 1 avril 2008, richard terry wrote: > On Wed, 2 Apr 2008 12:22:09 am Benoit Minisini wrote: > > On mardi 1 avril 2008, richard terry wrote: > > > On Tue, 1 Apr 2008 01:21:17 pm you wrote: > > > > > > Stiill can't get this to work - I get an overflow error the minute I > > > introduce > > > > No, you get a "stack overflow" error I guess. Do you know what it is? > > Well, not really, except when I programmed in FORTH we used to use a > 'stack' and a return stack to plonk numbers/addresses etc on for later > use. I guess its a space limited hole that when it gets filled up it > complains. > > > Whatever the case I can't get it to work, I'll try and make a little > project up to illustrate in the next few days > . > > Richard > The stack, in Gambas, is a fixed memory pool where all function argument and context are stored. As function calls are imbricated, if you call functions too deeply, you can run out of this fixed memory pool, and got a "stack overflow" error. In your case, I think that you indirectly raise a specific event from the handler of its event, and so lead to an infinite imbrication of function calls. You can check it in the stack backtrace in the IDE when you get the "stack overflow" error. -- Benoit Minisini From robert.c.rowe at ...626... Wed Apr 2 02:05:43 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Tue, 01 Apr 2008 20:05:43 -0400 Subject: [Gambas-user] Help inaccuracy or bug? Message-ID: <47F2CDD7.7060405@...626...> I'm using gambas3, revision 1277. I'm working with a listview control. The help states that the MoveCurrent, MoveNext, etc return TRUE if there is no current item. When I use these methods in an if statement I get an error stating that it wanted a boolean but got a function. I'm working around this by checking the Available property after I use these methods but I think that either the help is wrong, there is a bug or I'm not understanding something. I'd be happy to update the help if it is in error. Robert Rowe From gambas at ...1... Wed Apr 2 02:09:58 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 2 Apr 2008 02:09:58 +0200 Subject: [Gambas-user] Help inaccuracy or bug? In-Reply-To: <47F2CDD7.7060405@...626...> References: <47F2CDD7.7060405@...626...> Message-ID: <200804020209.58498.gambas@...1...> On mercredi 2 avril 2008, Robert Rowe wrote: > I'm using gambas3, revision 1277. I'm working with a listview control. > The help states that the MoveCurrent, MoveNext, etc return TRUE if there > is no current item. When I use these methods in an if statement I get an > error stating that it wanted a boolean but got a function. I'm working > around this by checking the Available property after I use these methods > but I think that either the help is wrong, there is a bug or I'm not > understanding something. I'd be happy to update the help if it is in error. > > Robert Rowe > Didn't you forget the braces after the method name? -- Benoit Minisini From robert.c.rowe at ...626... Wed Apr 2 03:28:33 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Tue, 01 Apr 2008 21:28:33 -0400 Subject: [Gambas-user] Help inaccuracy or bug? In-Reply-To: <200804020209.58498.gambas@...1...> References: <47F2CDD7.7060405@...626...> <200804020209.58498.gambas@...1...> Message-ID: <47F2E141.7070009@...626...> You are correct. I guess I'm too used to VB.Net. It adds the braces automatically. I guess the braces instruct the interpreter to return a value from methods while it returns a reference to the method if braces aren't used. there's always so much to learn when you start using a new language. It's starting to affect me the other way too. I've been writing in gambas at home so much that I'm starting to try to write gambas code in VB.Net at work. That doesn't work very well. :) Robert Rowe Benoit Minisini wrote: > On mercredi 2 avril 2008, Robert Rowe wrote: > >> I'm using gambas3, revision 1277. I'm working with a listview control. >> The help states that the MoveCurrent, MoveNext, etc return TRUE if there >> is no current item. When I use these methods in an if statement I get an >> error stating that it wanted a boolean but got a function. I'm working >> around this by checking the Available property after I use these methods >> but I think that either the help is wrong, there is a bug or I'm not >> understanding something. I'd be happy to update the help if it is in error. >> >> Robert Rowe >> >> > > Didn't you forget the braces after the method name? > > From jbskaggs at ...1871... Wed Apr 2 03:30:57 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Tue, 1 Apr 2008 18:30:57 -0700 (PDT) Subject: [Gambas-user] Multiple forms or single form? Message-ID: <16434618.post@...1379...> Is it more efficient to have one form with items showing and hiding, or multiple forms being shown and hid? Which is better for speed and memory? Or is it a moot question altogether? JB SKaggs -- View this message in context: http://www.nabble.com/Multiple-forms-or-single-form--tp16434618p16434618.html Sent from the gambas-user mailing list archive at Nabble.com. From robert.c.rowe at ...626... Wed Apr 2 03:34:06 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Tue, 01 Apr 2008 21:34:06 -0400 Subject: [Gambas-user] Listview sorting question Message-ID: <47F2E28E.3010808@...626...> I have a listview with several items and the Sorted property is set to True. One of the items starts with three dashes. The sort function appears to ignore these characters and positions the item as if they were not in the string. It's important for this item to be at the top of the list. A dash has a lower ASCII value so it would sort higher if it wasn't being ignored. Is there a way to make the listview not ignore non-alpha characters when sorting? Robert Rowe From gambas at ...1... Wed Apr 2 03:34:29 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 2 Apr 2008 03:34:29 +0200 Subject: [Gambas-user] Help inaccuracy or bug? In-Reply-To: <47F2E141.7070009@...626...> References: <47F2CDD7.7060405@...626...> <200804020209.58498.gambas@...1...> <47F2E141.7070009@...626...> Message-ID: <200804020334.29907.gambas@...1...> On mercredi 2 avril 2008, Robert Rowe wrote: > You are correct. I guess I'm too used to VB.Net. It adds the braces > automatically. > > I guess the braces instruct the interpreter to return a value from > methods while it returns a reference to the method if braces aren't > used. there's always so much to learn when you start using a new language. > > It's starting to affect me the other way too. I've been writing in > gambas at home so much that I'm starting to try to write gambas code in > VB.Net at work. That doesn't work very well. :) > > Robert Rowe > Actually the braces are not mandatory if you use the method as a statement. You can do: MyTreeView.MoveNext or MyTreeView.MoveNext() But you must do: WHILE NOT MyTreeView.MoveNext() The interpreter could deal with 'WHILE NOT MyTreeView.MoveNext', but I find it very confusing for the user: is MoveNext a property or a method ? I have an implicit rule in Gambas: a property is fast and light, while a method could be long and heavy. So the braces let the user see immediately in which case it is. When using a method as a statement, it is not ambiguous, as a property cannot be a statement, except in an assignment. Regards, -- Benoit Minisini From robert.c.rowe at ...626... Wed Apr 2 03:37:56 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Tue, 01 Apr 2008 21:37:56 -0400 Subject: [Gambas-user] Multiple forms or single form? In-Reply-To: <16434618.post@...1379...> References: <16434618.post@...1379...> Message-ID: <47F2E374.4020805@...626...> Fewer objects would normally consume less memory but it would make it harder for you to make your form work correctly as you'd keep having to switch the visible objects around. I would opt for one form for each logical function. Isolation of functionality usually works out for the best in the long run. Robert Rowe jbskaggs wrote: > Is it more efficient to have one form with items showing and hiding, or > multiple forms being shown and hid? Which is better for speed and memory? > > Or is it a moot question altogether? > > JB SKaggs > From santiago_j_oberto at ...1877... Wed Apr 2 03:39:21 2008 From: santiago_j_oberto at ...1877... (Santiago) Date: Tue, 01 Apr 2008 22:39:21 -0300 Subject: [Gambas-user] Gambas-user Digest, Vol 22, Issue 91 In-Reply-To: References: Message-ID: <1207100361.5118.2.camel@...37...> Try running "ldconfig" (you should run it as root. It is located in /sbin). It solved lot of library problems to my. I have Gambas2 running on a Fedora 8. Greetings El lun, 31-03-2008 a las 21:04 -0700, gambas-user-request at lists.sourceforge.net escribi?: > > ------------------------------ > > Message: 5 > Date: Mon, 31 Mar 2008 22:38:57 -0400 > From: Robert Rowe > Subject: Re: [Gambas-user] Installing 2.4.1 on Fedora 7 > To: mailing list for gambas users > Message-ID: <47F1A041.70307 at ...626...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > No idea. I just remembered seeing Fedora packages on the download > page. > The package maintainers release new packages quite regularly. :) > > Robert Rowe > > Scott Castaline wrote: > > Robert Rowe wrote: > > > >> I think that packages exist for Fedora. Have you tried using yum? > >> > >> Robert Rowe > >> > >> Scott Castaline wrote: > >> > >> > >>> I have Fedora 7, (2.6.23.15-80.fc7) installed. I am trying to > compile > >>> and install Gambas 2.4.1 and cannot seem to get any where. When I > run > >>> ./configure -C I get the following errors: > >>> > >>> * Failed to find file libintl.so > >>> configure: This library should be located inside the system C > library > >>> checking for optional external charset conversion library > headers... > >>> /usr/local/include/ > >>> checking for optional external charset conversion library > libraries... > >>> /usr/local/lib/ > >>> checking for foreign function interface component with > pkg-config... no > >>> configure: Cannnot find libffi support with pkg-config > >>> checking for foreign function interface headers... no > >>> * Failed to find file ffi.h > >>> checking for foreign function interface > libraries... /usr/local/lib/ > >>> configure: WARNING: *** foreign function interface is disabled > >>> configure: error: libffi library and headers are required > >>> configure: error: ./configure failed for main > >>> > >>> I found the source code for libffi.so, libffi-3.0.4, dl'd ran > >>> ./configure, make, make install, all as root. It still could not > find it > >>> even though the header files are in /usr/local/lib/include and the > other > >>> files are in /usr/local/lib. I was also getting a message about > missing > >>> libiconv.so and after a long search I found libiconv-1.12 and did > the > >>> same for that as libffi. The error for libiconv went away but the > >>> libintl and libffi were still there. I finally founf something > about > >>> gettext. I checked through my pkgmgr and found that I had gettext > but > >>> not gettext-devel, so installed that. I'm still getting the above. > >>> > >>> Any ideas? From gambas at ...1... Wed Apr 2 03:43:58 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 2 Apr 2008 03:43:58 +0200 Subject: [Gambas-user] Listview sorting question In-Reply-To: <47F2E28E.3010808@...626...> References: <47F2E28E.3010808@...626...> Message-ID: <200804020343.58973.gambas@...1...> On mercredi 2 avril 2008, Robert Rowe wrote: > I have a listview with several items and the Sorted property is set to > True. One of the items starts with three dashes. The sort function > appears to ignore these characters and positions the item as if they > were not in the string. It's important for this item to be at the top of > the list. A dash has a lower ASCII value so it would sort higher if it > wasn't being ignored. > > Is there a way to make the listview not ignore non-alpha characters when > sorting? > > Robert Rowe > You must answer to the Compare event: see the documentation in the wiki for the details. -- Benoit Minisini From leemcpherson at ...626... Wed Apr 2 06:28:03 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Wed, 02 Apr 2008 00:28:03 -0400 Subject: [Gambas-user] Retrieving jpegs from a MySQL database In-Reply-To: <200804020343.58973.gambas@...1...> References: <47F2E28E.3010808@...626...> <200804020343.58973.gambas@...1...> Message-ID: <47F30B53.8000408@...626...> I've been looking at the examples supplied with Gambas and I've tried to copy some of the code from the PictureDatabase example. I know that my database is setup correctly and that the field names are correct. I have some jpegs stored as BLOBs and they display correctly using the MySQL Query browser. However, this code will give me the error "Not an object" and I'm at a loss as to what I'm doing wrong. Below is some of my code. Basically I have two tables so far. One contains all the ID3v2 info from an MP3 with album names represented by numbers. These numbers are referenced to the album name and album cover art in jpeg format as a BLOB in a second table. I click on the file I want in my gridview table and it is supposed to display the album cover in a PictureBox next to it. The selection works and I can get it to reference the actual album's name, but it stops at the tempPicture = $result["Pic"].Data line. PUBLIC SUB GridView1_Change() DIM sQuery AS String DIM curRow AS Integer DIM tempFile AS String DIM tempPicture AS String tempFile = Temp() & ".jpg" IF gridView1.Row <> -1 modDb.Connect() curRow = gridView1.Row DEBUG curRow DEBUG gridView1[curRow, 4].Text $result = modDb.$Con.Exec("SELECT * FROM Albums WHERE ID = '" & gridView1[curRow, 4].Text & "'") DEBUG $result["AlbumName"] tempPicture = $result["Pic"].Data IF tempPicture THEN File.Save(tempf, tempPicture) PictureBox1.Picture = Picture.Load(tempF) PictureBox1.Resize(PictureBox1.Picture.Width, PictureBox1.Picture.Height) ELSE PictureBox1.Picture = NULL END IF IF Exist(tempFile) THEN KILL tempFile ' PictureBox1.picture = $result!Pic ENDIF END From gambas at ...1... Wed Apr 2 10:22:37 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 2 Apr 2008 10:22:37 +0200 Subject: [Gambas-user] Retrieving jpegs from a MySQL database In-Reply-To: <47F30B53.8000408@...626...> References: <47F2E28E.3010808@...626...> <200804020343.58973.gambas@...1...> <47F30B53.8000408@...626...> Message-ID: <200804021022.37662.gambas@...1...> On mercredi 2 avril 2008, Lee McPherson wrote: > I've been looking at the examples supplied with Gambas and I've tried to > copy some of the code from the PictureDatabase example. I know that my > database is setup correctly and that the field names are correct. I > have some jpegs stored as BLOBs and they display correctly using the > MySQL Query browser. > > However, this code will give me the error "Not an object" and I'm at a > loss as to what I'm doing wrong. Below is some of my code. Basically I > have two tables so far. One contains all the ID3v2 info from an MP3 > with album names represented by numbers. These numbers are referenced > to the album name and album cover art in jpeg format as a BLOB in a > second table. I click on the file I want in my gridview table and it is > supposed to display the album cover in a PictureBox next to it. The > selection works and I can get it to reference the actual album's name, > but it stops at the tempPicture = $result["Pic"].Data line. > > PUBLIC SUB GridView1_Change() > DIM sQuery AS String > DIM curRow AS Integer > DIM tempFile AS String > DIM tempPicture AS String > > tempFile = Temp() & ".jpg" > IF gridView1.Row <> -1 > modDb.Connect() > curRow = gridView1.Row > DEBUG curRow > DEBUG gridView1[curRow, 4].Text > $result = modDb.$Con.Exec("SELECT * FROM Albums WHERE ID = '" & > gridView1[curRow, 4].Text & "'") Don't do that, but: $result = modDb.$Con.Exec("SELECT * FROM Albums WHERE ID = &1", gridView[curRow, 4].Text) > DEBUG $result["AlbumName"] > tempPicture = $result["Pic"].Data > IF tempPicture THEN > File.Save(tempf, tempPicture) > PictureBox1.Picture = Picture.Load(tempF) > PictureBox1.Resize(PictureBox1.Picture.Width, > PictureBox1.Picture.Height) > ELSE > PictureBox1.Picture = NULL > END IF > IF Exist(tempFile) THEN KILL tempFile > ' PictureBox1.picture = $result!Pic > ENDIF > > END > Did you create the database with the database manager? Are you sure that $result["pic"] returns a blob object? You know that with: PRINT $result.Fields["pic"].Type -- Benoit Minisini From poposick at ...43... Wed Apr 2 16:34:07 2008 From: poposick at ...43... (Hn) Date: Wed, 2 Apr 2008 07:34:07 -0700 (PDT) Subject: [Gambas-user] regarding gambas Message-ID: <706479.34401.qm@...1878...> hi im newbie in linux and gambas i have one program that i create using c and simple gui contain one button that i create with gambas. my purpose is when i click the button it will run my program. can i do that? anynbody plz help me? --------------------------------- You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. From rospolosco at ...152... Wed Apr 2 16:38:30 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 2 Apr 2008 16:38:30 +0200 Subject: [Gambas-user] regarding gambas In-Reply-To: <706479.34401.qm@...1878...> References: <706479.34401.qm@...1878...> Message-ID: <200804021638.30572.rospolosco@...152...> Alle 16:34, mercoled? 2 aprile 2008, Hn ha scritto: > hi im newbie in linux and gambas > i have one program that i create using c and simple gui contain one button > that i create with gambas. my purpose is when i click the button it will > run my program. can i do that? anynbody plz help me? > PUBLIC SUB Button_Click() SHELL "path_to_your_executable" WAIT END SUB Ciao, Stefano > > --------------------------------- > You rock. That's why Blockbuster's offering you one month of Blockbuster > Total Access, No Cost. > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From maximvonk at ...626... Wed Apr 2 18:16:07 2008 From: maximvonk at ...626... (MaxVK) Date: Wed, 2 Apr 2008 09:16:07 -0700 (PDT) Subject: [Gambas-user] Where is the component example? Message-ID: <16447378.post@...1379...> Hi, I was just reading the Gambas introduction at http://gambas.sourceforge.net/introduction.html, and I noticed this line: "There is a component example to help people learning how to write components." Iv hunted through the examples that came with Gambas (I'm using v2.0.0), but I cant see one that is an example of a component that has been written in Gambas. Which example is it, or if Iv not got it, could someone post a copy please. Cheers Max -- View this message in context: http://www.nabble.com/Where-is-the-component-example--tp16447378p16447378.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Apr 2 18:19:40 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 2 Apr 2008 18:19:40 +0200 Subject: [Gambas-user] Where is the component example? In-Reply-To: <16447378.post@...1379...> References: <16447378.post@...1379...> Message-ID: <200804021819.40028.gambas@...1...> On mercredi 2 avril 2008, MaxVK wrote: > Hi, I was just reading the Gambas introduction at > http://gambas.sourceforge.net/introduction.html, and I noticed this line: > > "There is a component example to help people learning how to write > components." > > Iv hunted through the examples that came with Gambas (I'm using v2.0.0), > but I cant see one that is an example of a component that has been written > in Gambas. > > Which example is it, or if Iv not got it, could someone post a copy please. > > Cheers > > Max There is no component example for component written in Gambas, but you can look at the source code of the components written in Gambas in the comp/src directory. They are all real-life examples! I will write a document about writing components in Gambas soon. Stay tune... -- Benoit Minisini From peter.talken at ...1879... Wed Apr 2 19:11:59 2008 From: peter.talken at ...1879... (Peter Landgren) Date: Wed, 2 Apr 2008 19:11:59 +0200 Subject: [Gambas-user] Simple question about string object Message-ID: <200804021911.59377.peter.talken@...1879...> Hi, I'm lost. I can't see how to define a string object, so that I can get correct results for UTF-8 when using methods like .Lcase or .Lower. /Peter From gambas at ...1... Wed Apr 2 19:15:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 2 Apr 2008 19:15:34 +0200 Subject: [Gambas-user] Simple question about string object In-Reply-To: <200804021911.59377.peter.talken@...1879...> References: <200804021911.59377.peter.talken@...1879...> Message-ID: <200804021915.34399.gambas@...1...> On mercredi 2 avril 2008, Peter Landgren wrote: > Hi, > > I'm lost. > > I can't see how to define a string object, so that I can get correct > results for UTF-8 when using methods like .Lcase or .Lower. > > /Peter > There is no "string objects". Only a String datatype. The String class methods are all statics. So, for example, if your string is UTF-8 encoded (and only you know that, not Gambas), you convert it to lowercase this way: MyUTF8StringInLowerCase = String.LCase(MyUTF8String) Regards, -- Benoit Minisini From rohnny at ...1248... Wed Apr 2 19:20:20 2008 From: rohnny at ...1248... (R. Stormo) Date: Wed, 2 Apr 2008 10:20:20 -0700 (PDT) Subject: [Gambas-user] Trunk and Ubuntu 8.04 Message-ID: <16447649.post@...1379...> I have installed Ubuntu Beta 8.04 and tried to compile gambas3 rev. 1282. Everything are ok until I try to start it. --snip gbr3: error while loading shared libraries: libgettextlib-0.16.1.so: cannot open shared object file: No such file or directory --snap Is there something Ubuntu is missing or is it something that are missing in the compilation? Regards Rohnny My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/Trunk-and-Ubuntu-8.04-tp16447649p16447649.html Sent from the gambas-user mailing list archive at Nabble.com. From epileg at ...626... Wed Apr 2 19:30:05 2008 From: epileg at ...626... (=?ISO-8859-1?Q?Ep=EDleg?=) Date: Wed, 02 Apr 2008 19:30:05 +0200 Subject: [Gambas-user] Trunk and Ubuntu 8.04 In-Reply-To: <16447649.post@...1379...> References: <16447649.post@...1379...> Message-ID: <47F3C29D.8000703@...626...> En/na R. Stormo ha escrit: > I have installed Ubuntu Beta 8.04 and tried to compile gambas3 rev. 1282. > Everything are ok until I try to start it. > > --snip > gbr3: error while loading shared libraries: libgettextlib-0.16.1.so: cannot > open shared object file: No such file or directory > --snap > > Is there something Ubuntu is missing or is it something that are missing in > the compilation? > > > Regards Rohnny > > My Gambas Community http://gambasforum.tk Hi, Intall "gettext" package. regards, Ep?leg. From demosthenesk at ...626... Wed Apr 2 20:41:46 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 2 Apr 2008 21:41:46 +0300 Subject: [Gambas-user] Installing 2.4.1 on Fedora 7 In-Reply-To: <47F26570.3090006@...407...> References: <47F19134.6010100@...407...> <200804011527.43565.gambas@...1...> <47F26570.3090006@...407...> Message-ID: In ld.so.conf you write the paths of installed libs. Check out if there is the path of libffi libs. Normally it is installed in /usr/local/lib, so check if this path is in ld.so.conf my ld.so.conf (on openSuse 10.2) for example has these lines. /usr/X11R6/lib/Xaw3d /usr/X11R6/lib /usr/lib/Xaw3d /usr/i386-suse-linux/lib /usr/local/lib /usr/lib /opt/kde3/lib /opt/gnome/lib include /etc/ld.so.conf.d/*.conf On 4/1/08, Scott Castaline wrote: > Demosthenes Koptsis wrote: > > I installed libffi in /usr/local/lib in my *openSuse 10.2* > > but i had to have a line for the path in */etc/ld.so.conf* > > and run *ldconfig* after any lib installation. > > > > On Tue, Apr 1, 2008 at 4:27 PM, Benoit Minisini < > > gambas at ...1...> wrote: > > > > > >> On mardi 1 avril 2008, Scott Castaline wrote: > >> > >>> I have Fedora 7, (2.6.23.15-80.fc7) installed. I am trying to compile > >>> and install Gambas 2.4.1 and cannot seem to get any where. When I run > >>> ./configure -C I get the following errors: > >>> > >>> * Failed to find file libintl.so > >>> configure: This library should be located inside the system C library > >>> checking for optional external charset conversion library headers... > >>> /usr/local/include/ > >>> checking for optional external charset conversion library libraries... > >>> /usr/local/lib/ > >>> checking for foreign function interface component with pkg-config... no > >>> configure: Cannnot find libffi support with pkg-config > >>> checking for foreign function interface headers... no > >>> * Failed to find file ffi.h > >>> checking for foreign function interface libraries... /usr/local/lib/ > >>> configure: WARNING: *** foreign function interface is disabled > >>> configure: error: libffi library and headers are required > >>> configure: error: ./configure failed for main > >>> > >>> I found the source code for libffi.so, libffi-3.0.4, dl'd ran > >>> ./configure, make, make install, all as root. It still could not find it > >>> even though the header files are in /usr/local/lib/include and the other > >>> files are in /usr/local/lib. I was also getting a message about missing > >>> libiconv.so and after a long search I found libiconv-1.12 and did the > >>> same for that as libffi. The error for libiconv went away but the > >>> libintl and libffi were still there. I finally founf something about > >>> gettext. I checked through my pkgmgr and found that I had gettext but > >>> not gettext-devel, so installed that. I'm still getting the above. > >>> > >>> Any ideas? > >>> > >>> > >> libiconv and libintl are not mandatory. As for libffi, the problem is > that > >> I > >> forgot to add /usr/local/lib/include as an include search path for > libffi. > >> I > >> will fix that in the next release, but please install libffi in another > >> place > >> (/usr/lib) for example as workaround. > >> > >> But you should not have to compile libffi, you should have a binary > >> package. > >> > >> Regards, > >> > >> -- > >> Benoit Minisini > >> > >> ------------------------------------------------------------------------- > >> Check out the new SourceForge.net Marketplace. > >> It's the best place to buy or sell services for > >> just about anything Open Source. > >> > >> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > > > > > > > > > I understand the concept of what ldconfig is doing, I'm not sure how to > structure my line(s) in ld.so.conf. What do I put there? And am I just > concerned with the header files or also the .so files. > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From peter.talken at ...1879... Wed Apr 2 20:57:49 2008 From: peter.talken at ...1879... (Peter Landgren) Date: Wed, 2 Apr 2008 20:57:49 +0200 Subject: [Gambas-user] Simple question about string object In-Reply-To: <200804021915.34399.gambas@...1...> References: <200804021911.59377.peter.talken@...1879...> <200804021915.34399.gambas@...1...> Message-ID: <200804022057.49356.peter.talken@...1879...> > > Hi, > > > > I'm lost. > > > > I can't see how to define a string object, so that I can get correct > > results for UTF-8 when using methods like .Lcase or .Lower. > > > > /Peter > > There is no "string objects". Only a String datatype. The String class > methods are all statics. > > So, for example, if your string is UTF-8 encoded (and only you know that, > not Gambas), you convert it to lowercase this way: > > MyUTF8StringInLowerCase = String.LCase(MyUTF8String) > > Regards, Thanks Benoit, That little example explained a lot. /Peter From jbskaggs at ...1871... Wed Apr 2 21:43:23 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Wed, 2 Apr 2008 12:43:23 -0700 (PDT) Subject: [Gambas-user] How to show which controls are on top Message-ID: <16449934.post@...1379...> I am confused by something. I wish to show a panel that has two buttons and textbox. But I am not grasping how to attach the textbox, etc to the panel. COuld someone give me an example? JB Skaggs -- View this message in context: http://www.nabble.com/How-to-show-which-controls-are-on-top-tp16449934p16449934.html Sent from the gambas-user mailing list archive at Nabble.com. From robert.c.rowe at ...626... Thu Apr 3 00:47:35 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Wed, 02 Apr 2008 18:47:35 -0400 Subject: [Gambas-user] How to show which controls are on top In-Reply-To: <16449934.post@...1379...> References: <16449934.post@...1379...> Message-ID: <47F40D07.4060209@...626...> If you are using the GUI designer then simply draw the text boxes on the panel. If you are creating them in code then you pass the parent container as a parameter of the New method. Like this: Dim text1 as Textbox Dim text2 as Textbox Dim MyPanel as Panel MyPanel =new Panel(me) '<-- the parent of the panel is the form it is on text1= new Textbox(MyPanel) text2= new Textbox(MyPanel) '<-- the parent of the textboxes is MyPanel Robert Rowe jbskaggs wrote: > I am confused by something. > > I wish to show a panel that has two buttons and textbox. But I am not > grasping how to attach the textbox, etc to the panel. COuld someone give me > an example? > > JB Skaggs > From leemcpherson at ...626... Thu Apr 3 01:13:28 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Wed, 02 Apr 2008 19:13:28 -0400 Subject: [Gambas-user] Retrieving jpegs from a MySQL database In-Reply-To: <200804021022.37662.gambas@...1...> References: <47F2E28E.3010808@...626...> <200804020343.58973.gambas@...1...> <47F30B53.8000408@...626...> <200804021022.37662.gambas@...1...> Message-ID: <47F41318.1090802@...626...> Benoit Minisini wrote: > On mercredi 2 avril 2008, Lee McPherson wrote: > >> I've been looking at the examples supplied with Gambas and I've tried to >> copy some of the code from the PictureDatabase example. I know that my >> database is setup correctly and that the field names are correct. I >> have some jpegs stored as BLOBs and they display correctly using the >> MySQL Query browser. >> >> However, this code will give me the error "Not an object" and I'm at a >> loss as to what I'm doing wrong. Below is some of my code. Basically I >> have two tables so far. One contains all the ID3v2 info from an MP3 >> with album names represented by numbers. These numbers are referenced >> to the album name and album cover art in jpeg format as a BLOB in a >> second table. I click on the file I want in my gridview table and it is >> supposed to display the album cover in a PictureBox next to it. The >> selection works and I can get it to reference the actual album's name, >> but it stops at the tempPicture = $result["Pic"].Data line. >> >> PUBLIC SUB GridView1_Change() >> DIM sQuery AS String >> DIM curRow AS Integer >> DIM tempFile AS String >> DIM tempPicture AS String >> >> tempFile = Temp() & ".jpg" >> IF gridView1.Row <> -1 >> modDb.Connect() >> curRow = gridView1.Row >> DEBUG curRow >> DEBUG gridView1[curRow, 4].Text >> $result = modDb.$Con.Exec("SELECT * FROM Albums WHERE ID = '" & >> gridView1[curRow, 4].Text & "'") >> > > Don't do that, but: > > $result = modDb.$Con.Exec("SELECT * FROM Albums WHERE ID = &1", > gridView[curRow, 4].Text) > > >> DEBUG $result["AlbumName"] >> tempPicture = $result["Pic"].Data >> IF tempPicture THEN >> File.Save(tempf, tempPicture) >> PictureBox1.Picture = Picture.Load(tempF) >> PictureBox1.Resize(PictureBox1.Picture.Width, >> PictureBox1.Picture.Height) >> ELSE >> PictureBox1.Picture = NULL >> END IF >> IF Exist(tempFile) THEN KILL tempFile >> ' PictureBox1.picture = $result!Pic >> ENDIF >> >> END >> >> > > Did you create the database with the database manager? Are you sure that > $result["pic"] returns a blob object? You know that with: > > PRINT $result.Fields["pic"].Type > > I added that line of code and it returned type 9... which seems like it's reading it as a type String (or text for MySQL). The db.blob constant is -2. I'm not sure what to do about this, as that field (Pic) in the table Albums is configured to be of type BLOB in the MySQL administrator app. Any clues? I'm far from proficient using MySQL but it seems like everything is correct. -Lee From gambas at ...1... Thu Apr 3 01:21:41 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 3 Apr 2008 01:21:41 +0200 Subject: [Gambas-user] Retrieving jpegs from a MySQL database In-Reply-To: <47F41318.1090802@...626...> References: <47F2E28E.3010808@...626...> <200804021022.37662.gambas@...1...> <47F41318.1090802@...626...> Message-ID: <200804030121.41947.gambas@...1...> On jeudi 3 avril 2008, Lee McPherson wrote: > Benoit Minisini wrote: > > On mercredi 2 avril 2008, Lee McPherson wrote: > >> I've been looking at the examples supplied with Gambas and I've tried to > >> copy some of the code from the PictureDatabase example. I know that my > >> database is setup correctly and that the field names are correct. I > >> have some jpegs stored as BLOBs and they display correctly using the > >> MySQL Query browser. > >> > >> However, this code will give me the error "Not an object" and I'm at a > >> loss as to what I'm doing wrong. Below is some of my code. Basically I > >> have two tables so far. One contains all the ID3v2 info from an MP3 > >> with album names represented by numbers. These numbers are referenced > >> to the album name and album cover art in jpeg format as a BLOB in a > >> second table. I click on the file I want in my gridview table and it is > >> supposed to display the album cover in a PictureBox next to it. The > >> selection works and I can get it to reference the actual album's name, > >> but it stops at the tempPicture = $result["Pic"].Data line. > >> > >> PUBLIC SUB GridView1_Change() > >> DIM sQuery AS String > >> DIM curRow AS Integer > >> DIM tempFile AS String > >> DIM tempPicture AS String > >> > >> tempFile = Temp() & ".jpg" > >> IF gridView1.Row <> -1 > >> modDb.Connect() > >> curRow = gridView1.Row > >> DEBUG curRow > >> DEBUG gridView1[curRow, 4].Text > >> $result = modDb.$Con.Exec("SELECT * FROM Albums WHERE ID = '" & > >> gridView1[curRow, 4].Text & "'") > > > > Don't do that, but: > > > > $result = modDb.$Con.Exec("SELECT * FROM Albums WHERE ID = &1", > > gridView[curRow, 4].Text) > > > >> DEBUG $result["AlbumName"] > >> tempPicture = $result["Pic"].Data > >> IF tempPicture THEN > >> File.Save(tempf, tempPicture) > >> PictureBox1.Picture = Picture.Load(tempF) > >> PictureBox1.Resize(PictureBox1.Picture.Width, > >> PictureBox1.Picture.Height) > >> ELSE > >> PictureBox1.Picture = NULL > >> END IF > >> IF Exist(tempFile) THEN KILL tempFile > >> ' PictureBox1.picture = $result!Pic > >> ENDIF > >> > >> END > > > > Did you create the database with the database manager? Are you sure that > > $result["pic"] returns a blob object? You know that with: > > > > PRINT $result.Fields["pic"].Type > > I added that line of code and it returned type 9... which seems like > it's reading it as a type String (or text for MySQL). The db.blob > constant is -2. I'm not sure what to do about this, as that field (Pic) > in the table Albums is configured to be of type BLOB in the MySQL > administrator app. > > Any clues? I'm far from proficient using MySQL but it seems like > everything is correct. > > -Lee > You must use the LONGBLOB datatype if you want Gambas to see your field as a blob. For an explanation, see: http://gambasdoc.org/help/doc/db-type-mapping Regards, -- Benoit Minisini From leemcpherson at ...626... Thu Apr 3 01:32:14 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Wed, 02 Apr 2008 19:32:14 -0400 Subject: [Gambas-user] Retrieving jpegs from a MySQL database In-Reply-To: <200804030121.41947.gambas@...1...> References: <47F2E28E.3010808@...626...> <200804021022.37662.gambas@...1...> <47F41318.1090802@...626...> <200804030121.41947.gambas@...1...> Message-ID: <47F4177E.2010407@...626...> Benoit Minisini wrote: > On jeudi 3 avril 2008, Lee McPherson wrote: > >> Benoit Minisini wrote: >> >>> On mercredi 2 avril 2008, Lee McPherson wrote: >>> >>>> I've been looking at the examples supplied with Gambas and I've tried to >>>> copy some of the code from the PictureDatabase example. I know that my >>>> database is setup correctly and that the field names are correct. I >>>> have some jpegs stored as BLOBs and they display correctly using the >>>> MySQL Query browser. >>>> >>>> However, this code will give me the error "Not an object" and I'm at a >>>> loss as to what I'm doing wrong. Below is some of my code. Basically I >>>> have two tables so far. One contains all the ID3v2 info from an MP3 >>>> with album names represented by numbers. These numbers are referenced >>>> to the album name and album cover art in jpeg format as a BLOB in a >>>> second table. I click on the file I want in my gridview table and it is >>>> supposed to display the album cover in a PictureBox next to it. The >>>> selection works and I can get it to reference the actual album's name, >>>> but it stops at the tempPicture = $result["Pic"].Data line. >>>> >>>> PUBLIC SUB GridView1_Change() >>>> DIM sQuery AS String >>>> DIM curRow AS Integer >>>> DIM tempFile AS String >>>> DIM tempPicture AS String >>>> >>>> tempFile = Temp() & ".jpg" >>>> IF gridView1.Row <> -1 >>>> modDb.Connect() >>>> curRow = gridView1.Row >>>> DEBUG curRow >>>> DEBUG gridView1[curRow, 4].Text >>>> $result = modDb.$Con.Exec("SELECT * FROM Albums WHERE ID = '" & >>>> gridView1[curRow, 4].Text & "'") >>>> >>> Don't do that, but: >>> >>> $result = modDb.$Con.Exec("SELECT * FROM Albums WHERE ID = &1", >>> gridView[curRow, 4].Text) >>> >>> >>>> DEBUG $result["AlbumName"] >>>> tempPicture = $result["Pic"].Data >>>> IF tempPicture THEN >>>> File.Save(tempf, tempPicture) >>>> PictureBox1.Picture = Picture.Load(tempF) >>>> PictureBox1.Resize(PictureBox1.Picture.Width, >>>> PictureBox1.Picture.Height) >>>> ELSE >>>> PictureBox1.Picture = NULL >>>> END IF >>>> IF Exist(tempFile) THEN KILL tempFile >>>> ' PictureBox1.picture = $result!Pic >>>> ENDIF >>>> >>>> END >>>> >>> Did you create the database with the database manager? Are you sure that >>> $result["pic"] returns a blob object? You know that with: >>> >>> PRINT $result.Fields["pic"].Type >>> >> I added that line of code and it returned type 9... which seems like >> it's reading it as a type String (or text for MySQL). The db.blob >> constant is -2. I'm not sure what to do about this, as that field (Pic) >> in the table Albums is configured to be of type BLOB in the MySQL >> administrator app. >> >> Any clues? I'm far from proficient using MySQL but it seems like >> everything is correct. >> >> -Lee >> >> > > You must use the LONGBLOB datatype if you want Gambas to see your field as a > blob. For an explanation, see: http://gambasdoc.org/help/doc/db-type-mapping > > > That worked beautifully after I reloaded my tables! Thank you very much! -Lee From robert.c.rowe at ...626... Thu Apr 3 02:20:16 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Wed, 02 Apr 2008 20:20:16 -0400 Subject: [Gambas-user] Stock icons Message-ID: <47F422C0.4050603@...626...> Is it possible to access the stock icons via code? dim btnTest as ToolButton btnTest.Picture = Picture[icon:/16/new] I tried this but didn't get a picture. I can use the icon on a form or button via the property panel. Robert Rowe From gambas at ...1... Thu Apr 3 02:24:41 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 3 Apr 2008 02:24:41 +0200 Subject: [Gambas-user] Stock icons In-Reply-To: <47F422C0.4050603@...626...> References: <47F422C0.4050603@...626...> Message-ID: <200804030224.41864.gambas@...1...> On jeudi 3 avril 2008, Robert Rowe wrote: > Is it possible to access the stock icons via code? > > dim btnTest as ToolButton > btnTest.Picture = Picture[icon:/16/new] > You forgot the quotes: Picture["icon:/16/new"] -- Benoit Minisini From robert.c.rowe at ...626... Thu Apr 3 02:46:47 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Wed, 02 Apr 2008 20:46:47 -0400 Subject: [Gambas-user] Stock icons In-Reply-To: <200804030224.41864.gambas@...1...> References: <47F422C0.4050603@...626...> <200804030224.41864.gambas@...1...> Message-ID: <47F428F7.503@...626...> That was just code I typed directly into the email. I'm actually using a variable in my code. Robert Rowe Benoit Minisini wrote: > On jeudi 3 avril 2008, Robert Rowe wrote: > >> Is it possible to access the stock icons via code? >> >> dim btnTest as ToolButton >> btnTest.Picture = Picture[icon:/16/new] >> >> > > You forgot the quotes: Picture["icon:/16/new"] > > From robert.c.rowe at ...626... Thu Apr 3 03:03:20 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Wed, 02 Apr 2008 21:03:20 -0400 Subject: [Gambas-user] Stock icons In-Reply-To: <200804030224.41864.gambas@...1...> References: <47F422C0.4050603@...626...> <200804030224.41864.gambas@...1...> Message-ID: <47F42CD8.6050403@...626...> It was my code. I was using exist to make certain that the file existed before I used it. Since the stock icons aren't files in the data directory it was returning false. I changed it to check for NULL after I load the icon into the variable. It now works with stock icons or files. :) Thanks for the help. Robert Rowe Benoit Minisini wrote: > On jeudi 3 avril 2008, Robert Rowe wrote: > >> Is it possible to access the stock icons via code? >> >> dim btnTest as ToolButton >> btnTest.Picture = Picture[icon:/16/new] >> >> > > You forgot the quotes: Picture["icon:/16/new"] > > From robert.c.rowe at ...626... Thu Apr 3 05:00:33 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Wed, 02 Apr 2008 23:00:33 -0400 Subject: [Gambas-user] New Component - UCToolbar Message-ID: <47F44851.50308@...626...> My toolbar code is attached. It is not done but it is stable. Testers are welcome to try it out. If you run into a bug please try to be very detailed when you report it. Feature requests are welcome also. Follow the instructions below to install it. 1. Extract the files somewhere. 2. Open the project with Gambas3. I stay pretty current so you might have too also. 3. Select "Make/Executable" from the Project menu. 4. Close the project and re-open it. This step may not be necessary but it should ensure that the component gets loaded. 5. Go to the Components tab of the project properties and make certain that UCToolbar is checked. 6. Look in on the Form tab of the toolbox for a question mark icon and double click it. This is the UCToolbar. I haven't figured out how to give it an icon yet. 7. Uncomment all the code in FTest. 8. Run the program. 9. Steps 5 and 6 are all that's required for a new project. Here's how to use it: 1. Use the Add* methods to add tools. Right now it supports ToolButtons, ToggleButtons, Labels and Dropdowns. I have plans to add a MenuButon and probably others. Most of the parameters are optional but the Key and Description are required. The Label tool also requires the Text parameter. 2. Set the DefaultTools property. This is a comma separated list of keys. The tools with these keys will appear in the order that they are specified. A uctseparator is a transparent panel that has a width of 8. A uctlineseparator is also an 8 pixel wide panel but it has a vertical separator in it. 3. Call the LoadUserConfig method. This will reload any config previously saved by a user. 4. The UCToolbar will automatically stretch the full with of its parent. 5. When you run, you will notice a small down arrow to the far right. Click it to bring up the user config screen. Use the up, down, left and right buttons to select the desired tools. Double clicking the tools also works. Clicking the Default button will reload the tools from the DefaultTools property. 6. You can set the ShowButtonText property to show/hide the text for each tool. At this point the text will only appear to the right of the icon. This will change when the ToolButton control supports other options. 7. The Click event will fire whenever a tool is clicked. It has a string parameter called Key that will tell you which tool was clicked. Current limitations: 1. You can only use icons that are no more than 16 pixels tall. 2. The toolbar will always be 21 pixels high. 3. I haven't implemented any routines for manipulating Dropdowns yet. You can load them during the AddDropdown call but that all for now. 4. It doesn't support right to left yet. 5. If you display more tools than can fit, the excess tools will not show. I plan to add another button that will show the missing tools in a menu. 6. No help written yet but I do plan to write some. Unlike the existing Gambas toolbar, the UCToolbar is not a container. You add tools via the Add* methods. I hope to be able to add a GUI for the setup of tools and for generating the DefaultTools property. This component was inspired by KDE. I've taken pains to make it work as closely to KDE apps as I can, mainly because I love KDE. I don't use Gnome but I'd be happy to work with a Gnome user to make it act more Gnomish. :) In the future I'll have updates available from my work's website if I can get permission to do so. I hope to eventually get the UCToolbar added to the main Gambas source distribution. Benoit has strict standards though so this may take me a while. I have not localized it as I only speak/read English. I did try to mark all text as translatable though so it should be possible if someone wants to work on it. Robert Rowe -------------- next part -------------- A non-text attachment was scrubbed... Name: uctoolbar.tar.gz Type: application/x-gzip Size: 103756 bytes Desc: not available URL: From poposick at ...43... Thu Apr 3 05:31:16 2008 From: poposick at ...43... (hamdan) Date: Wed, 2 Apr 2008 20:31:16 -0700 (PDT) Subject: [Gambas-user] integrated with c programmig Message-ID: <16463048.post@...1379...> hi everyone. im new in this gambas. my question i think is easy but have trouble to complete it. i have one program that i create with c and a simple gui contain one button that i create using gambas. my purpose is when i click the button it will run my program. can i do that? -- View this message in context: http://www.nabble.com/integrated-with-c-programmig-tp16463048p16463048.html Sent from the gambas-user mailing list archive at Nabble.com. From sourceforge-raindog2 at ...94... Thu Apr 3 05:34:54 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 2 Apr 2008 23:34:54 -0400 Subject: [Gambas-user] integrated with c programmig In-Reply-To: <16463048.post@...1379...> References: <16463048.post@...1379...> Message-ID: <200804022334.54622.sourceforge-raindog2@...94...> On Wednesday 02 April 2008 23:31, hamdan wrote: > my purpose is when i click the button it will run my program. > can i do that? Sure. In the click event for your button, do this: SHELL "/whatever/your/program/is/called" WAIT That will run your program and wait for it to end. Rob From rterry at ...1822... Wed Apr 2 23:12:41 2008 From: rterry at ...1822... (richard terry) Date: Thu, 3 Apr 2008 08:12:41 +1100 Subject: [Gambas-user] How to show which controls are on top In-Reply-To: <16449934.post@...1379...> References: <16449934.post@...1379...> Message-ID: <200804030812.41422.rterry@...1822...> On Thu, 3 Apr 2008 06:43:23 am jbskaggs wrote: > I am confused by something. > > I wish to show a panel that has two buttons and textbox. But I am not > grasping how to attach the textbox, etc to the panel. COuld someone give me > an example? > > JB Skaggs 1) Do it in the design editor and you'll have no probems. 2) If you really want to do it in code, you must attatch the new object to a parent control eg Dim aTextbox as Textbox Dim aPanel as Panel public sub Create_My_Controls() aPanel = new Panel(ME) 'stick panel to a form aTextbox = new textbox(aPanel) 'stick textbox to a panel End see attatched project. -------------- next part -------------- A non-text attachment was scrubbed... Name: stickmeonpanel-0.0.1.tar.gz Type: application/x-tgz Size: 7628 bytes Desc: not available URL: From rterry at ...1822... Thu Apr 3 04:37:48 2008 From: rterry at ...1822... (richard terry) Date: Thu, 3 Apr 2008 13:37:48 +1100 Subject: [Gambas-user] Returning multiple values from a function Message-ID: <200804031337.48109.rterry@...1822...> Hope this is not too ambiguous or dumb: Is it possible to return more than 1 value from a function? This works: function DoSomething(name as string) as integer[] Dim numbers as integer[2] 'do whatever in here numbers[0]=10 numbers[1] = 20 return numbers however seems a bit clumbsy doing this: function Dosomething(name as string) as integer,string REturn 10,"cat" Dosn't Probably a stupid question. I guess if you want back non identical types one would just use a variant array? thanks Richard From rterry at ...1822... Thu Apr 3 03:55:11 2008 From: rterry at ...1822... (richard terry) Date: Thu, 3 Apr 2008 12:55:11 +1100 Subject: [Gambas-user] Stock icons In-Reply-To: <47F42CD8.6050403@...626...> References: <47F422C0.4050603@...626...> <200804030224.41864.gambas@...1...> <47F42CD8.6050403@...626...> Message-ID: <200804031255.11233.rterry@...1822...> On Thu, 3 Apr 2008 12:03:20 pm Robert Rowe wrote: > It was my code. I was using exist to make certain that the file existed > before I used it. Since the stock icons aren't files in the data > directory it was returning false. I changed it to check for NULL after I > load the icon into the variable. It now works with stock icons or files. :) Rob, can you flick your solution to the list. I'm in the process of collecting all these little problems/solutions so that at some point down the track and can put them in a little gambas help file for all to use. Richard > > Thanks for the help. > > Robert Rowe > > Benoit Minisini wrote: > > On jeudi 3 avril 2008, Robert Rowe wrote: > >> Is it possible to access the stock icons via code? > >> > >> dim btnTest as ToolButton > >> btnTest.Picture = Picture[icon:/16/new] > > > > You forgot the quotes: Picture["icon:/16/new"] > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rohnny at ...1248... Thu Apr 3 06:13:00 2008 From: rohnny at ...1248... (R. Stormo) Date: Wed, 2 Apr 2008 21:13:00 -0700 (PDT) Subject: [Gambas-user] Trunk and Ubuntu 8.04 In-Reply-To: <47F3C29D.8000703@...626...> References: <16447649.post@...1379...> <47F3C29D.8000703@...626...> Message-ID: <16464130.post@...1379...> Ep?leg wrote: > > En/na R. Stormo ha escrit: >> I have installed Ubuntu Beta 8.04 and tried to compile gambas3 rev. 1282. >> Everything are ok until I try to start it. >> >> --snip >> gbr3: error while loading shared libraries: libgettextlib-0.16.1.so: >> cannot >> open shared object file: No such file or directory >> --snap >> >> Is there something Ubuntu is missing or is it something that are missing >> in >> the compilation? >> >> >> Regards Rohnny >> >> My Gambas Community http://gambasforum.tk > > Hi, > > Intall "gettext" package. > > regards, > Ep?leg. > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > I have that package. The problem is the version. 0.17-2Ubuntu1 locate libgettextlib-0 /usr/lib/libgettextlib-0.17.so I tried to make a link but that would not work. rohnny at ...1880...:~/gambas3$ sudo ln -s /usr/lib/libgettextlib-0.17.so /usr/lib/libgettextlib-0.16.1.so rohnny at ...1880...:~/gambas3$ gambas3 Segmentation fault (core dumped) -- View this message in context: http://www.nabble.com/Trunk-and-Ubuntu-8.04-tp16447649p16464130.html Sent from the gambas-user mailing list archive at Nabble.com. From rohnny at ...1248... Thu Apr 3 06:13:31 2008 From: rohnny at ...1248... (R. Stormo) Date: Wed, 2 Apr 2008 21:13:31 -0700 (PDT) Subject: [Gambas-user] Trunk and Ubuntu 8.04 Message-ID: <16464130.post@...1379...> Ep?leg wrote: > > En/na R. Stormo ha escrit: >> I have installed Ubuntu Beta 8.04 and tried to compile gambas3 rev. 1282. >> Everything are ok until I try to start it. >> >> --snip >> gbr3: error while loading shared libraries: libgettextlib-0.16.1.so: >> cannot >> open shared object file: No such file or directory >> --snap >> >> Is there something Ubuntu is missing or is it something that are missing >> in >> the compilation? >> >> >> Regards Rohnny >> >> My Gambas Community http://gambasforum.tk > > Hi, > > Intall "gettext" package. > > regards, > Ep?leg. > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > I have that package. The problem is the version. 0.17-2Ubuntu1 locate libgettextlib-0 /usr/lib/libgettextlib-0.17.so I tried to make a link but that would not work. rohnny at ...1880...:~/gambas3$ sudo ln -s /usr/lib/libgettextlib-0.17.so /usr/lib/libgettextlib-0.16.1.so rohnny at ...1880...:~/gambas3$ gambas3 Segmentation fault (core dumped) Regards Rohnny My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/Trunk-and-Ubuntu-8.04-tp16447649p16464130.html Sent from the gambas-user mailing list archive at Nabble.com. From jbskaggs at ...1871... Thu Apr 3 06:56:53 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Wed, 2 Apr 2008 21:56:53 -0700 (PDT) Subject: [Gambas-user] How to show which controls are on top In-Reply-To: <16449934.post@...1379...> References: <16449934.post@...1379...> Message-ID: <16465776.post@...1379...> I did draw it in the editor and when I run the textbox and buttons vanished. I ended up just making a new form, but I wonder why it didn't work jbskaggs wrote: > > I am confused by something. > > I wish to show a panel that has two buttons and textbox. But I am not > grasping how to attach the textbox, etc to the panel. COuld someone give > me an example? > > JB Skaggs > -- View this message in context: http://www.nabble.com/How-to-show-which-controls-are-on-top-tp16449934p16465776.html Sent from the gambas-user mailing list archive at Nabble.com. From dcamposf at ...626... Thu Apr 3 10:44:38 2008 From: dcamposf at ...626... (Daniel Campos) Date: Thu, 3 Apr 2008 10:44:38 +0200 Subject: [Gambas-user] Trunk and Ubuntu 8.04 In-Reply-To: <16447649.post@...1379...> References: <16447649.post@...1379...> Message-ID: <7259b5ae0804030144i119cc42s5f9efd7b6e9f2272@...627...> Hi: > > --snip > gbr3: error while loading shared libraries: libgettextlib-0.16.1.so: cannot > open shared object file: No such file or directory > --snap > May be there's something wrong in your system, or in the current Ubuntu beta + last beta repositories updates. Just a week ago, I compiled Gambas 2 and created Debian packages for that beta distribution and everything worked without problems. (unless something changed in Gambas3 so it asks for a concrete Gettext version, but I doubt it). Did you make ./reconf-all prior to ./configure? Daniel From jaap_cramer at ...67... Thu Apr 3 10:52:53 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Thu, 3 Apr 2008 10:52:53 +0200 Subject: [Gambas-user] Returning multiple values from a function In-Reply-To: <200804031337.48109.rterry@...1822...> References: <200804031337.48109.rterry@...1822...> Message-ID: When I need multiple returnvalues I use an array Mostly of the string[] type. When it contains different things, like an integer and a string, I put them in 1 string, and split them sResult = DoSomething() ' call the function result is "10|cat" ' i use a pipe to divide my string sInteger = val(left(sResult, instr(sResult, "|")-1)) sString = mid(sResult, instr(sResult, "|")+1) I think this should work... ---------------------------------------- > From: rterry at ...1822... > To: gambas-user at lists.sourceforge.net > Date: Thu, 3 Apr 2008 13:37:48 +1100 > Subject: [Gambas-user] Returning multiple values from a function > > Hope this is not too ambiguous or dumb: > > Is it possible to return more than 1 value from a function? > > > This works: > > function DoSomething(name as string) as integer[] > Dim numbers as integer[2] > > 'do whatever in here > numbers[0]=10 > numbers[1] = 20 > return numbers > > > however seems a bit clumbsy > > doing this: > > function Dosomething(name as string) as integer,string > > REturn 10,"cat" > > Dosn't > > Probably a stupid question. I guess if you want back non identical types > one would just use a variant array? > > > > thanks > > Richard > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Probeer Live Search: de zoekmachine van de makers van MSN! http://www.live.com/?searchOnly=true From wig at ...1809... Thu Apr 3 11:03:35 2008 From: wig at ...1809... (wig) Date: Thu, 3 Apr 2008 11:03:35 +0200 (CEST) Subject: [Gambas-user] Suggestion IDE: property color number "paste" Message-ID: <36144.81.247.126.185.1207213415.squirrel@...1810...> It would be practical to be able to past the color number in the Gambas IDE. - in the properties background, foreground - of textlabel, textbox, etc. It is already possible to "select", and to "copy" in this places. Two possibilities (or both): - (example:) ValueBox, Foreground field (shows: &H505050& ) - the color picker [...] "Select a color", Free (shows te color number picked, might also work reverse; paste color number shows color) Version: Gambas 2.2 (Sorry if already done in later versions) Wim. From eilert-sprachen at ...221... Thu Apr 3 11:40:53 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 03 Apr 2008 11:40:53 +0200 Subject: [Gambas-user] Returning multiple values from a function In-Reply-To: References: <200804031337.48109.rterry@...1822...> Message-ID: <47F4A625.9030408@...221...> This is just the way I do it. But when I have more than 2 values to separate, I'll use another string[] to have them splitted (though I like to use a Tab (chr$(9)). This runs incredibly fast in Gambas. Let's assume you receive a string like "10|cat|male|black" I would do dim partstring as new string[] partstring = split(sResult, "|") 'and now you can examine the part-strings: if val(partstring[0]) = 10 then... if partstring[1] = "cat" then... Rolf Jaap Cramer schrieb: > When I need multiple returnvalues I use an array > Mostly of the string[] type. > When it contains different things, like an integer and a string, I put them in 1 string, and split them > > sResult = DoSomething() ' call the function > result is "10|cat" ' i use a pipe to divide my string > > sInteger = val(left(sResult, instr(sResult, "|")-1)) > sString = mid(sResult, instr(sResult, "|")+1) > > I think this should work... > > ---------------------------------------- >> From: rterry at ...1822... >> To: gambas-user at lists.sourceforge.net >> Date: Thu, 3 Apr 2008 13:37:48 +1100 >> Subject: [Gambas-user] Returning multiple values from a function >> >> Hope this is not too ambiguous or dumb: >> >> Is it possible to return more than 1 value from a function? >> >> >> This works: >> >> function DoSomething(name as string) as integer[] >> Dim numbers as integer[2] >> >> 'do whatever in here >> numbers[0]=10 >> numbers[1] = 20 >> return numbers >> >> >> however seems a bit clumbsy >> >> doing this: >> >> function Dosomething(name as string) as integer,string >> >> REturn 10,"cat" >> >> Dosn't >> >> Probably a stupid question. I guess if you want back non identical types >> one would just use a variant array? >> >> >> >> thanks >> >> Richard >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > _________________________________________________________________ > Probeer Live Search: de zoekmachine van de makers van MSN! > http://www.live.com/?searchOnly=true > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Apr 3 11:46:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 3 Apr 2008 11:46:30 +0200 Subject: [Gambas-user] Returning multiple values from a function In-Reply-To: <47F4A625.9030408@...221...> References: <200804031337.48109.rterry@...1822...> <47F4A625.9030408@...221...> Message-ID: <200804031146.30785.gambas@...1...> On jeudi 3 avril 2008, Rolf-Werner Eilert wrote: > This is just the way I do it. But when I have more than 2 values to > separate, I'll use another string[] to have them splitted (though I like > to use a Tab (chr$(9)). This runs incredibly fast in Gambas. > > Let's assume you receive a string like "10|cat|male|black" I would do > > dim partstring as new string[] > > partstring = split(sResult, "|") > > 'and now you can examine the part-strings: > > if val(partstring[0]) = 10 then... > > if partstring[1] = "cat" then... > > Rolf > > Jaap Cramer schrieb: > > When I need multiple returnvalues I use an array > > Mostly of the string[] type. > > When it contains different things, like an integer and a string, I put > > them in 1 string, and split them > > > > sResult = DoSomething() ' call the function > > result is "10|cat" ' i use a pipe to divide my string > > > > sInteger = val(left(sResult, instr(sResult, "|")-1)) > > sString = mid(sResult, instr(sResult, "|")+1) > > > > I think this should work... > > > > ---------------------------------------- > > > >> From: rterry at ...1822... > >> To: gambas-user at lists.sourceforge.net > >> Date: Thu, 3 Apr 2008 13:37:48 +1100 > >> Subject: [Gambas-user] Returning multiple values from a function > >> > >> Hope this is not too ambiguous or dumb: > >> > >> Is it possible to return more than 1 value from a function? > >> > >> > >> This works: > >> > >> function DoSomething(name as string) as integer[] > >> Dim numbers as integer[2] > >> > >> 'do whatever in here > >> numbers[0]=10 > >> numbers[1] = 20 > >> return numbers > >> > >> > >> however seems a bit clumbsy > >> > >> doing this: > >> > >> function Dosomething(name as string) as integer,string > >> > >> REturn 10,"cat" > >> > >> Dosn't > >> > >> Probably a stupid question. I guess if you want back non identical types > >> one would just use a variant array? > >> > >> > >> > >> thanks > >> > >> Richard > >> I think the better is using an array of Variant, or better an anoynmous array: FUNCTION DoSomething(Name AS String) AS Array DIM FirstResult AS ... DIM SecondResult AS ... ' Do something RETURN [FirstResult, SecondResult] END -- Benoit Minisini From eilert-sprachen at ...221... Thu Apr 3 11:54:28 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 03 Apr 2008 11:54:28 +0200 Subject: [Gambas-user] Returning multiple values from a function In-Reply-To: <200804031146.30785.gambas@...1...> References: <200804031337.48109.rterry@...1822...> <47F4A625.9030408@...221...> <200804031146.30785.gambas@...1...> Message-ID: <47F4A954.90604@...221...> Benoit Minisini schrieb: > On jeudi 3 avril 2008, Rolf-Werner Eilert wrote: >> This is just the way I do it. But when I have more than 2 values to >> separate, I'll use another string[] to have them splitted (though I like >> to use a Tab (chr$(9)). This runs incredibly fast in Gambas. >> >> Let's assume you receive a string like "10|cat|male|black" I would do >> >> dim partstring as new string[] >> >> partstring = split(sResult, "|") >> >> 'and now you can examine the part-strings: >> >> if val(partstring[0]) = 10 then... >> >> if partstring[1] = "cat" then... >> >> Rolf >> >> Jaap Cramer schrieb: >>> When I need multiple returnvalues I use an array >>> Mostly of the string[] type. >>> When it contains different things, like an integer and a string, I put >>> them in 1 string, and split them >>> >>> sResult = DoSomething() ' call the function >>> result is "10|cat" ' i use a pipe to divide my string >>> >>> sInteger = val(left(sResult, instr(sResult, "|")-1)) >>> sString = mid(sResult, instr(sResult, "|")+1) >>> >>> I think this should work... >>> >>> ---------------------------------------- >>> >>>> From: rterry at ...1822... >>>> To: gambas-user at lists.sourceforge.net >>>> Date: Thu, 3 Apr 2008 13:37:48 +1100 >>>> Subject: [Gambas-user] Returning multiple values from a function >>>> >>>> Hope this is not too ambiguous or dumb: >>>> >>>> Is it possible to return more than 1 value from a function? >>>> >>>> >>>> This works: >>>> >>>> function DoSomething(name as string) as integer[] >>>> Dim numbers as integer[2] >>>> >>>> 'do whatever in here >>>> numbers[0]=10 >>>> numbers[1] = 20 >>>> return numbers >>>> >>>> >>>> however seems a bit clumbsy >>>> >>>> doing this: >>>> >>>> function Dosomething(name as string) as integer,string >>>> >>>> REturn 10,"cat" >>>> >>>> Dosn't >>>> >>>> Probably a stupid question. I guess if you want back non identical types >>>> one would just use a variant array? >>>> >>>> >>>> >>>> thanks >>>> >>>> Richard >>>> > > I think the better is using an array of Variant, or better an anoynmous array: > > FUNCTION DoSomething(Name AS String) AS Array > > DIM FirstResult AS ... > DIM SecondResult AS ... > > ' Do something > > RETURN [FirstResult, SecondResult] > > END > Very interesting idea, but if I have more than a few result lines, how could I spare me writing RETURN [FirstResult, SecondResult, ThirdResult, ForthResult ... ] Rolf From maximvonk at ...626... Thu Apr 3 11:59:15 2008 From: maximvonk at ...626... (Maximillian Von Kloisterheim) Date: Thu, 03 Apr 2008 10:59:15 +0100 Subject: [Gambas-user] Where is the component example? In-Reply-To: <200804021819.40028.gambas@...1...> References: <16447378.post@...1379...> <200804021819.40028.gambas@...1...> Message-ID: <47F4AA73.9070407@...626...> Benoit Minisini wrote: > There is no component example for component written in Gambas, but you can > look at the source code of the components written in Gambas in the comp/src > directory. They are all real-life examples! > > I will write a document about writing components in Gambas soon. Stay tune... > That's excellent Benoit, I look forward to the document, and Ill take a look at the source code Regards Max From gambas at ...1... Thu Apr 3 11:59:38 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 3 Apr 2008 11:59:38 +0200 Subject: [Gambas-user] Returning multiple values from a function In-Reply-To: <47F4A954.90604@...221...> References: <200804031337.48109.rterry@...1822...> <200804031146.30785.gambas@...1...> <47F4A954.90604@...221...> Message-ID: <200804031159.38715.gambas@...1...> On jeudi 3 avril 2008, Rolf-Werner Eilert wrote: > Benoit Minisini schrieb: > > On jeudi 3 avril 2008, Rolf-Werner Eilert wrote: > >> This is just the way I do it. But when I have more than 2 values to > >> separate, I'll use another string[] to have them splitted (though I like > >> to use a Tab (chr$(9)). This runs incredibly fast in Gambas. > >> > >> Let's assume you receive a string like "10|cat|male|black" I would do > >> > >> dim partstring as new string[] > >> > >> partstring = split(sResult, "|") > >> > >> 'and now you can examine the part-strings: > >> > >> if val(partstring[0]) = 10 then... > >> > >> if partstring[1] = "cat" then... > >> > >> Rolf > >> > >> Jaap Cramer schrieb: > >>> When I need multiple returnvalues I use an array > >>> Mostly of the string[] type. > >>> When it contains different things, like an integer and a string, I put > >>> them in 1 string, and split them > >>> > >>> sResult = DoSomething() ' call the function > >>> result is "10|cat" ' i use a pipe to divide my string > >>> > >>> sInteger = val(left(sResult, instr(sResult, "|")-1)) > >>> sString = mid(sResult, instr(sResult, "|")+1) > >>> > >>> I think this should work... > >>> > >>> ---------------------------------------- > >>> > >>>> From: rterry at ...1822... > >>>> To: gambas-user at lists.sourceforge.net > >>>> Date: Thu, 3 Apr 2008 13:37:48 +1100 > >>>> Subject: [Gambas-user] Returning multiple values from a function > >>>> > >>>> Hope this is not too ambiguous or dumb: > >>>> > >>>> Is it possible to return more than 1 value from a function? > >>>> > >>>> > >>>> This works: > >>>> > >>>> function DoSomething(name as string) as integer[] > >>>> Dim numbers as integer[2] > >>>> > >>>> 'do whatever in here > >>>> numbers[0]=10 > >>>> numbers[1] = 20 > >>>> return numbers > >>>> > >>>> > >>>> however seems a bit clumbsy > >>>> > >>>> doing this: > >>>> > >>>> function Dosomething(name as string) as integer,string > >>>> > >>>> REturn 10,"cat" > >>>> > >>>> Dosn't > >>>> > >>>> Probably a stupid question. I guess if you want back non identical > >>>> types one would just use a variant array? > >>>> > >>>> > >>>> > >>>> thanks > >>>> > >>>> Richard > > > > I think the better is using an array of Variant, or better an anoynmous > > array: > > > > FUNCTION DoSomething(Name AS String) AS Array > > > > DIM FirstResult AS ... > > DIM SecondResult AS ... > > > > ' Do something > > > > RETURN [FirstResult, SecondResult] > > > > END > > Very interesting idea, but if I have more than a few result lines, how > could I spare me writing > > RETURN [FirstResult, SecondResult, ThirdResult, ForthResult ... ] > > Rolf > [...] can take up to 63 elements. -- Benoit Minisini From jaap_cramer at ...67... Thu Apr 3 13:35:18 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Thu, 3 Apr 2008 13:35:18 +0200 Subject: [Gambas-user] IDE: tabs In-Reply-To: <200804031159.38715.gambas@...1...> References: <200804031337.48109.rterry@...1822...> <200804031146.30785.gambas@...1...> <47F4A954.90604@...221...> <200804031159.38715.gambas@...1...> Message-ID: Hello Since I upgraded to 2.4 I discovered that a project sometimes opens all classes/forms/modules. Is it possible to stop this behaviour? An other question I have, see it as a request :) Is it possible to close a tab by pressing Ctrl-F4? Jaap ---------------------------------------- > From: gambas at ...1... > To: info at ...394...; gambas-user at lists.sourceforge.net > Date: Thu, 3 Apr 2008 11:59:38 +0200 > Subject: Re: [Gambas-user] Returning multiple values from a function > > On jeudi 3 avril 2008, Rolf-Werner Eilert wrote: >> Benoit Minisini schrieb: >>> On jeudi 3 avril 2008, Rolf-Werner Eilert wrote: >>>> This is just the way I do it. But when I have more than 2 values to >>>> separate, I'll use another string[] to have them splitted (though I like >>>> to use a Tab (chr$(9)). This runs incredibly fast in Gambas. >>>> >>>> Let's assume you receive a string like "10|cat|male|black" I would do >>>> >>>> dim partstring as new string[] >>>> >>>> partstring = split(sResult, "|") >>>> >>>> 'and now you can examine the part-strings: >>>> >>>> if val(partstring[0]) = 10 then... >>>> >>>> if partstring[1] = "cat" then... >>>> >>>> Rolf >>>> >>>> Jaap Cramer schrieb: >>>>> When I need multiple returnvalues I use an array >>>>> Mostly of the string[] type. >>>>> When it contains different things, like an integer and a string, I put >>>>> them in 1 string, and split them >>>>> >>>>> sResult = DoSomething() ' call the function >>>>> result is "10|cat" ' i use a pipe to divide my string >>>>> >>>>> sInteger = val(left(sResult, instr(sResult, "|")-1)) >>>>> sString = mid(sResult, instr(sResult, "|")+1) >>>>> >>>>> I think this should work... >>>>> >>>>> ---------------------------------------- >>>>> >>>>>> From: rterry at ...1822... >>>>>> To: gambas-user at lists.sourceforge.net >>>>>> Date: Thu, 3 Apr 2008 13:37:48 +1100 >>>>>> Subject: [Gambas-user] Returning multiple values from a function >>>>>> >>>>>> Hope this is not too ambiguous or dumb: >>>>>> >>>>>> Is it possible to return more than 1 value from a function? >>>>>> >>>>>> >>>>>> This works: >>>>>> >>>>>> function DoSomething(name as string) as integer[] >>>>>> Dim numbers as integer[2] >>>>>> >>>>>> 'do whatever in here >>>>>> numbers[0]=10 >>>>>> numbers[1] = 20 >>>>>> return numbers >>>>>> >>>>>> >>>>>> however seems a bit clumbsy >>>>>> >>>>>> doing this: >>>>>> >>>>>> function Dosomething(name as string) as integer,string >>>>>> >>>>>> REturn 10,"cat" >>>>>> >>>>>> Dosn't >>>>>> >>>>>> Probably a stupid question. I guess if you want back non identical >>>>>> types one would just use a variant array? >>>>>> >>>>>> >>>>>> >>>>>> thanks >>>>>> >>>>>> Richard >>> >>> I think the better is using an array of Variant, or better an anoynmous >>> array: >>> >>> FUNCTION DoSomething(Name AS String) AS Array >>> >>> DIM FirstResult AS ... >>> DIM SecondResult AS ... >>> >>> ' Do something >>> >>> RETURN [FirstResult, SecondResult] >>> >>> END >> >> Very interesting idea, but if I have more than a few result lines, how >> could I spare me writing >> >> RETURN [FirstResult, SecondResult, ThirdResult, ForthResult ... ] >> >> Rolf >> > > [...] can take up to 63 elements. > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ De leukste online filmpjes vind je op MSN Video! http://video.msn.com/video.aspx?mkt=nl-nl From gambas at ...1... Thu Apr 3 13:44:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 3 Apr 2008 13:44:34 +0200 Subject: [Gambas-user] IDE: tabs In-Reply-To: References: <200804031337.48109.rterry@...1822...> <200804031159.38715.gambas@...1...> Message-ID: <200804031344.34784.gambas@...1...> On jeudi 3 avril 2008, Jaap Cramer wrote: > Hello > > Since I upgraded to 2.4 I discovered that a project sometimes opens all > classes/forms/modules. Is it possible to stop this behaviour? > > An other question I have, see it as a request :) > Is it possible to close a tab by pressing Ctrl-F4? > > Jaap > This will be fixed in 2.5. And please *do not* answer a previous thread if your post is not related to him!!! -- Benoit Minisini From rospolosco at ...152... Thu Apr 3 19:25:09 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 3 Apr 2008 19:25:09 +0200 Subject: [Gambas-user] Caps Lock - Num Lock state howto Message-ID: <200804031925.09264.rospolosco@...152...> Hi. Sometime ago, we talked about Caps Lock and Num Lock keys state. I think it was a request by MaxVK. I suggested a dirty solution using the Desktop.SendKey function. On gambas-it.org, the italian Gambas community site, I found a more clean way to get the state of those keys. Thanks to user "fsurfing" I found xset. Here is an example (ehi Max, this is more clean :-) ) PUBLIC SUB Main() DIM sShellOutput AS String DIM iKeyLocks AS Integer SHELL "xset q | grep 'LED mask:'" TO sShellOutput sShellOutput = Replace$(sShellOutput, " ", "") iKeyLocks = Val(Split(sShellOutput, ":")[3]) SELECT iKeyLocks CASE 1 PRINT "Caps Lock is ON" CASE 2 PRINT "Num Lock is ON" CASE 3 PRINT "Caps Lock is ON" PRINT "Num Lock is ON" END SELECT END Regards, Stefano From maximvonk at ...626... Thu Apr 3 23:10:23 2008 From: maximvonk at ...626... (Maximillian Von Kloisterheim) Date: Thu, 03 Apr 2008 22:10:23 +0100 Subject: [Gambas-user] Caps Lock - Num Lock state howto In-Reply-To: <200804031925.09264.rospolosco@...152...> References: <200804031925.09264.rospolosco@...152...> Message-ID: <47F547BF.7070209@...626...> Stefano Palmeri wrote: > Hi. > > Sometime ago, we talked about Caps Lock and Num Lock keys > state. I think it was a request by MaxVK. > I suggested a dirty solution using the Desktop.SendKey function. > > On gambas-it.org, the italian Gambas community site, I found a more clean > way to get the state of those keys. Thanks to user "fsurfing" I found > xset. > > Here is an example (ehi Max, this is more clean :-) ) > > PUBLIC SUB Main() > > DIM sShellOutput AS String > DIM iKeyLocks AS Integer > > SHELL "xset q | grep 'LED mask:'" TO sShellOutput > > sShellOutput = Replace$(sShellOutput, " ", "") > > iKeyLocks = Val(Split(sShellOutput, ":")[3]) > > SELECT iKeyLocks > > CASE 1 > PRINT "Caps Lock is ON" > CASE 2 > PRINT "Num Lock is ON" > CASE 3 > PRINT "Caps Lock is ON" > PRINT "Num Lock is ON" > > END SELECT > > END > > Regards, > > Stefano > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Thanks Stefano, Ill check it out this weekend. regards Max From rterry at ...1822... Thu Apr 3 23:32:50 2008 From: rterry at ...1822... (richard terry) Date: Fri, 4 Apr 2008 08:32:50 +1100 Subject: [Gambas-user] Accessing the archives on local machine Message-ID: <200804040832.51063.rterry@...1822...> I wondered if it was possible. Doing it on the web is so.......... slow. As I mentioned I'm currently snipping out questions and code into a master file which I hope to transform into some sort of gambas help file. So much of the list is chaff, but in the middle there are gems. Is there anyway I could download a copy of a period of the list archives to peruse on my local machine? Regards Richard From gau_veldt at ...67... Fri Apr 4 01:53:34 2008 From: gau_veldt at ...67... (B. Jack) Date: Thu, 3 Apr 2008 16:53:34 -0700 Subject: [Gambas-user] Resizing image in scrollview Message-ID: I am having trouble with resizing images to resized parents because the image size units are not the same as the window/form size units. I have a form with various V-Slide and H-Slide partitioned child objects. The image preview pane is a child of a scrollview (so large images may be panned). This scrollview is ultimately a child of one of the VSliders/HSliders on the form. What I need to do is have a Picture within the scrollview that centers any image smaller than the client area after any Arrange activity. For any image larger than the client area the Picture object is maximized to the image size so the ScrollView will make the image pannable. The problem with just setting the Extend attribute is then that a larger image will be cut off (and won't be scrollable). Trying to set the H and W (or Width and Height) of the child Picture in an Arrange handler also doesn't seem to work right since the unit size of the image in the Picture and the Parent container do not correlate. Is the only option to set the stretch attribute and have it chunky-scaled? _________________________________________________________________ If you like crossword puzzles, then you'll love Flexicon, a game which combines four overlapping crossword puzzles into one! http://g.msn.ca/ca55/208 From rohnny at ...1248... Fri Apr 4 06:05:44 2008 From: rohnny at ...1248... (R. Stormo) Date: Thu, 3 Apr 2008 21:05:44 -0700 (PDT) Subject: [Gambas-user] Trunk and Ubuntu 8.04 In-Reply-To: <7259b5ae0804030144i119cc42s5f9efd7b6e9f2272@...627...> References: <16447649.post@...1379...> <7259b5ae0804030144i119cc42s5f9efd7b6e9f2272@...627...> Message-ID: <16482400.post@...1379...> Daniel Campos-3 wrote: > > Hi: > >> >> --snip >> gbr3: error while loading shared libraries: libgettextlib-0.16.1.so: >> cannot >> open shared object file: No such file or directory >> --snap >> > > May be there's something wrong in your system, or in the current > Ubuntu beta + last beta repositories updates. Just a week ago, I > compiled Gambas 2 and created Debian packages for that beta > distribution and everything worked without problems. (unless something > changed in Gambas3 so it asks for a concrete Gettext version, but I > doubt it). Did you make ./reconf-all prior to ./configure? > > Daniel > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Yes I have reconfed and configured. Gambas2 from trunk is working as it should Regards Rohnny My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/Trunk-and-Ubuntu-8.04-tp16447649p16482400.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Fri Apr 4 10:31:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 4 Apr 2008 10:31:28 +0200 Subject: [Gambas-user] Release of Gambas 2.5 Message-ID: <200804041031.28135.gambas@...1...> Hi, I have just released Gambas 2.5. Some new features were added to the development environment: * Code editor can be split, both horizontally or vertically. * The property sheet can display some help on the currently edited property. * The balloon file information has been replaced by a dialog box. * The log editor of the commit dialog box got a little toolbar and displays the cursor position. The Spanish translation were updated and, of course, many bugs were fixed! The only big missing thing in Gambas 2 is the support of subversion conflict, that you have to solve by hand at the moment. I don't know if I will be able to find a easy solution for that... Otherwise, note that my preferred mathematical formula came back on the web site. People who do not understand it will complain again. :-) Here is the full ChangeLog: ------------------------------------------------------------------------------- [CONFIGURATION] * BUG: Support for X11 libraries not installed in the default library paths. * BUG: The config.h.in files were removed from the subversion repository. * BUG: Adds /usr/local/lib/include as include search path for libffi. [DEVELOPMENT ENVIRONMENT] * BUG: The busy cursor is now correctly reset in all cases when clearing the recent file history. * BUG: Importing a form now correctly associates the imported pictures. * BUG: The initial stack backtrace list width is correct now. * BUG: Fixed comment/uncomment so that they will work correctly if there is not a space after the comment mark * BUG: Fixed the name of tooltips and menu entries. Only the first letter is in upper case. * BUG: Fixes the generation of the list of last opened files. * BUG: Explicitely closes embedded forms in FMain, so that their settings are correctly written. See the source code comments for more details. * BUG: Use a relative font size in the workspace, toolbox and property sheet. * BUG: UTF-8 fixes in the code editor. * BUG: Help pages on special method are opened correctly now. * BUG: Breakpoint list is not filled with impossible breakpoints anymore. * BUG: The procedure combo-box now always displays the correct current procedure name. * BUG: In the file creation dialog, always select a filter if we click on the "existing" tab. * BUG: Compiler output is now correctly handled when some warning messages are printed. * BUG: Auto-completion and function signature are displayed at the right position now, when the editor has been split. * BUG: Saving the entire project does not reset the highlighting of the modified lines anymore. * NEW: The editor in the commit window has been enhanced. It has a little toolbar and displays the cursor position now. * NEW: Added split editor views. * NEW: Added buttons for Definition and Last Position to the editor toolbar. * NEW: Added additional hotkeys for Cut (Shift+Delete), Copy (CTRL+Insert) and Paste (Shift+Insert). * NEW: Added a textlabel to the bottom of the property window that displays help text for the selected property. * NEW: Added an option to preferences to disable integrated help. * NEW: Adds KIconEdit as image editor. * NEW: Copying a file automatically enters in rename mode. * NEW: Balloon file information were replaced by a standard dialog. * NEW: New icon for the TextEdit control. * NEW: CSS and HTML highlighting now use procedure separation. [DATABASE MANAGER] * BUG: Correctly manages editable GridViews when a row or a column is resized. [EXAMPLES] * NEW: Spanish translation added/updated for all translatable projects. [INTERPRETER] * BUG: NEW Observer(NULL) now raises an error, and does not crash anymore. * BUG: The binary and hexadecimal numbers with a '&' suffix are now correctly extended to a Long unsigned constant if needed. [INFORMER] * BUG: Now gbi2 use native dlopen() functions instead of libltdl wrapper on OpenBSD. [GB.DB.FIREBIRD] * BUG: Fixed building with gcc 4.3. [GB.EVAL] * BUG: The long binary and hexadecimal numbers are correctly interpreted now. [GB.FORM] * BUG: The SidePanel.Border works correctly now. * NEW: Spanish translation updated. * NEW: ChangeLog and README files are displayed with a text file icon in the FileView control. * NEW: The Space key now raises the Activate event in the DateChooser control. * NEW: The ColorChooser text box that display the hexadecimal value of the color is now editable. [GB.FORM.DIALOG] * NEW: Spanish translation updated. [GB.FORM.MDI] * NEW: Spanish translation updated. [GB.GB.FORM] * NEW: Spanish translation updated. [GB.GTK] * BUG: Correctly handles mouse button events in the GridView control. * BUG: Setting GridView.Rows.Count to zero does not make rows too small anymore. * BUG: Fix the Key.Enter keyboard constant value. * BUG: The AutoResize property of containers now takes the Padding property into account in all cases. * BUG: Watcher are correctly released when the watched object is destroyed. * BUG: Drawing on a null picture now raises an error. * BUG: ColumnView has no ColumnClick event anymore, as in gb.qt. * BUG: Splitter correctly handle the visibility of its children now. [GB.QT] * BUG: As promised, the TreeView/ListView/ColumnView MoveAbove() and MoveBelow() methods were rewritten to behave exactly as in gb.gtk. This way, enumerating all items of a TreeView is just a loop with a call to MoveFirst() and many calls to MoveBelow(). * BUG: The AutoResize property of containers now takes the Padding property into account in all cases. * BUG: A failing Image.Load() does not create a useless internal image anymore. * BUG: Fix automake warning. Should fix building when GNU/make isn't available. * BUG: Include path check for X11 include files. * BUG: Add x11 include path through GB_CHECK_XWINDOW macro. [GB.QT.EXT] * BUG: Backport a fix from Gambas3 where sometimes the Editor scroll bars are not correctly updated. * BUG: Void lines are correctly highlighted in all cases now. [GB.SETTINGS] * BUG: Settings.Read() and Settings.Write() now use the Window class of the specified control, not the TopLevel window, which may not necessarily exist anymore. ------------------------------------------------------------------------------- Enjoy it! -- Benoit Minisini From pinozollo at ...626... Fri Apr 4 18:28:21 2008 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 4 Apr 2008 12:28:21 -0400 Subject: [Gambas-user] gambas2-2.4.1 compilation Message-ID: <200804041228.24875.pinozollo@...626...> Hi, I have installed and running Gambas2 on a Debian 4.0 r3. I wanted upgrade to 2.4.1 just to be at the last fashon. I did execute ./configure -C At the end I get the following messages: ************************************************************ THESE COMPONENTS ARE DISABLED: - gb.corba - gb.db.firebird - gb.db.mysql - gb.db.postgresql - gb.db.sqlite2 - gb.db.sqlite3 - gb.desktop - gb.net.curl - gb.opengl - gb.pdf - gb.qt - gb.qt.kde - gb.qte - gb.sdl - gb.sdl.sound ************************************************************ My concern is that I need posgresql for my application... From richard.j.walker at ...247... Fri Apr 4 19:18:37 2008 From: richard.j.walker at ...247... (Richard Walker) Date: Fri, 04 Apr 2008 18:18:37 +0100 Subject: [Gambas-user] gambas2-2.4.1 compilation In-Reply-To: <200804041228.24875.pinozollo@...626...> References: <200804041228.24875.pinozollo@...626...> Message-ID: Hi Pino, You just have to install all the "devel" packages for the libraries you need. Take a look at the README, or pop over to http://gambasdoc.org/help/readme?view for the latest info on what goes with which component. Richard On Fri, 04 Apr 2008 17:28:21 +0100, Pino Zollo wrote: > Hi, > I have installed and running Gambas2 on a Debian 4.0 r3. > > I wanted upgrade to 2.4.1 just to be at the last fashon. > > I did execute > ./configure -C > > At the end I get the following messages: > > > ************************************************************ > > THESE COMPONENTS ARE DISABLED: > > - gb.corba > - gb.db.firebird > - gb.db.mysql > - gb.db.postgresql > - gb.db.sqlite2 > - gb.db.sqlite3 > - gb.desktop > - gb.net.curl > - gb.opengl > - gb.pdf > - gb.qt > - gb.qt.kde > - gb.qte > - gb.sdl > - gb.sdl.sound > > ************************************************************ > > My concern is that I need posgresql for my application... >> From the message I understand that this will not be compiled, so it >> will not > be available if I compile and install the 2.4.1 . > > what did I wrong ? > > Thanks > Pino > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From jbskaggs at ...1871... Fri Apr 4 21:12:49 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Fri, 4 Apr 2008 12:12:49 -0700 (PDT) Subject: [Gambas-user] Can yu show me how to do this? Message-ID: <16495933.post@...1379...> On a list view: When I call a list view from another form (ie to get from or add to) my list goes to the first item and runs to the last end and my searches do exactly what they are suppossed to. How though do I get back to the original item the listview was own when it was called? In other words: A list has fours items. I click on item three and pull up an associated file. Then when that file closes a command to click the listview occurs and it goes thru and adds up all the data on the list. But then I end up at the bottom of the list how do I get back to the Item I started on? JB -- View this message in context: http://www.nabble.com/Can-yu-show-me-how-to-do-this--tp16495933p16495933.html Sent from the gambas-user mailing list archive at Nabble.com. From rospolosco at ...152... Fri Apr 4 22:03:14 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 4 Apr 2008 22:03:14 +0200 Subject: [Gambas-user] Can yu show me how to do this? In-Reply-To: <16495933.post@...1379...> References: <16495933.post@...1379...> Message-ID: <200804042203.14290.rospolosco@...152...> Alle 21:12, venerd? 4 aprile 2008, jbskaggs ha scritto: > On a list view: > > When I call a list view from another form (ie to get from or add to) my > list goes to the first item and runs to the last end and my searches do > exactly what they are suppossed to. > > How though do I get back to the original item the listview was own when it > was called? > > In other words: > > A list has fours items. I click on item three and pull up an associated > file. Then when that file closes a command to click the listview occurs > and it goes thru and adds up all the data on the list. > > But then I end up at the bottom of the list how do I get back to the Item I > started on? > > JB First declare a string to store the item key you click on: PRIVATE $sKeyToGoBack AS String then when you click on item three do: $sKeyToGoBack = ListView1.Current.Key ...here you do what you want to do.... then you want to go back to item three. so do: ListView1[$sKeyToGoBack].Selected = TRUE Ciao, Stefano From rterry at ...1822... Sat Apr 5 02:53:47 2008 From: rterry at ...1822... (richard terry) Date: Sat, 5 Apr 2008 11:53:47 +1100 Subject: [Gambas-user] Finding a bit of text in the console output Message-ID: <200804051153.47470.rterry@...1822...> I suspect this is just because I'm not using the IDE and debugging properly, but I'll ask anyway. I often put print statement in my code, and where in the middle of a loop can get quite a large output in the consol, so it can be hard to find what I've been looking for (especially if say printing out a large sQL). Wondered if the consol could have a search option. Probably this means I need a tutorial in how to use debugging in Gambas, which I've not yet got into. Anyone give a few pointers? Regards and thanks in anticipation. Richard From rterry at ...1822... Sat Apr 5 04:12:35 2008 From: rterry at ...1822... (richard terry) Date: Sat, 5 Apr 2008 13:12:35 +1100 Subject: [Gambas-user] IDE not updating class members when changed (2.99 Build 1291) Message-ID: <200804051312.35224.rterry@...1822...> Benoit, Please take the time to digest this as I think it really is a bug (or rather something not being updated under the hood when you change members of classes). Stopping gambas and re-loading rectifies things however. I have number of classes describing drugs cPack: (contains the pack details) active as string active_units as string etc. cProduct: (contains the product details) brand as string formcode as integer prodcode as integger formulation as string I had a class cDrug, which I've simplifed but say: cDrug is the class and has this in it ================= Public pack As cPack Public productdetails As cProduct ================= Take note my description below of what happens when I later change one of these names. Then I have another subclass which inherits cDRug, which again I've simplifed and removed many of its members, but say: cPrescriptionItem: ===================================== Inherits cDrug Public start_date As Date ' date the drug started Public directions As String ' directions as text eg 1 mane etc ===================================== ie the tree on the side bar shows (nothis: cDrug cPrescription cPack cProductDetails Now when I address this in code Dim scriptitem = new cPrescriptionitem When I type the auto-completion gives me this: scriptitem.productdetails.brand or scriptitem.pack.active ie so far, all ok. Now lets say I think - "stupid me, I should have just called the productdetails member of Cdrug "product instead of "product details" So I go back and change it, so now cDrug reads: ================= Public pack As cPack Public product As cProduct ================= However, when I then go back to the form using this information, something under the hood has not updated this change, so the auto-complete still comes up with: scriptitem.productdetails.brand instead of scriptitem.product.brand If I manually change it then the program runs ok. To get the auto-completion to work I have to close down gambas and start it again, so presumably something is getting reset there, which is not getting reset when one changes stuff within a class. Regards Richard From rterry at ...1822... Sat Apr 5 07:33:52 2008 From: rterry at ...1822... (richard terry) Date: Sat, 5 Apr 2008 16:33:52 +1100 Subject: [Gambas-user] Iterating through a class In-Reply-To: <200803301532.48623.gambas@...1...> References: <200803301326.39899.rterry@...1822...> <200803301532.48623.gambas@...1...> Message-ID: <200804051633.52962.rterry@...1822...> On Mon, 31 Mar 2008 12:32:48 am Benoit Minisini wrote: > On dimanche 30 mars 2008, richard terry wrote: > > Is it possible to interact through a class in code > > eg cMyclass > > public sWhatever as string > > public sNextThing as string > > public bSomething as boolean. > > > > ie can you somehow printout the values contained in a class without > > specifically addressing them by name. > > > > Maybe a stupid question. > > > > Regards > > > > Richard T > > You can browse the public symbols of a class. Not the private ones, as they > do not exist anymore once the program is compiled, except for the debugger. > > To do that: > > DIM hObject AS Object = ... ' <- Your cMyClass instance > DIM hClass AS Class = Class["cMyClass"] > > FOR EACH SymbolName IN hClass.Symbols > WITH hClass[SymbolName] > IF .Kind = Class.Variable THEN > PRINT .Name;; Object.GetProperty(hObject, .Name) > ENDIF > END WITH > NEXT > > I think that works. Otherwise you will tell me... Finally got around to trying this with no luck. AS a simple example I put a button on the form and intended to load the names into a list (project supplied) There is no reference what SymbolName should be set to amongst other things. I tried: Public myclass As Class1 Public Sub form_Open() myclass = New Class1 End Public Sub Button1_Click() Dim SymbolName As String '???? Dim hObject As Object = myclass Dim hClass As Class = Class["Class1"] (dies here complaining it is not an object) For Each SymbolName In hClass.Symbols With hClass[SymbolName] If .Kind = Class.Variable Then Print .Name;; Object.GetProperty(hObject, .Name) Endif End With Next End Any help appreciated. Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: classit-0.0.1.tar.gz Type: application/x-tgz Size: 8223 bytes Desc: not available URL: From rterry at ...1822... Sat Apr 5 08:55:59 2008 From: rterry at ...1822... (richard terry) Date: Sat, 5 Apr 2008 17:55:59 +1100 Subject: [Gambas-user] Weird but reproducable Signal 11 Gridview bug (2.99 1291 build) Message-ID: <200804051755.59403.rterry@...1822...> I reckon someone should employ me as as a beta tester, cause I can kill just about anything with my stupidity. This bug is really way out there and will only occur under a strange circumstance. (project included). If you've a grid on the form, AND the number of items in the grid exceeds the viewable area AND the scoll bar property is set to either Both or Vertical (its really only the vertical component that kills the grid) AND you are stupid enough (read me only ) to put any resizing code in the following event: Public Sub GridView1_ColumnResize(Column As Integer) gridview1.columns.Width = gridview1.columns.Width + 10 End Then gambas will reproducably die with signal 11. You are probably wondering why I put it there in the firstplace, well, I'd meant to put it in a mouse event to see what would happen if I clicked on the grid because when I first started playing with it today I wondered why you couldn't grab the column and re-size it (until I realised that you have to have the headers set - which I didn't want). Anway,main point is it should be fixable. Regards Richard From charles at ...1784... Sat Apr 5 09:12:51 2008 From: charles at ...1784... (charlesg) Date: Sat, 5 Apr 2008 00:12:51 -0700 (PDT) Subject: [Gambas-user] Printing from GTK Message-ID: <16510279.post@...1379...> As a certified LinKlux specialising in serving 'programme a la paysanne', I hesitate to offer solutions because I am sure somebody will reply: "you idiot, why didn't you just...". Anyway, I have been trying to work around the problem of GTK not printing (yet!) :) I reckon I can get enough report control for my database based projects through HTML (funny that: 'control' and 'html' are not normally used in the same sentence.). I have generated a basic html file by hand in the sample although this could be dynamically generated from live data. I have used htmldoc (www.htmldoc.org, I did sudo apt-get install from Ubuntu 7.10)) to convert this to a pdf and then printed the pdf file with lpr. I guess you could view the reports from a browser as well. Somebody brighter than me could probably pipe one shell into the other? ' Gambas class file PUBLIC hFile AS File PUBLIC SUB Form_Open() hfile = OPEN "/home/c/Documents/tfc.htm" FOR OUTPUT CREATE PRINT #hFile, "" PRINT #hFile, "" PRINT #hFile, "" PRINT #hFile, "" PRINT #hFile, "" PRINT #hFile, "" PRINT #hFile, " " PRINT #hFile, "" PRINT #hFile, "" PRINT #hFile, "" PRINT #hFile, "" PRINT #hFile, "" PRINT #hFile, "" PRINT #hFile, "
1 Fred Folly 02 / 03 / 2007
2 Jane Jones 05 / 06 / 2007
" PRINT #hFile, "" PRINT #hFile, "" hFile.Close SHELL "htmldoc --bodyfont Sans --outfile /home/c/Documents/tfc.pdf --webpage /home/c/Documents/tfc.htm" WAIT SHELL "lpr /home/c/Documents/tfc.pdf" WAIT END -- View this message in context: http://www.nabble.com/Printing-from-GTK-tp16510279p16510279.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Sat Apr 5 08:57:45 2008 From: rterry at ...1822... (richard terry) Date: Sat, 5 Apr 2008 17:57:45 +1100 Subject: [Gambas-user] Columnview ?possible to set width of a column? Message-ID: <200804051757.45607.rterry@...1822...> There seems no way to overide the automatic width of the column which is set to the widest item. Whilst this is often great, in confined spaces its really annoying as in my application the user dosn't need to be able to read the entire column width,but just get the gist of what is in there. Wonder if it is possible to add a property to set these column widths, or somehow get at them. Regards Richard From rterry at ...1822... Sat Apr 5 08:27:04 2008 From: rterry at ...1822... (richard terry) Date: Sat, 5 Apr 2008 17:27:04 +1100 Subject: [Gambas-user] Creating new project in 2.99(1291) says Its a Gambas2 Prog Message-ID: <200804051727.04224.rterry@...1822...> As heading suggests, says its a gambas 2 project and do you want to open it anyway? Regadrs Richard From dcamposf at ...626... Sat Apr 5 12:44:11 2008 From: dcamposf at ...626... (Daniel Campos) Date: Sat, 5 Apr 2008 12:44:11 +0200 Subject: [Gambas-user] Printing from GTK In-Reply-To: <16510279.post@...1379...> References: <16510279.post@...1379...> Message-ID: <7259b5ae0804050344o5886bd6aw3eebfdf622631f7e@...627...> Hi: Thanks for the contribution. Anyway this mailing list uses to be polite, I rarely read "you idiot" and things like that, usual on other mailing lists :-) > > SHELL "htmldoc --bodyfont Sans --outfile /home/c/Documents/tfc.pdf > --webpage /home/c/Documents/tfc.htm" WAIT > SHELL "lpr /home/c/Documents/tfc.pdf" WAIT > > END I never used "htmldoc", but if it is able to send data to stdout instead of a file, you can write this for the first step: DIM Buffer AS STRING ... Buffer=SHELL "htmldoc --whatever-to-stdout" That way SHELL will wait until htmldoc finishes, and it will put the contents of its stdout to your Buffer Then for the second command you can set lpr to work receiving from stdin, and write the contents of your buffer, and then close that stream DIM hProc AS Process ... hProc=SHELL "lpr --whatever-from-stdin" FOR WRITE WRITE #hProc, Buffer,Len(Buffer) CLOSE #hProc I think that should work and avoid the need for a temporal file, provided that both comand line tools can work with stdin/stdout. Daniel From pinozollo at ...626... Sat Apr 5 14:27:50 2008 From: pinozollo at ...626... (Pino Zollo) Date: Sat, 5 Apr 2008 08:27:50 -0400 Subject: [Gambas-user] gambas2-2.4.1 compilation In-Reply-To: References: <200804041228.24875.pinozollo@...626...> Message-ID: <200804050827.54313.pinozollo@...626...> Alle 13:18, venerd? 4 aprile 2008, hai scritto: > Hi Pino, > You just have to install all the "devel" packages for the libraries you > need. > Take a look at the README, or pop over to > http://gambasdoc.org/help/readme?view > for the latest info on what goes with which component. > Thanks Richard, when I did install Gambas2 2.0 from .deb it did install also from the distribution disks about 350Kb of -dev libraries. I thought that it were enough.. I have installed other -dev (for PostgreSQL and MySQL) and run again ./configure -C . Again I get the message that it will not compile Postgresql and Mysql modules...maybe versions are not the good ones ? I have Debian 4.0 at last r3 revision. Ciao Pino From ronstk at ...239... Sat Apr 5 15:25:04 2008 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 5 Apr 2008 15:25:04 +0200 Subject: [Gambas-user] IDE not updating class members when changed (2.99 Build 1291) In-Reply-To: <200804051312.35224.rterry@...1822...> References: <200804051312.35224.rterry@...1822...> Message-ID: <200804051525.04861.ronstk@...239...> On Saturday 05 April 2008 04:12, richard terry wrote: > Then I have another subclass which inherits cDRug, ?which again I've simplifed > and removed many of its members, ?but say: > > cPrescriptionItem: > ===================================== > Inherits cDrug ' the drug and > Public start_date As Date ? ? ? ? ? ?' date the drug started > Public directions As String ? ? ? ? ?' directions as text eg 1 mane ? > etc > ===================================== Extend the cDrug with start_date and directions. > ie the tree on the side bar shows (nothis: > > cDrug > ????????cPrescription > cPack > cProductDetails > Here I belive you made a mistake. cPrescriptionItem is here declared as cDrug with additional properties as date and etc. In fact a cPrescriptionItem is a standalone object containing a cDrug under patients conditions and should definied as IMHO as: cPrescriptionItem: ===================================== Publuc medicine as cDrug ' wich drug to use Public start_date As Date ' date the drug started Public directions As String ' directions as text eg 1 mane etc ===================================== Use the 'medicine' from '1-april-2008' for '2 weeks, 1 tablet each day'. This is a binding of a Drug with usage dates and etc instead of expanding the drug class related information with end-users related information. The above in case the cPrescriptionItem is the item(drug) information as recipe given by the doctor is the one for the end user :=) If the cPrescriptionItem contains the general rules/conditions on how to use the drug and other drug related information it would be best to include it directly in cDrug because it belongs to the cDrug as fixed information about it (usage/time etc). Just my 2 euro-cents. Ron PS: With interest and enjoy following your development path and questions. From ronstk at ...239... Sat Apr 5 15:34:20 2008 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 5 Apr 2008 15:34:20 +0200 Subject: [Gambas-user] Creating new project in 2.99(1291) says Its a Gambas2 Prog In-Reply-To: <200804051727.04224.rterry@...1822...> References: <200804051727.04224.rterry@...1822...> Message-ID: <200804051534.20937.ronstk@...239...> On Saturday 05 April 2008 08:27, richard terry wrote: > As heading suggests, says its a gambas 2 project and do you want to open it > anyway? > > Regadrs > > Richard > LOL Yes it should say gambas3 project but take in acount the time the real gambas3 is alive. Then the program wil not work because it is written based on gambas2 with some corrections and expands of gambas3. It is in fact not full compatible with gambas3. I will scream 1 or 2 years later when I download for my gambas3 a gambas3 application and it's not working because it is a gambas2(cripple gambas3). Ron From ronstk at ...239... Sat Apr 5 15:41:56 2008 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 5 Apr 2008 15:41:56 +0200 Subject: [Gambas-user] Columnview ?possible to set width of a column? In-Reply-To: <200804051757.45607.rterry@...1822...> References: <200804051757.45607.rterry@...1822...> Message-ID: <200804051541.56525.ronstk@...239...> On Saturday 05 April 2008 08:57, richard terry wrote: > There seems no way to overide the automatic width of the column which is set > to the widest item. Whilst this is often great, in confined spaces its really > annoying as in my application the user dosn't need to be able to read the > entire column width,but just get the gist of what is in there. > > Wonder if it is possible to add a property to set these column widths, or > somehow get at them. > > Regards > > Richard > Right wish but I'm afraid it is a limitation in the control behind from QT. As workaround you can set headers on and place a Label (with usefull caption) above so the user can't see the header. ( see your previous post: 'Weird but reproducable Signal 11 Gridview bug (2.99 1291 build)' ) Ron From gambas at ...1... Sat Apr 5 15:44:26 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 5 Apr 2008 15:44:26 +0200 Subject: [Gambas-user] IDE not updating class members when changed (2.99 Build 1291) In-Reply-To: <200804051312.35224.rterry@...1822...> References: <200804051312.35224.rterry@...1822...> Message-ID: <200804051544.26633.gambas@...1...> On samedi 5 avril 2008, richard terry wrote: > Benoit, > > Please take the time to digest this as I think it really is a bug (or > rather something not being updated under the hood when you change members > of classes). Stopping gambas and re-loading rectifies things however. > > > I have number of classes describing drugs > > cPack: (contains the pack details) > active as string > active_units as string > etc. > > cProduct: (contains the product details) > brand as string > formcode as integer > prodcode as integger > formulation as string > > I had a class cDrug, which I've simplifed but say: > > cDrug is the class and has this in it > ================= > Public pack As cPack > Public productdetails As cProduct > ================= > > Take note my description below of what happens when I later change one of > these names. > > Then I have another subclass which inherits cDRug, which again I've > simplifed and removed many of its members, but say: > > cPrescriptionItem: > ===================================== > Inherits cDrug > Public start_date As Date ' date the drug started > Public directions As String ' directions as text eg 1 mane > etc > ===================================== > ie the tree on the side bar shows (nothis: > > cDrug > cPrescription > cPack > cProductDetails > > Now when I address this in code > > Dim scriptitem = new cPrescriptionitem > > When I type the auto-completion gives me this: > > scriptitem.productdetails.brand > or > scriptitem.pack.active > > ie so far, all ok. > > Now lets say I think - "stupid me, I should have just called the > productdetails member of Cdrug "product instead of "product details" > So I go back and change it, so now cDrug reads: > > ================= > Public pack As cPack > Public product As cProduct > ================= > > However, when I then go back to the form using this information, something > under the hood has not updated this change, so the auto-complete still > comes up with: > > scriptitem.productdetails.brand instead of > scriptitem.product.brand > > If I manually change it then the program runs ok. > > To get the auto-completion to work I have to close down gambas and start it > again, so presumably something is getting reset there, which is not getting > reset when one changes stuff within a class. > > Regards > > Richard > Apparently the bug is that if you modify a class, it resets its completion information, but not the completion information of the inherited class. I will look at it... Bad luck that you found that just after the release of 2.5! :-) Regards, -- Benoit Minisini From robert.c.rowe at ...626... Sat Apr 5 16:51:00 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Sat, 05 Apr 2008 10:51:00 -0400 Subject: [Gambas-user] IDE not updating class members when changed (2.99 Build 1291) In-Reply-To: <200804051312.35224.rterry@...1822...> References: <200804051312.35224.rterry@...1822...> Message-ID: <47F791D4.6020800@...626...> I can verify this behavior. It seems like the symbols get added to the completion list but not removed. The list seems to be rebuilt on project load so restarting fixes the problem. Robert Rowe richard terry wrote: > Benoit, > > Please take the time to digest this as I think it really is a bug (or rather > something not being updated under the hood when you change members of > classes). Stopping gambas and re-loading rectifies things however. > > > I have number of classes describing drugs > > cPack: (contains the pack details) > active as string > active_units as string > etc. > > cProduct: (contains the product details) > brand as string > formcode as integer > prodcode as integger > formulation as string > > I had a class cDrug, which I've simplifed but say: > > cDrug is the class and has this in it > ================= > Public pack As cPack > Public productdetails As cProduct > ================= > > Take note my description below of what happens when I later change one of > these names. > > Then I have another subclass which inherits cDRug, which again I've simplifed > and removed many of its members, but say: > > cPrescriptionItem: > ===================================== > Inherits cDrug > Public start_date As Date ' date the drug started > Public directions As String ' directions as text eg 1 mane > etc > ===================================== > ie the tree on the side bar shows (nothis: > > cDrug > cPrescription > cPack > cProductDetails > > Now when I address this in code > > Dim scriptitem = new cPrescriptionitem > > When I type the auto-completion gives me this: > > scriptitem.productdetails.brand > or > scriptitem.pack.active > > ie so far, all ok. > > Now lets say I think - "stupid me, I should have just called the > productdetails member of Cdrug "product instead of "product details" > So I go back and change it, so now cDrug reads: > > ================= > Public pack As cPack > Public product As cProduct > ================= > > However, when I then go back to the form using this information, something > under the hood has not updated this change, so the auto-complete still comes > up with: > > scriptitem.productdetails.brand instead of > scriptitem.product.brand > > If I manually change it then the program runs ok. > > To get the auto-completion to work I have to close down gambas and start it > again, so presumably something is getting reset there, which is not getting > reset when one changes stuff within a class. > > Regards > > Richard > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From leonardo at ...1237... Sat Apr 5 17:08:36 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 05 Apr 2008 17:08:36 +0200 Subject: [Gambas-user] gambas2-2.4.1 compilation In-Reply-To: <200804050827.54313.pinozollo@...626...> References: <200804041228.24875.pinozollo@...626...> <200804050827.54313.pinozollo@...626...> Message-ID: <47F795F4.7030007@...1237...> Pino Zollo ha scritto: > Alle 13:18, venerd? 4 aprile 2008, hai scritto: >> Hi Pino, >> You just have to install all the "devel" packages for the libraries you >> need. >> Take a look at the README, or pop over to >> http://gambasdoc.org/help/readme?view >> for the latest info on what goes with which component. >> > Thanks Richard, > > when I did install Gambas2 2.0 from .deb it did install also from the > distribution disks about 350Kb of -dev libraries. > > I thought that it were enough.. > > I have installed other -dev (for PostgreSQL and MySQL) and run > again ./configure -C . > Again I get the message that it will not compile Postgresql and Mysql > modules...maybe versions are not the good ones ? > I have Debian 4.0 at last r3 revision. > > Ciao > Pino > Hello, Pino. Did you look at this page before compiling? http://gambasdoc.org/help/install/debian?show Here is a list of dependencies for Debian. P.S.: I think that you are italian, isn't it? ;-) If yes, please take a look at www.gambas-it.org where you will find a site interely in italian with a forum where you will be able to ask any question you want ;-) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From gambas at ...1... Sat Apr 5 17:11:52 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 5 Apr 2008 17:11:52 +0200 Subject: [Gambas-user] IDE not updating class members when changed (2.99 Build 1291) In-Reply-To: <200804051312.35224.rterry@...1822...> References: <200804051312.35224.rterry@...1822...> Message-ID: <200804051711.52663.gambas@...1...> On samedi 5 avril 2008, richard terry wrote: > Benoit, > > Please take the time to digest this as I think it really is a bug (or > rather something not being updated under the hood when you change members > of classes). Stopping gambas and re-loading rectifies things however. > > > I have number of classes describing drugs > > cPack: (contains the pack details) > active as string > active_units as string > etc. > > cProduct: (contains the product details) > brand as string > formcode as integer > prodcode as integger > formulation as string > > I had a class cDrug, which I've simplifed but say: > > cDrug is the class and has this in it > ================= > Public pack As cPack > Public productdetails As cProduct > ================= > > Take note my description below of what happens when I later change one of > these names. > > Then I have another subclass which inherits cDRug, which again I've > simplifed and removed many of its members, but say: > > cPrescriptionItem: > ===================================== > Inherits cDrug > Public start_date As Date ' date the drug started > Public directions As String ' directions as text eg 1 mane > etc > ===================================== > ie the tree on the side bar shows (nothis: > > cDrug > cPrescription > cPack > cProductDetails > > Now when I address this in code > > Dim scriptitem = new cPrescriptionitem > > When I type the auto-completion gives me this: > > scriptitem.productdetails.brand > or > scriptitem.pack.active > > ie so far, all ok. > > Now lets say I think - "stupid me, I should have just called the > productdetails member of Cdrug "product instead of "product details" > So I go back and change it, so now cDrug reads: > > ================= > Public pack As cPack > Public product As cProduct > ================= > > However, when I then go back to the form using this information, something > under the hood has not updated this change, so the auto-complete still > comes up with: > > scriptitem.productdetails.brand instead of > scriptitem.product.brand > > If I manually change it then the program runs ok. > > To get the auto-completion to work I have to close down gambas and start it > again, so presumably something is getting reset there, which is not getting > reset when one changes stuff within a class. > > Regards > > Richard > The bug has been fixed in revision 1293. Regards, -- Benoit Minisini From gambas at ...1... Sat Apr 5 17:16:01 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 5 Apr 2008 17:16:01 +0200 Subject: [Gambas-user] Creating new project in 2.99(1291) says Its a Gambas2 Prog In-Reply-To: <200804051727.04224.rterry@...1822...> References: <200804051727.04224.rterry@...1822...> Message-ID: <200804051716.01119.gambas@...1...> On samedi 5 avril 2008, richard terry wrote: > As heading suggests, says its a gambas 2 project and do you want to open it > anyway? > > Regadrs > > Richard > You should read the full boring subversion commits. :-) Since revision 1276, the projects created by the Gambas 3 IDE are marked as being Gambas 3 projects in the .project file. Consequently, when this mark is not present, you get a warning message that tells you that you are currently opening a Gambas 2 project. If you open it anyway, then it will be silently marked as a Gambas 3 project, and you won't get the warning anymore. Some automatic conversion may occur under the ground. Regards, -- Benoit Minisini From gambas at ...1... Sat Apr 5 17:16:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 5 Apr 2008 17:16:31 +0200 Subject: [Gambas-user] Weird but reproducable Signal 11 Gridview bug (2.99 1291 build) In-Reply-To: <200804051755.59403.rterry@...1822...> References: <200804051755.59403.rterry@...1822...> Message-ID: <200804051716.31109.gambas@...1...> On samedi 5 avril 2008, richard terry wrote: > I reckon someone should employ me as as a beta tester, cause I can kill > just about anything with my stupidity. > > This bug is really way out there and will only occur under a strange > circumstance. (project included). > > If you've a grid on the form, > > AND the number of items in the grid exceeds the viewable area > > AND the scoll bar property is set to either Both or Vertical (its really > only the vertical component that kills the grid) > > AND you are stupid enough (read me only ) to put any resizing code in the > following event: > > Public Sub GridView1_ColumnResize(Column As Integer) > > gridview1.columns.Width = gridview1.columns.Width + 10 > > End > > Then gambas will reproducably die with signal 11. > > You are probably wondering why I put it there in the firstplace, well, I'd > meant to put it in a mouse event to see what would happen if I clicked on > the grid because when I first started playing with it today I wondered why > you couldn't grab the column and re-size it (until I realised that you have > to have the headers set - which I didn't want). > > Anway,main point is it should be fixable. > > Regards > > Richard > Can you send me a project that reproduces that bug? -- Benoit Minisini From robert.c.rowe at ...626... Sat Apr 5 17:35:27 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Sat, 05 Apr 2008 11:35:27 -0400 Subject: [Gambas-user] Minor IDE bug Message-ID: <47F79C3F.3000906@...626...> When you create a property, the procedure stubs for the Read and Write are automatically created. This is very nice. If you have the last procedure in the file folded then the Read stub is inserted before the last procedure and the Write stub is inserted after the last procedure. I suspect the the routine is incorrectly determining where the end of the last procedure is due to the folding. It doesn't do it if the last procedure isn't folded. Robert Rowe From gambas at ...1... Sat Apr 5 17:50:29 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 5 Apr 2008 17:50:29 +0200 Subject: [Gambas-user] Columnview ?possible to set width of a column? In-Reply-To: <200804051757.45607.rterry@...1822...> References: <200804051757.45607.rterry@...1822...> Message-ID: <200804051750.29276.gambas@...1...> On samedi 5 avril 2008, richard terry wrote: > There seems no way to overide the automatic width of the column which is > set to the widest item. Whilst this is often great, in confined spaces its > really annoying as in my application the user dosn't need to be able to > read the entire column width,but just get the gist of what is in there. > > Wonder if it is possible to add a property to set these column widths, or > somehow get at them. > > Regards > > Richard > Did you try to play with the column widths? MyColumnView.Columns[0].Width = xxx. By default, the width is -1, meaning that the column automatically resizes to fit its contents. -- Benoit Minisini From rohnny at ...1248... Sat Apr 5 18:04:47 2008 From: rohnny at ...1248... (R. Stormo) Date: Sat, 5 Apr 2008 09:04:47 -0700 (PDT) Subject: [Gambas-user] Gambas3 rev. 1294 fails Message-ID: <16514952.post@...1379...> Tried to reconf-all, configure rev. 1294, but it do fails. 1291 compiles ok. But not able to run. --snip Making all in src make[4]: Entering directory `/home/rohnny/gambas3/gb.desktop/src' /bin/bash ../libtool --tag=CC --mode=compile ccache gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c ccache gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o In file included from main.c:28: desktop.h:27:21: error: gb_list.h: No such file or directory In file included from main.c:28: desktop.h:39: error: expected specifier-qualifier-list before 'LIST' make[4]: *** [main.lo] Error 1 --snap Running Ubuntu 8.04 , Gambas 2 Ver. 2.5 are all ok. Regards R. Stormo My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/Gambas3-rev.-1294-fails-tp16514952p16514952.html Sent from the gambas-user mailing list archive at Nabble.com. From robert.c.rowe at ...626... Sat Apr 5 18:08:30 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Sat, 05 Apr 2008 12:08:30 -0400 Subject: [Gambas-user] Gambas3 rev. 1294 fails In-Reply-To: <16514952.post@...1379...> References: <16514952.post@...1379...> Message-ID: <47F7A3FE.10100@...626...> I just got the same thing: Making install in gb.desktop make[1]: Entering directory `/home/robert/Projects/Gambas/Gambas3Source/trunk/gb.desktop' Making install in src make[2]: Entering directory `/home/robert/Projects/Gambas/Gambas3Source/trunk/gb.desktop/src' /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o In file included from main.c:28: desktop.h:27:21: error: gb_list.h: No such file or directory In file included from main.c:28: desktop.h:39: error: expected specifier-qualifier-list before 'LIST' make[2]: *** [main.lo] Error 1 make[2]: Leaving directory `/home/robert/Projects/Gambas/Gambas3Source/trunk/gb.desktop/src' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/robert/Projects/Gambas/Gambas3Source/trunk/gb.desktop' make: *** [install-recursive] Error 1 I'm in the middle of compiling a second time right now. Robert Rowe R. Stormo wrote: > Tried to reconf-all, configure rev. 1294, but it do fails. 1291 compiles ok. > But not able to run. > --snip > Making all in src > make[4]: Entering directory `/home/rohnny/gambas3/gb.desktop/src' > /bin/bash ../libtool --tag=CC --mode=compile ccache gcc -DHAVE_CONFIG_H > -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value -fsigned-char > -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o > main.lo main.c > ccache gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD > -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o > In file included from main.c:28: > desktop.h:27:21: error: gb_list.h: No such file or directory > In file included from main.c:28: > desktop.h:39: error: expected specifier-qualifier-list before 'LIST' > make[4]: *** [main.lo] Error 1 > --snap > > > Running Ubuntu 8.04 , Gambas 2 Ver. 2.5 are all ok. > > > Regards R. Stormo > > My Gambas Community http://gambasforum.tk > From gambas at ...1... Sat Apr 5 18:11:09 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 5 Apr 2008 18:11:09 +0200 Subject: [Gambas-user] Gambas3 rev. 1294 fails In-Reply-To: <16514952.post@...1379...> References: <16514952.post@...1379...> Message-ID: <200804051811.09427.gambas@...1...> On samedi 5 avril 2008, R. Stormo wrote: > Tried to reconf-all, configure rev. 1294, but it do fails. 1291 compiles > ok. But not able to run. > --snip > Making all in src > make[4]: Entering directory `/home/rohnny/gambas3/gb.desktop/src' > /bin/bash ../libtool --tag=CC --mode=compile ccache gcc -DHAVE_CONFIG_H > -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value -fsigned-char > -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o > main.lo main.c > ccache gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD > -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o > In file included from main.c:28: > desktop.h:27:21: error: gb_list.h: No such file or directory > In file included from main.c:28: > desktop.h:39: error: expected specifier-qualifier-list before 'LIST' > make[4]: *** [main.lo] Error 1 > --snap > > > Running Ubuntu 8.04 , Gambas 2 Ver. 2.5 are all ok. > > > Regards R. Stormo > > My Gambas Community http://gambasforum.tk Fixed in revision 1295! -- Benoit Minisini From rohnny at ...1248... Sat Apr 5 19:14:32 2008 From: rohnny at ...1248... (R. Stormo) Date: Sat, 5 Apr 2008 10:14:32 -0700 (PDT) Subject: [Gambas-user] Gambas3 rev. 1294 fails In-Reply-To: <200804051811.09427.gambas@...1...> References: <16514952.post@...1379...> <200804051811.09427.gambas@...1...> Message-ID: <16515751.post@...1379...> Benoit Minisini wrote: > > On samedi 5 avril 2008, R. Stormo wrote: >> Tried to reconf-all, configure rev. 1294, but it do fails. 1291 compiles >> ok. But not able to run. >> --snip >> Making all in src >> make[4]: Entering directory `/home/rohnny/gambas3/gb.desktop/src' >> /bin/bash ../libtool --tag=CC --mode=compile ccache gcc -DHAVE_CONFIG_H >> -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value -fsigned-char >> -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o >> main.lo main.c >> ccache gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall >> -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo >> -MD >> -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o >> In file included from main.c:28: >> desktop.h:27:21: error: gb_list.h: No such file or directory >> In file included from main.c:28: >> desktop.h:39: error: expected specifier-qualifier-list before 'LIST' >> make[4]: *** [main.lo] Error 1 >> --snap >> >> >> Running Ubuntu 8.04 , Gambas 2 Ver. 2.5 are all ok. >> >> >> Regards R. Stormo >> >> My Gambas Community http://gambasforum.tk > > Fixed in revision 1295! > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Yes it's now fixed. Is it possible to make it take use of libgettextlib-0.17.so also? Can't run it because of missing lib --snip gambas3 gbr3: error while loading shared libraries: libgettextlib-0.16.1.so: cannot open shared object file: No such file or director -snap It's not on my repo, and I have tried to make a symbolic link but Then I get core dump. Regards R. Stormo My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/Gambas3-rev.-1294-fails-tp16514952p16515751.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Apr 5 19:24:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 5 Apr 2008 19:24:31 +0200 Subject: [Gambas-user] Gambas3 rev. 1294 fails In-Reply-To: <16515751.post@...1379...> References: <16514952.post@...1379...> <200804051811.09427.gambas@...1...> <16515751.post@...1379...> Message-ID: <200804051924.31219.gambas@...1...> On samedi 5 avril 2008, R. Stormo wrote: > Benoit Minisini wrote: > > On samedi 5 avril 2008, R. Stormo wrote: > >> Tried to reconf-all, configure rev. 1294, but it do fails. 1291 compiles > >> ok. But not able to run. > >> --snip > >> Making all in src > >> make[4]: Entering directory `/home/rohnny/gambas3/gb.desktop/src' > >> /bin/bash ../libtool --tag=CC --mode=compile ccache gcc > >> -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value > >> -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF > >> .deps/main.Tpo -c -o main.lo main.c > >> ccache gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall > >> -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo > >> -MD > >> -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o > >> In file included from main.c:28: > >> desktop.h:27:21: error: gb_list.h: No such file or directory > >> In file included from main.c:28: > >> desktop.h:39: error: expected specifier-qualifier-list before 'LIST' > >> make[4]: *** [main.lo] Error 1 > >> --snap > >> > >> > >> Running Ubuntu 8.04 , Gambas 2 Ver. 2.5 are all ok. > >> > >> > >> Regards R. Stormo > >> > >> My Gambas Community http://gambasforum.tk > > > > Fixed in revision 1295! > > > > -- > > Benoit Minisini > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Register now and save $200. Hurry, offer ends at 11:59 p.m., > > Monday, April 7! Use priority code J8TLD2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/ja > >vaone _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Yes it's now fixed. Is it possible to make it take use of > libgettextlib-0.17.so also? > > Can't run it because of missing lib > --snip > gambas3 > gbr3: error while loading shared libraries: libgettextlib-0.16.1.so: cannot > open shared object file: No such file or director > -snap > > It's not on my repo, and I have tried to make a symbolic link but Then I > get core dump. > > > Regards R. Stormo > > > My Gambas Community http://gambasforum.tk I don't know. It seems to be purely a problem on your system. Gambas does not decide the version of the library it uses, but the system linker (a library named ld-linux.so) does. This is the system linker that tries to open libgettextlib-0.16.1.so when gbx3/gbr3 starts, and this name is compiled into the executable by the GNU linker at compilation time. But the GNU linker should not insert this name at compilation time if it does not find him on the system. I suggest you search for an occurrence of libgettextlib-0.16.1.so into a file named libgettextlib.la. Regards, -- Benoit Minisini From rohnny at ...1248... Sat Apr 5 19:47:31 2008 From: rohnny at ...1248... (R. Stormo) Date: Sat, 5 Apr 2008 10:47:31 -0700 (PDT) Subject: [Gambas-user] Gambas3 rev. 1294 fails In-Reply-To: <200804051924.31219.gambas@...1...> References: <16514952.post@...1379...> <200804051811.09427.gambas@...1...> <16515751.post@...1379...> <200804051924.31219.gambas@...1...> Message-ID: <16516082.post@...1379...> Benoit Minisini wrote: > > On samedi 5 avril 2008, R. Stormo wrote: >> Benoit Minisini wrote: >> > On samedi 5 avril 2008, R. Stormo wrote: >> >> Tried to reconf-all, configure rev. 1294, but it do fails. 1291 >> compiles >> >> ok. But not able to run. >> >> --snip >> >> Making all in src >> >> make[4]: Entering directory `/home/rohnny/gambas3/gb.desktop/src' >> >> /bin/bash ../libtool --tag=CC --mode=compile ccache gcc >> >> -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value >> >> -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF >> >> .deps/main.Tpo -c -o main.lo main.c >> >> ccache gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall >> >> -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo >> >> -MD >> >> -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o >> >> In file included from main.c:28: >> >> desktop.h:27:21: error: gb_list.h: No such file or directory >> >> In file included from main.c:28: >> >> desktop.h:39: error: expected specifier-qualifier-list before 'LIST' >> >> make[4]: *** [main.lo] Error 1 >> >> --snap >> >> >> >> >> >> Running Ubuntu 8.04 , Gambas 2 Ver. 2.5 are all ok. >> >> >> >> >> >> Regards R. Stormo >> >> >> >> My Gambas Community http://gambasforum.tk >> > >> > Fixed in revision 1295! >> > >> > -- >> > Benoit Minisini >> > >> > >> ------------------------------------------------------------------------- >> > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> > Register now and save $200. Hurry, offer ends at 11:59 p.m., >> > Monday, April 7! Use priority code J8TLD2. >> > >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/ja >> >vaone _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> Yes it's now fixed. Is it possible to make it take use of >> libgettextlib-0.17.so also? >> >> Can't run it because of missing lib >> --snip >> gambas3 >> gbr3: error while loading shared libraries: libgettextlib-0.16.1.so: >> cannot >> open shared object file: No such file or director >> -snap >> >> It's not on my repo, and I have tried to make a symbolic link but Then I >> get core dump. >> >> >> Regards R. Stormo >> >> >> My Gambas Community http://gambasforum.tk > > I don't know. It seems to be purely a problem on your system. > > Gambas does not decide the version of the library it uses, but the system > linker (a library named ld-linux.so) does. > > This is the system linker that tries to open libgettextlib-0.16.1.so when > gbx3/gbr3 starts, and this name is compiled into the executable by the GNU > linker at compilation time. > > But the GNU linker should not insert this name at compilation time if it > does > not find him on the system. > > I suggest you search for an occurrence of libgettextlib-0.16.1.so into a > file > named libgettextlib.la. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > There are no occurrences to rev. 16 of library. This is the file. --snip GNU nano 2.0.7 File: /usr/lib/libgettextlib.la # libgettextlib.la - a libtool library file # Generated by ltmain.sh - GNU libtool 1.5.24 (1.1220.2.455 2007/06/24 02:13:29) # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='libgettextlib-0.17.so' # Names of this library. library_names='libgettextlib-0.17.so libgettextlib-0.17.so libgettextlib.so' # The name of the static archive. old_library='libgettextlib.a' # Libraries that this one depends upon. dependency_libs=' -lc' # Version information for libgettextlib. current=0 age=0 revision=0 # Is this an already installed library? installed=yes # Should we warn about portability when linking against -modules? shouldnotlink=no # Files to dlopen/dlpreopen dlopen='' dlpreopen='' # Directory that this library needs to be installed in: libdir='/usr/lib' --snap Ill trie to install rev.16.1 from an deb file. ----- Regards R. Stormo My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/Gambas3-rev.-1294-fails-tp16514952p16516082.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Apr 5 20:50:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 5 Apr 2008 20:50:31 +0200 Subject: [Gambas-user] Minor IDE bug In-Reply-To: <47F79C3F.3000906@...626...> References: <47F79C3F.3000906@...626...> Message-ID: <200804052050.31786.gambas@...1...> On samedi 5 avril 2008, Robert Rowe wrote: > When you create a property, the procedure stubs for the Read and Write > are automatically created. This is very nice. If you have the last > procedure in the file folded then the Read stub is inserted before the > last procedure and the Write stub is inserted after the last procedure. > I suspect the the routine is incorrectly determining where the end of > the last procedure is due to the folding. It doesn't do it if the last > procedure isn't folded. > > Robert Rowe > It should be fixed in revision 1297. Not perfect, but acceptable. -- Benoit Minisini From gambas at ...1... Sat Apr 5 20:51:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 5 Apr 2008 20:51:13 +0200 Subject: [Gambas-user] Finding a bit of text in the console output In-Reply-To: <200804051153.47470.rterry@...1822...> References: <200804051153.47470.rterry@...1822...> Message-ID: <200804052051.13974.gambas@...1...> On samedi 5 avril 2008, richard terry wrote: > I suspect this is just because I'm not using the IDE and debugging > properly, but I'll ask anyway. > > I often put print statement in my code, and where in the middle of a loop > can get quite a large output in the consol, so it can be hard to find what > I've been looking for (especially if say printing out a large sQL). > > Wondered if the consol could have a search option. > > Probably this means I need a tutorial in how to use debugging in Gambas, > which I've not yet got into. > > Anyone give a few pointers? > > Regards and thanks in anticipation. > > Richard > I added a little search box in the console toolbar. Look at revision 1296 or 1297. Regards, -- Benoit Minisini From rohnny at ...1248... Sun Apr 6 07:31:55 2008 From: rohnny at ...1248... (R. Stormo) Date: Sat, 5 Apr 2008 22:31:55 -0700 (PDT) Subject: [Gambas-user] Gambas3 rev. 1294 fails In-Reply-To: <16516082.post@...1379...> References: <16514952.post@...1379...> <200804051811.09427.gambas@...1...> <16515751.post@...1379...> <200804051924.31219.gambas@...1...> <16516082.post@...1379...> Message-ID: <16521223.post@...1379...> R. Stormo wrote: > > > > Benoit Minisini wrote: >> >> On samedi 5 avril 2008, R. Stormo wrote: >>> Benoit Minisini wrote: >>> > On samedi 5 avril 2008, R. Stormo wrote: >>> >> Tried to reconf-all, configure rev. 1294, but it do fails. 1291 >>> compiles >>> >> ok. But not able to run. >>> >> --snip >>> >> Making all in src >>> >> make[4]: Entering directory `/home/rohnny/gambas3/gb.desktop/src' >>> >> /bin/bash ../libtool --tag=CC --mode=compile ccache gcc >>> >> -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall >>> -Wno-unused-value >>> >> -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF >>> >> .deps/main.Tpo -c -o main.lo main.c >>> >> ccache gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall >>> >> -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT >>> main.lo >>> >> -MD >>> >> -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o >>> >> In file included from main.c:28: >>> >> desktop.h:27:21: error: gb_list.h: No such file or directory >>> >> In file included from main.c:28: >>> >> desktop.h:39: error: expected specifier-qualifier-list before 'LIST' >>> >> make[4]: *** [main.lo] Error 1 >>> >> --snap >>> >> >>> >> >>> >> Running Ubuntu 8.04 , Gambas 2 Ver. 2.5 are all ok. >>> >> >>> >> >>> >> Regards R. Stormo >>> >> >>> >> My Gambas Community http://gambasforum.tk >>> > >>> > Fixed in revision 1295! >>> > >>> > -- >>> > Benoit Minisini >>> > >>> > >>> ------------------------------------------------------------------------- >>> > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >>> > Register now and save $200. Hurry, offer ends at 11:59 p.m., >>> > Monday, April 7! Use priority code J8TLD2. >>> > >>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/ja >>> >vaone _______________________________________________ >>> > Gambas-user mailing list >>> > Gambas-user at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> Yes it's now fixed. Is it possible to make it take use of >>> libgettextlib-0.17.so also? >>> >>> Can't run it because of missing lib >>> --snip >>> gambas3 >>> gbr3: error while loading shared libraries: libgettextlib-0.16.1.so: >>> cannot >>> open shared object file: No such file or director >>> -snap >>> >>> It's not on my repo, and I have tried to make a symbolic link but Then I >>> get core dump. >>> >>> >>> Regards R. Stormo >>> >>> >>> My Gambas Community http://gambasforum.tk >> >> I don't know. It seems to be purely a problem on your system. >> >> Gambas does not decide the version of the library it uses, but the system >> linker (a library named ld-linux.so) does. >> >> This is the system linker that tries to open libgettextlib-0.16.1.so when >> gbx3/gbr3 starts, and this name is compiled into the executable by the >> GNU >> linker at compilation time. >> >> But the GNU linker should not insert this name at compilation time if it >> does >> not find him on the system. >> >> I suggest you search for an occurrence of libgettextlib-0.16.1.so into a >> file >> named libgettextlib.la. >> >> Regards, >> >> -- >> Benoit Minisini >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Register now and save $200. Hurry, offer ends at 11:59 p.m., >> Monday, April 7! Use priority code J8TLD2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > There are no occurrences to rev. 16 of library. > > This is the file. > --snip > GNU nano 2.0.7 File: /usr/lib/libgettextlib.la > > --snap > > Ill trie to install rev.16.1 from an deb file. > > > > Tried to download the libget text but it would not work. Installation wemt ok, but the program did not start. It went out with core dump. So I have to wait until gambas3 uses rev 0.17 to make it work. :( ----- Regards R. Stormo My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/Gambas3-rev.-1294-fails-tp16514952p16521223.html Sent from the gambas-user mailing list archive at Nabble.com. From gau_veldt at ...67... Sun Apr 6 12:26:04 2008 From: gau_veldt at ...67... (B. Jack) Date: Sun, 6 Apr 2008 03:26:04 -0700 Subject: [Gambas-user] Need help with resizing Picutre contained by a resizable scrollview Message-ID: I am having trouble with resizing images to resized parents because the image size units are not the same as the window/form size units. I have a form with various V-Slide and H-Slide partitioned child objects. The image preview pane is a child of a scrollview (so large images may be panned). This scrollview is ultimately a child of one of the VSliders/HSliders on the form. What I need to do is have a Picture within the scrollview that centers any image smaller than the client area after any Arrange activity. For any image larger than the client area the Picture object is maximized to the image size so the ScrollView will make the image pannable. The problem with just setting the Extend attribute is then that a larger image will be cut off (and won't be scrollable). Trying to set the H and W (or Width and Height) of the child Picture in an Arrange handler also doesn't seem to work right since the unit size of the image in the Picture and the Parent container do not correlate. Is the only option to set the stretch attribute and have it chunky-scaled? _________________________________________________________________ If you like crossword puzzles, then you'll love Flexicon, a game which combines four overlapping crossword puzzles into one! http://g.msn.ca/ca55/208 From jbskaggs at ...1871... Sun Apr 6 22:46:18 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Sun, 6 Apr 2008 13:46:18 -0700 (PDT) Subject: [Gambas-user] Getting wrong text item from listtview Message-ID: <16529593.post@...1379...> I dont know why i keep having new listview bugs pop up. But this time I keep getting the firstitem's text in a listviewreference that everywhere else is pointing to the right listview item. listview1_click() points and displays the right listview.item text then when it goes to listview2_click is references the right item on listview one then when I click my listview2menu to edit a text file it edits the file and saves with the right path (listview1.item.text &/listview2.item.text&/"filename.txt" but when I goto edit same file it always calls the first listview1.item in the path and can't find the file. I have scoured the code to find where I am reassigning the variable or moving the cursor and I am not finding it. Is there a trick to finding the bug? JB Skaggs -- View this message in context: http://www.nabble.com/Getting-wrong-text-item-from-listtview-tp16529593p16529593.html Sent from the gambas-user mailing list archive at Nabble.com. From sbungay at ...981... Sun Apr 6 22:51:34 2008 From: sbungay at ...981... (Stephen Bungay) Date: Sun, 06 Apr 2008 16:51:34 -0400 Subject: [Gambas-user] Getting wrong text item from listtview In-Reply-To: <16529593.post@...1379...> References: <16529593.post@...1379...> Message-ID: <47F937D6.7030306@...981...> Code example? jbskaggs wrote: > I dont know why i keep having new listview bugs pop up. But this time I keep > getting the firstitem's text in a listviewreference that everywhere else is > pointing to the right listview item. > > listview1_click() points and displays the right listview.item text > then when it goes to listview2_click is references the right item on > listview one > then when I click my listview2menu to edit a text file it edits the file and > saves with the right path (listview1.item.text > &/listview2.item.text&/"filename.txt" > > but when I goto edit same file it always calls the first listview1.item in > the path and can't find the file. I have scoured the code to find where I > am reassigning the variable or moving the cursor and I am not finding it. > > Is there a trick to finding the bug? > > JB Skaggs From jbskaggs at ...1871... Sun Apr 6 22:59:43 2008 From: jbskaggs at ...1871... (skaggs) Date: Sun, 06 Apr 2008 15:59:43 -0500 Subject: [Gambas-user] Getting wrong text item from listtview In-Reply-To: <47F937D6.7030306@...981...> References: <16529593.post@...1379...> <47F937D6.7030306@...981...> Message-ID: <1207515583.8410.4.camel@...1876...> Okay its a bit long but: here we click listview1 to pick the chapter we work on: PUBLIC SUB ListView1_Click() DIM thislist AS String DIM elt AS String[] DIM sb AS String DIM c AS Integer DIM t AS String DIM cwc AS Integer DIM twc AS Integer DIM v AS Integer DIM z AS Integer 'listview1.MoveTo(z) IF listview1.count > 0 ListView1.MoveCurrent cwc = 0 txChWordCount.text = 0 TextArea3.Text = "" TextArea3.hide IF Exist(PrThing.projectpath &/ listview1.Item.Text & "scenelist") thislist = Left$(file.Load(PrThing.projectpath &/ listview1.Item.Text & "scenelist"), -1) 'print thislist elt = Split(thislist, "^") listview2.Clear FOR EACH sb IN elt c += 1 listview2.Add(c, sb) t = file.Load(PrThing.projectpath &/ listview1.Item.Text & sb) cwc += Round(Len(t) / 6) - 1 txChWordCount.Text = cwc NEXT END IF TextLabel7.Hide moviebox1.Hide TextBox6.Hide Button1.Hide Button2.Hide Textbox7.text = 0 ENDIF END then we click listview2 to pick the scene we are working on: PUBLIC SUB listview2_Click() DIM t1 AS String DIM elt AS String[] DIM sb AS String DIM c AS Integer DIM thislist AS String IF ListView2.count < 1 'ListView1.MoveCurrent textbox6.Clear message.Error("You have not added any scenes yet. Right Click on chapters to add a scene.") RETURN ENDIF t1 = "empty" elt = "" sb = "" c = 0 textbox6.Clear TextArea3.Text = t1 TextArea3.Hide moviebox1.hide message.Info(PrThing.projectpath &/ listview1.Item.Text & listview2.Item.Text) IF Exist(PrThing.projectpath &/ listview1.Item.Text & listview2.Item.Text) t1 = file.Load(PrThing.projectpath &/ listview1.Item.Text & listview2.Item.Text) textarea3.show END IF TextArea3.Text = t1 TextLabel7.Show TextBox6.Show Button1.Show Button2.Show moviebox1.Refresh IF Exist(PrThing.projectpath &/ "characters/characterlist.txt") = TRUE IF Exist(PrThing.projectpath &/ "characters/" & listview1.Item.text & Listview2.Item.text & "char.txt") = TRUE textbox6.text = file.load(PrThing.projectpath &/ "characters/" & listview1.Item.text & Listview2.Item.text & "char.txt") ELSE RETURN ENDIF IF Exist(PrThing.projectpath &/ "characters/" & TextBox6.Text & ".txt") = TRUE thislist = file.Load(PrThing.projectpath &/ "characters/" & TextBox6.text & ".txt") elt = Split(thislist, "^") ListView3.Clear FOR EACH sb IN elt c += 1 IF c = 8 THEN gifpic = sb NEXT ENDIF IF Exist(gifpic) = TRUE moviebox1.Path = (gifpic) moviebox1.Show moviebox1.playing = TRUE ELSE MovieBox1.hide ENDIF ELSE IF Exist(PrThing.projectpath &/ "characters/" & listview1.Item.text & Listview2.Item.text & "char.txt") KILL PrThing.projectpath &/ "characters/" & listview1.Item.text & Listview2.Item.text & "char.txt" MovieBox1.hide ENDIF ENDIF textbox7.text = Round(Len(t1) / 6) - 1 END Okay then we right click to access menu PUBLIC SUB listview2_Menu() IF listview2.count > 0 text.Popup ELSE message.Info("NO scenes exist! Right click on a chapter to add a Scene.") ENDIF END then we click on edit scene text to edit file PUBLIC SUB text_edit_Click() DIM t1 AS String textpath = "" textfile = "" t1 = "" TextArea3.Text = t1 'ListView1.MoveCurrent 'ListView2.Item.Selected = TRUE IF Exist(PrThing.projectpath &/ listview1.Item.Text & listview2.Item.Text) = TRUE textfile = file.Load(PrThing.projectpath &/ listview1.Item.Text & listview2.Item.Text) END IF textpath = PrThing.projectpath &/ listview1.Item.Text & listview2.Item.Text FScnTextEditor.Show END every whereelse on this chain listview1.item.text is the correct chapter- then when this last stage is clicked it always points to chapter 1 (or the firstitem in listview1) JB Skaggs On Sun, 2008-04-06 at 16:51 -0400, Stephen Bungay wrote: > Code example? > > jbskaggs wrote: > > I dont know why i keep having new listview bugs pop up. But this time I keep > > getting the firstitem's text in a listviewreference that everywhere else is > > pointing to the right listview item. > > > > listview1_click() points and displays the right listview.item text > > then when it goes to listview2_click is references the right item on > > listview one > > then when I click my listview2menu to edit a text file it edits the file and > > saves with the right path (listview1.item.text > > &/listview2.item.text&/"filename.txt" > > > > but when I goto edit same file it always calls the first listview1.item in > > the path and can't find the file. I have scoured the code to find where I > > am reassigning the variable or moving the cursor and I am not finding it. > > > > Is there a trick to finding the bug? > > > > JB Skaggs > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From sbungay at ...981... Sun Apr 6 23:18:45 2008 From: sbungay at ...981... (Stephen Bungay) Date: Sun, 06 Apr 2008 17:18:45 -0400 Subject: [Gambas-user] Getting wrong text item from listtview In-Reply-To: <1207515583.8410.4.camel@...1876...> References: <16529593.post@...1379...> <47F937D6.7030306@...981...> <1207515583.8410.4.camel@...1876...> Message-ID: <47F93E35.2060209@...981...> What controls are on this.. I'm going to hack together a test-mule and walk through the code... send me the project it'll be quicker. :) Steve. skaggs wrote: > Okay its a bit long but: > > here we click listview1 to pick the chapter we work on: > > PUBLIC SUB ListView1_Click() > DIM thislist AS String > DIM elt AS String[] > DIM sb AS String > DIM c AS Integer > DIM t AS String > DIM cwc AS Integer > DIM twc AS Integer > DIM v AS Integer > DIM z AS Integer > > 'listview1.MoveTo(z) > IF listview1.count > 0 > ListView1.MoveCurrent > cwc = 0 > txChWordCount.text = 0 > TextArea3.Text = "" > TextArea3.hide > IF Exist(PrThing.projectpath &/ listview1.Item.Text & "scenelist") > > thislist = Left$(file.Load(PrThing.projectpath &/ > listview1.Item.Text & "scenelist"), -1) > 'print thislist > elt = Split(thislist, "^") > listview2.Clear > FOR EACH sb IN elt > c += 1 > listview2.Add(c, sb) > t = file.Load(PrThing.projectpath &/ listview1.Item.Text & sb) > cwc += Round(Len(t) / 6) - 1 > txChWordCount.Text = cwc > NEXT > END IF > TextLabel7.Hide > moviebox1.Hide > TextBox6.Hide > Button1.Hide > Button2.Hide > > Textbox7.text = 0 > > ENDIF > > > END > > then we click listview2 to pick the scene we are working on: > > PUBLIC SUB listview2_Click() > DIM t1 AS String > DIM elt AS String[] > DIM sb AS String > DIM c AS Integer > DIM thislist AS String > IF ListView2.count < 1 > 'ListView1.MoveCurrent > textbox6.Clear > message.Error("You have not added any scenes yet. Right Click on > chapters to add a scene.") > RETURN > ENDIF > t1 = "empty" > elt = "" > sb = "" > c = 0 > textbox6.Clear > TextArea3.Text = t1 > TextArea3.Hide > moviebox1.hide > message.Info(PrThing.projectpath &/ listview1.Item.Text & > listview2.Item.Text) > IF Exist(PrThing.projectpath &/ listview1.Item.Text & > listview2.Item.Text) > t1 = file.Load(PrThing.projectpath &/ listview1.Item.Text & > listview2.Item.Text) > textarea3.show > END IF > TextArea3.Text = t1 > TextLabel7.Show > > TextBox6.Show > Button1.Show > Button2.Show > moviebox1.Refresh > > IF Exist(PrThing.projectpath &/ "characters/characterlist.txt") = TRUE > IF Exist(PrThing.projectpath &/ "characters/" & listview1.Item.text & > Listview2.Item.text & "char.txt") = TRUE > > textbox6.text = file.load(PrThing.projectpath &/ "characters/" & > listview1.Item.text & Listview2.Item.text & "char.txt") > ELSE > > RETURN > ENDIF > > > IF Exist(PrThing.projectpath &/ "characters/" & TextBox6.Text & > ".txt") = TRUE > thislist = file.Load(PrThing.projectpath &/ "characters/" & > TextBox6.text & ".txt") > elt = Split(thislist, "^") > ListView3.Clear > > FOR EACH sb IN elt > c += 1 > IF c = 8 THEN gifpic = sb > NEXT > > ENDIF > > IF Exist(gifpic) = TRUE > moviebox1.Path = (gifpic) > > moviebox1.Show > > moviebox1.playing = TRUE > > ELSE > > MovieBox1.hide > > ENDIF > ELSE > IF Exist(PrThing.projectpath &/ "characters/" & listview1.Item.text & > Listview2.Item.text & "char.txt") > > KILL PrThing.projectpath &/ "characters/" & listview1.Item.text & > Listview2.Item.text & "char.txt" > MovieBox1.hide > ENDIF > ENDIF > textbox7.text = Round(Len(t1) / 6) - 1 > END > > > Okay then we right click to access menu > > PUBLIC SUB listview2_Menu() > > IF listview2.count > 0 > text.Popup > ELSE > message.Info("NO scenes exist! Right click on a chapter to add a > Scene.") > ENDIF > END > > then we click on edit scene text to edit file > > PUBLIC SUB text_edit_Click() > DIM t1 AS String > textpath = "" > textfile = "" > t1 = "" > TextArea3.Text = t1 > 'ListView1.MoveCurrent > 'ListView2.Item.Selected = TRUE > IF Exist(PrThing.projectpath &/ listview1.Item.Text & > listview2.Item.Text) = TRUE > textfile = file.Load(PrThing.projectpath &/ listview1.Item.Text & > listview2.Item.Text) > END IF > textpath = PrThing.projectpath &/ listview1.Item.Text & > listview2.Item.Text > FScnTextEditor.Show > > END > > every whereelse on this chain listview1.item.text is the correct > chapter- then when this last stage is clicked it always points to > chapter 1 (or the firstitem in listview1) > > JB Skaggs > > On Sun, 2008-04-06 at 16:51 -0400, Stephen Bungay wrote: >> Code example? >> >> jbskaggs wrote: >>> I dont know why i keep having new listview bugs pop up. But this time I keep >>> getting the firstitem's text in a listviewreference that everywhere else is >>> pointing to the right listview item. >>> >>> listview1_click() points and displays the right listview.item text >>> then when it goes to listview2_click is references the right item on >>> listview one >>> then when I click my listview2menu to edit a text file it edits the file and >>> saves with the right path (listview1.item.text >>> &/listview2.item.text&/"filename.txt" >>> >>> but when I goto edit same file it always calls the first listview1.item in >>> the path and can't find the file. I have scoured the code to find where I >>> am reassigning the variable or moving the cursor and I am not finding it. >>> >>> Is there a trick to finding the bug? >>> >>> JB Skaggs >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Register now and save $200. Hurry, offer ends at 11:59 p.m., >> Monday, April 7! Use priority code J8TLD2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Mon Apr 7 03:36:28 2008 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 7 Apr 2008 03:36:28 +0200 Subject: [Gambas-user] Gambas3 rev. 1294 fails In-Reply-To: <16521223.post@...1379...> References: <16514952.post@...1379...> <16516082.post@...1379...> <16521223.post@...1379...> Message-ID: <200804070336.29042.ronstk@...239...> On Sunday 06 April 2008 07:31, R. Stormo wrote: > > > > > Tried to download the libget text but it would not work. Installation wemt > ok, but the program did not start. > It went out with core dump. So I have to wait until gambas3 uses rev 0.17 to > make it work. :( > Just like the same problem I had once with SuSE yast and curl library. The posible solution can be to compile from libget from source and use ./configure --prefix=/usr/local before the make. Normal it wil compile to /usr (global distribution) but for personal usage with the prefix you have your personal aside the distibutions one. ATT yast did need the SuSE version of curl and gambas a new conflicting with yast. When gambas during the configure phase is looking it should find it on the /usr/local (v0.16) path instead of the /usr path (0.17). The only minus point is the posibility other new configurations of other programms wil also use the /usr/local (0.16) one. Do not forget the ld.config stuff. Ron From jaap_cramer at ...67... Mon Apr 7 13:46:23 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Mon, 7 Apr 2008 13:46:23 +0200 Subject: [Gambas-user] Settings bug Message-ID: Hi people! A friend of my uses AndLinux (CoLinux/Kubuntu) to test a program of mine, and we discovered there a Bug in the settings-module. A settings file cannot be read, and all arguments are NULL, and there is no config-file made in ~/.config/gambas/ How can this be solved? It might be an AndLinux bug, but everything else seams to work fine... Jaap _________________________________________________________________ De leukste online filmpjes vind je op MSN Video! http://video.msn.com/video.aspx?mkt=nl-nl From gambas at ...1... Mon Apr 7 14:48:20 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Apr 2008 14:48:20 +0200 Subject: [Gambas-user] Settings bug In-Reply-To: References: Message-ID: <200804071448.20391.gambas@...1...> On lundi 7 avril 2008, Jaap Cramer wrote: > Hi people! > > A friend of my uses AndLinux (CoLinux/Kubuntu) to test a program of mine, > and we discovered there a Bug in the settings-module. A settings file > cannot be read, and all arguments are NULL, and there is no config-file > made in ~/.config/gambas/ > > How can this be solved? It might be an AndLinux bug, but everything else > seams to work fine... > > Jaap Do you have more details? Which program, which setting file, and so on... -- Benoit Minisini From jaap_cramer at ...67... Mon Apr 7 15:04:02 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Mon, 7 Apr 2008 15:04:02 +0200 Subject: [Gambas-user] Settings bug In-Reply-To: <200804071448.20391.gambas@...1...> References: <200804071448.20391.gambas@...1...> Message-ID: I use the gb.settings module to save some data. I dont know what you want to now? I use Gambas 2.4.1 The data for my project are (as is default) stored in ~/.config/gambas/aplicationname.conf. Since my program is called 'hebr3' the config file is called also hebr3.conf to save and re-use the window-state of my program I use form.x = Settings["form/x"] the same for .y, .h, and .w My question is, why there is no configfile created when my friend runs my project in AndLinux. If I run that project in Ubuntu there is a configfile created, if none exist. Could this be a Gambas bug in gb.Settings? Or maybe a AndLinux bug? I hope its more clear now... Jaap ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Mon, 7 Apr 2008 14:48:20 +0200 > Subject: Re: [Gambas-user] Settings bug > > On lundi 7 avril 2008, Jaap Cramer wrote: >> Hi people! >> >> A friend of my uses AndLinux (CoLinux/Kubuntu) to test a program of mine, >> and we discovered there a Bug in the settings-module. A settings file >> cannot be read, and all arguments are NULL, and there is no config-file >> made in ~/.config/gambas/ >> >> How can this be solved? It might be an AndLinux bug, but everything else >> seams to work fine... >> >> Jaap > > Do you have more details? Which program, which setting file, and so on... > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ De mooiste afbeeldingen van Angelina Jolie vind je met Live Search http://search.live.com/images/results.aspx?q=angelina%20jolie&FORM=MIINTM From gambas at ...1... Mon Apr 7 15:13:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Apr 2008 15:13:13 +0200 Subject: [Gambas-user] Settings bug In-Reply-To: References: <200804071448.20391.gambas@...1...> Message-ID: <200804071513.13095.gambas@...1...> On lundi 7 avril 2008, Jaap Cramer wrote: > I use the gb.settings module to save some data. I dont know what you want > to now? I use Gambas 2.4.1 The data for my project are (as is default) > stored in ~/.config/gambas/aplicationname.conf. Since my program is called > 'hebr3' the config file is called also hebr3.conf > > to save and re-use the window-state of my program I use > form.x = Settings["form/x"] > the same for .y, .h, and .w > > My question is, why there is no configfile created when my friend runs my > project in AndLinux. If I run that project in Ubuntu there is a configfile > created, if none exist. Could this be a Gambas bug in gb.Settings? Or maybe > a AndLinux bug? > > I hope its more clear now... > > Jaap > The Settings file is created/saved when the program stops, or if you call explicitely Settings.Save in your program. It can be a bug in the program. For example, QUIT prevents Settings.Save to be called automatically, and maybe you use it, and it is called only in the context of your friend's computer. Try to call Settings.Save explicitely to see if it changes anything. -- Benoit Minisini From gael.lehech at ...626... Mon Apr 7 15:24:15 2008 From: gael.lehech at ...626... (=?ISO-8859-1?Q?Ga=EBl_Le_Hec'H?=) Date: Mon, 7 Apr 2008 15:24:15 +0200 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: <200802211201.39240.rospolosco@...152...> References: <200802210937.05088.gambas@...1...> <200802211201.39240.rospolosco@...152...> Message-ID: hi Stefano, did you succeeded in compiling gambas on slackware 11 ? because I get the same error on my slackware 11, will have to stay at 2.0 ;-) Ga?l 2008/2/21, Stefano Palmeri : > > Alle 09:37, gioved? 21 febbraio 2008, Benoit Minisini ha scritto: > > > Hi, > > > > Gambas 2.1 has been released. This is the first gambas version that > works > > indifferently on 32 bits and 64 bits system. Finally! > > > > Because of a design flaw, you have to recompile your project when going > > from one architecture to the other, as soon as you use the Pointer > datatype > > in your code. Otherwise, Gambas executable aree fully compatible. > > > > This flaw design is fixed in the Gambas 3 development version. > > > > The IDE now fully supports the development of component projects, i.e. > > components written in Gambas. It can make binary packages for these > > components too, but Ubuntu and Debian distributions are not supported at > > the moment. > > > > There are a lot of bug fixes too, you can see them in the ChangeLog as > > usual. > > > > To test a component project, just install it by checking the option in > > the "make executable" dialog. The component will be installed in your > home > > directory, and the IDE will immediately display the controls defined by > > this component in its toolbox. > > > > Developing a component needs some documentation yet. I hope I will be > able > > to write it soon... Anyway, you can ask questions on the mailing-list as > > usual. > > > > Regards, > > > Just downloaded 2.1. I get an error on compiling. > On same system 2.0 compiled fine. > > Qt: 3.3.8 > KDE: 3.5.4 > > Slackware 11.0 > > Attached the error log. > > Ciao. > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From rospolosco at ...152... Mon Apr 7 15:40:06 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 7 Apr 2008 15:40:06 +0200 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: References: <200802210937.05088.gambas@...1...> <200802211201.39240.rospolosco@...152...> Message-ID: <200804071540.06936.rospolosco@...152...> Alle 15:24, luned? 7 aprile 2008, Ga?l Le Hec'H ha scritto: > hi Stefano, > did you succeeded in compiling gambas on slackware 11 ? because I get the > same error on my slackware 11, will have to stay at 2.0 ;-) > Ga?l No. I should have to change all glibc stuff and gcc compiler. It's very unsafe doing it. So, I'm waiting upcoming Slackware 12.1 to upgrade. Bye. Stefano > > 2008/2/21, Stefano Palmeri : > > Alle 09:37, gioved? 21 febbraio 2008, Benoit Minisini ha scritto: > > > Hi, > > > > > > Gambas 2.1 has been released. This is the first gambas version that > > > > works > > > > > indifferently on 32 bits and 64 bits system. Finally! > > > > > > Because of a design flaw, you have to recompile your project when going > > > from one architecture to the other, as soon as you use the Pointer > > > > datatype > > > > > in your code. Otherwise, Gambas executable aree fully compatible. > > > > > > This flaw design is fixed in the Gambas 3 development version. > > > > > > The IDE now fully supports the development of component projects, i.e. > > > components written in Gambas. It can make binary packages for these > > > components too, but Ubuntu and Debian distributions are not supported > > > at the moment. > > > > > > There are a lot of bug fixes too, you can see them in the ChangeLog as > > > usual. > > > > > > To test a component project, just install it by checking the option in > > > the "make executable" dialog. The component will be installed in your > > > > home > > > > > directory, and the IDE will immediately display the controls defined by > > > this component in its toolbox. > > > > > > Developing a component needs some documentation yet. I hope I will be > > > > able > > > > > to write it soon... Anyway, you can ask questions on the mailing-list > > > as usual. > > > > > > Regards, > > > > Just downloaded 2.1. I get an error on compiling. > > On same system 2.0 compiled fine. > > > > Qt: 3.3.8 > > KDE: 3.5.4 > > > > Slackware 11.0 > > > > Attached the error log. > > > > Ciao. > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java >one _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Mon Apr 7 19:46:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Apr 2008 19:46:53 +0200 Subject: [Gambas-user] Weird but reproducable Signal 11 Gridview bug (2.99 1291 build) In-Reply-To: <200804051755.59403.rterry@...1822...> References: <200804051755.59403.rterry@...1822...> Message-ID: <200804071946.53591.gambas@...1...> On samedi 5 avril 2008, richard terry wrote: > I reckon someone should employ me as as a beta tester, cause I can kill > just about anything with my stupidity. > > This bug is really way out there and will only occur under a strange > circumstance. (project included). > > If you've a grid on the form, > > AND the number of items in the grid exceeds the viewable area > > AND the scoll bar property is set to either Both or Vertical (its really > only the vertical component that kills the grid) > > AND you are stupid enough (read me only ) to put any resizing code in the > following event: > > Public Sub GridView1_ColumnResize(Column As Integer) > > gridview1.columns.Width = gridview1.columns.Width + 10 > > End > > Then gambas will reproducably die with signal 11. > > You are probably wondering why I put it there in the firstplace, well, I'd > meant to put it in a mouse event to see what would happen if I clicked on > the grid because when I first started playing with it today I wondered why > you couldn't grab the column and re-size it (until I realised that you have > to have the headers set - which I didn't want). > > Anway,main point is it should be fixable. > > Regards > > Richard > OK, I fixed the crash in the revision 1299 & 1300. Curiously, the gb.gtk correctly raises the "Stack Overflow" error (you resize the column inside the ColumnResize event handler), whereas the gb.qt component handles that quietly. Maybe the underlying QT widget internally merges its column resize events, I don't know. -- Benoit Minisini From gambas at ...1... Mon Apr 7 22:37:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Apr 2008 22:37:10 +0200 Subject: [Gambas-user] Need help with resizing Picutre contained by a resizable scrollview In-Reply-To: References: Message-ID: <200804072237.10380.gambas@...1...> On dimanche 6 avril 2008, B. Jack wrote: > I am having trouble with resizing images to resized parents because the > image size units are not the same as the window/form size units. What are you talking about? Everything is in pixels. Or maybe you want to talk about the fact that control dimensions are, by default, multiples of Desktop.Scale and not absolute pixels values? If you don't want this behaviour in a specific form, you just have to change the "(Scaled)" property. > > I have a form with various V-Slide and H-Slide partitioned child objects. > The image preview pane is a child of a scrollview (so large images may be > panned). This scrollview is ultimately a child of one of the > VSliders/HSliders on the form. > > What I need to do is have a Picture within the scrollview that centers any > image smaller than the client area after any Arrange activity. For any > image larger than the client area the Picture object is maximized to the > image size so the ScrollView will make the image pannable. The problem > with just setting the Extend attribute is then that a larger image will be > cut off (and won't be scrollable). Trying to set the H and W (or Width and > Height) of the child Picture in an Arrange handler also doesn't seem to > work right since the unit size of the image in the Picture and the Parent > container do not correlate. > > Is the only option to set the stretch attribute and have it chunky-scaled? > Can you send your project? All that is not very clear for me... -- Benoit Minisini From gau_veldt at ...67... Tue Apr 8 00:34:24 2008 From: gau_veldt at ...67... (B. Jack) Date: Mon, 7 Apr 2008 15:34:24 -0700 Subject: [Gambas-user] Need help with resizing Picutre contained by a resizable scrollview In-Reply-To: <200804072237.10380.gambas@...1...> References: <200804072237.10380.gambas@...1...> Message-ID: Skeleton project: Form1->ScrollView1->Picture1 Set the border type of the form to resizable and set ScrollView1 Arrange=True Load an Image into Picutre1 Then what I want to do is have the size and position of Picture1 in an Arrange handler such that: when Picture1.Image.W=ScrollView1.W set Picture1.X=0 when Picture1.Image.H=ScrollView1.H set Picture1.Y=0 The idea being that when the parent of ScrollView1 (in this skeleton it is Form1) resizes I want Picutre1 to resize so the image it currently contains centers when it is smaller then the client area of ScrollView1 and moves to 0,0 when the current image is larger than the ScrollView. So from a user perspective the image in the window is centered when the image is smaller than the window and scrolls when the image is larger than the window. Problem is that code like the above is always getting the dimensions wrong setting ScrollView1.H (and W) to Picutre1.Image.H (and W) doesn't set ScrollView1 to the size of the Image in Picture1. In other words the unit for Picture1->Image.H (and W) is not the same as ScrollView1.H (and W) > On dimanche 6 avril 2008, B. Jack wrote: >> I am having trouble with resizing images to resized parents because the >> image size units are not the same as the window/form size units. > > What are you talking about? Everything is in pixels. Or maybe you want to talk > about the fact that control dimensions are, by default, multiples of > Desktop.Scale and not absolute pixels values? If you don't want this > behaviour in a specific form, you just have to change the "(Scaled)" > property. > >> >> I have a form with various V-Slide and H-Slide partitioned child objects. >> The image preview pane is a child of a scrollview (so large images may be >> panned). This scrollview is ultimately a child of one of the >> VSliders/HSliders on the form. >> >> What I need to do is have a Picture within the scrollview that centers any >> image smaller than the client area after any Arrange activity. For any >> image larger than the client area the Picture object is maximized to the >> image size so the ScrollView will make the image pannable. The problem >> with just setting the Extend attribute is then that a larger image will be >> cut off (and won't be scrollable). Trying to set the H and W (or Width and >> Height) of the child Picture in an Arrange handler also doesn't seem to >> work right since the unit size of the image in the Picture and the Parent >> container do not correlate. >> >> Is the only option to set the stretch attribute and have it chunky-scaled? >> > > Can you send your project? All that is not very clear for me... > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Find hidden words, unscramble celebrity names, or try the ultimate crossword puzzle with Live Search Games. Play now! http://g.msn.ca/ca55/212 From gau_veldt at ...67... Tue Apr 8 00:40:23 2008 From: gau_veldt at ...67... (B. Jack) Date: Mon, 7 Apr 2008 15:40:23 -0700 Subject: [Gambas-user] Need help with resizing Picutre contained by a resizable scrollview In-Reply-To: References: <200804072237.10380.gambas@...1...> Message-ID: Hotmail has a tag bug... it truncated some of my pseudocode: Then what I want to do is have the size and position of Picture1 in an Arrange handler such that: when Picture1.Image.W < ScrollView1.W move Picutre1 so that Picture1.X=Int(ScrollView.W - Picutre1.W / 2) when Picture1.Image.W>= ScrollView1.W set Picture1.X=0 when Picture1.Image.H < ScrollView1.H move Picutre1 so that Picture1.Y=Int(ScrollView.H - Picutre1.H / 2) when Picture1.Image.H>= ScrollView1.H set Picture1.Y=0 < is escaped so it doesn't truncate again ---------------------------------------- > From: gau_veldt at ...67... > To: gambas-user at lists.sourceforge.net > Date: Mon, 7 Apr 2008 15:34:24 -0700 > Subject: Re: [Gambas-user] Need help with resizing Picutre contained by a resizable scrollview > > > Skeleton project: > Form1->ScrollView1->Picture1 > Set the border type of the form to resizable and set ScrollView1 Arrange=True > Load an Image into Picutre1 > > Then what I want to do is have the size and position of Picture1 in an Arrange handler such that: > when Picture1.Image.W=ScrollView1.W set Picture1.X=0 > when Picture1.Image.H=ScrollView1.H set Picture1.Y=0 [this got truncated. see above.] > > The idea being that when the parent of ScrollView1 (in this skeleton it is Form1) resizes I want Picutre1 to resize so the image it currently contains centers when it is smaller then the client area of ScrollView1 and moves to 0,0 when the current image is larger than the ScrollView. > > So from a user perspective the image in the window is centered when the image is smaller than the window and scrolls when the image is larger than the window. > > Problem is that code like the above is always getting the dimensions wrong setting ScrollView1.H (and W) to Picutre1.Image.H (and W) doesn't set ScrollView1 to the size of the Image in Picture1. In other words the unit for Picture1->Image.H (and W) is not the same as ScrollView1.H (and W) > >> On dimanche 6 avril 2008, B. Jack wrote: >>> I am having trouble with resizing images to resized parents because the >>> image size units are not the same as the window/form size units. >> >> What are you talking about? Everything is in pixels. Or maybe you want to talk >> about the fact that control dimensions are, by default, multiples of >> Desktop.Scale and not absolute pixels values? If you don't want this >> behaviour in a specific form, you just have to change the "(Scaled)" >> property. >> >>> >>> I have a form with various V-Slide and H-Slide partitioned child objects. >>> The image preview pane is a child of a scrollview (so large images may be >>> panned). This scrollview is ultimately a child of one of the >>> VSliders/HSliders on the form. >>> >>> What I need to do is have a Picture within the scrollview that centers any >>> image smaller than the client area after any Arrange activity. For any >>> image larger than the client area the Picture object is maximized to the >>> image size so the ScrollView will make the image pannable. The problem >>> with just setting the Extend attribute is then that a larger image will be >>> cut off (and won't be scrollable). Trying to set the H and W (or Width and >>> Height) of the child Picture in an Arrange handler also doesn't seem to >>> work right since the unit size of the image in the Picture and the Parent >>> container do not correlate. >>> >>> Is the only option to set the stretch attribute and have it chunky-scaled? >>> >> >> Can you send your project? All that is not very clear for me... >> >> -- >> Benoit Minisini >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Register now and save $200. Hurry, offer ends at 11:59 p.m., >> Monday, April 7! Use priority code J8TLD2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > _________________________________________________________________ > Find hidden words, unscramble celebrity names, or try the ultimate crossword puzzle with Live Search Games. Play now! > http://g.msn.ca/ca55/212 > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Try Chicktionary, a game that tests how many words you can form from the letters given. Find this and more puzzles at Live Search Games! http://g.msn.ca/ca55/207 From gambas at ...1... Tue Apr 8 00:42:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 8 Apr 2008 00:42:27 +0200 Subject: [Gambas-user] =?iso-8859-1?q?Need_help_with_resizing_Picutre_cont?= =?iso-8859-1?q?ained_by=09a=09resizable_scrollview?= In-Reply-To: References: Message-ID: <200804080042.27465.gambas@...1...> On mardi 8 avril 2008, B. Jack wrote: > Hotmail has a tag bug... it truncated some of my pseudocode: > > Then what I want to do is have the size and position of Picture1 in an > Arrange handler such that: when Picture1.Image.W < ScrollView1.W move > Picutre1 so that Picture1.X=Int(ScrollView.W - Picutre1.W / 2) when > Picture1.Image.W>= ScrollView1.W set Picture1.X=0 > when Picture1.Image.H < ScrollView1.H move Picutre1 so that > Picture1.Y=Int(ScrollView.H - Picutre1.H / 2) when Picture1.Image.H>= > ScrollView1.H set Picture1.Y=0 > > < is escaped so it doesn't truncate again > You must use ScrollView1.ClientW and ScrollView1.ClientH to get the dimension of the contents of the ScrollView1. Otherwise you will get the border, if you defined a border of course. Regards, -- Benoit Minisini From gau_veldt at ...67... Tue Apr 8 01:17:06 2008 From: gau_veldt at ...67... (B. Jack) Date: Mon, 7 Apr 2008 16:17:06 -0700 Subject: [Gambas-user] Need help with resizing Picutre contained by a resizable scrollview In-Reply-To: <200804080042.27465.gambas@...1...> References: <200804080042.27465.gambas@...1...> Message-ID: It's off by more than a few border pixels. The code tends to end up with something around double the area than the actual image (so an image always scrolls quite a bit even if it should fit in the window) but it's not exactly double and the difference changes if I load the project on different machines running the IDE (I'm thinking different X Windows DPI settings or something is going on and changing the units). > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Tue, 8 Apr 2008 00:42:27 +0200 > Subject: Re: [Gambas-user] Need help with resizing Picutre contained by a resizable scrollview > > On mardi 8 avril 2008, B. Jack wrote: >> Hotmail has a tag bug... it truncated some of my pseudocode: >> >> Then what I want to do is have the size and position of Picture1 in an >> Arrange handler such that: when Picture1.Image.W < ScrollView1.W move >> Picutre1 so that Picture1.X=Int(ScrollView.W - Picutre1.W / 2) when >> Picture1.Image.W>= ScrollView1.W set Picture1.X=0 >> when Picture1.Image.H < ScrollView1.H move Picutre1 so that >> Picture1.Y=Int(ScrollView.H - Picutre1.H / 2) when Picture1.Image.H>= >> ScrollView1.H set Picture1.Y=0 >> >> < is escaped so it doesn't truncate again >> > > You must use ScrollView1.ClientW and ScrollView1.ClientH to get the dimension > of the contents of the ScrollView1. Otherwise you will get the border, if you > defined a border of course. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Try Chicktionary, a game that tests how many words you can form from the letters given. Find this and more puzzles at Live Search Games! http://g.msn.ca/ca55/207 From rterry at ...1822... Mon Apr 7 00:10:08 2008 From: rterry at ...1822... (richard terry) Date: Mon, 7 Apr 2008 08:10:08 +1000 Subject: [Gambas-user] Finding a bit of text in the console output In-Reply-To: <200804052051.13974.gambas@...1...> References: <200804051153.47470.rterry@...1822...> <200804052051.13974.gambas@...1...> Message-ID: <200804070810.08839.rterry@...1822...> On Sun, 6 Apr 2008 04:51:13 am Benoit Minisini wrote: > On samedi 5 avril 2008, richard terry wrote: > > I suspect this is just because I'm not using the IDE and debugging > > properly, but I'll ask anyway. > > > > I often put print statement in my code, and where in the middle of a loop > > can get quite a large output in the consol, so it can be hard to find > > what I've been looking for (especially if say printing out a large sQL). > > > > Wondered if the consol could have a search option. > > > > Probably this means I need a tutorial in how to use debugging in Gambas, > > which I've not yet got into. > > > > Anyone give a few pointers? > > > > Regards and thanks in anticipation. > > > > Richard > > I added a little search box in the console toolbar. Look at revision 1296 > or 1297. > > Regards, Ah, cool thanks, just compiled 1298. BTW I've found another Signal 11 bug arround arrays, not isolated it exactly but will forward a project when I can do so. Richard From rterry at ...1822... Mon Apr 7 00:23:42 2008 From: rterry at ...1822... (richard terry) Date: Mon, 7 Apr 2008 08:23:42 +1000 Subject: [Gambas-user] IDE not updating class members when changed (2.99 Build 1291) In-Reply-To: <200804051525.04861.ronstk@...239...> References: <200804051312.35224.rterry@...1822...> <200804051525.04861.ronstk@...239...> Message-ID: <200804070823.43015.rterry@...1822...> On Sun, 6 Apr 2008 12:25:04 am Ron Onstenk wrote: Thanks Ron, I"m sure you are correct - the way I've structured that didn't sit comfortably with me as I thought it was wrong, but as I'm still trying to come to terms with these programming concepts I didn't quite know where to head. I can't tell you how much really appreciate this post and the effort you took to reply and point this out to me when you could have left me in my ignorance - that's the essence of unselfishly extending a helping hand to others. I spend a staggering amount of time organising educational talks for all the GP's in my area, and in a way, receiving posts like yours is a payback - I like the "pay it forward concept" (in case you didn't see the movie). I will take it home tonight and digest it and re-think the design. In another area, I think I understand collections now, but am struggling to come to terms with arrays/multi-deminsional arrays, and those basic AND/OR/NOT's etc. May post a help request separatel to the list. Regards Richard > On Saturday 05 April 2008 04:12, richard terry wrote: > > Then I have another subclass which inherits cDRug, ?which again I've > > simplifed and removed many of its members, ?but say: > > > > cPrescriptionItem: > > ===================================== > > Inherits cDrug ' the drug and > > Public start_date As Date ? ? ? ? ? ?' date the drug started > > Public directions As String ? ? ? ? ?' directions as text eg 1 mane ? > > etc > > ===================================== > > Extend the cDrug with start_date and directions. > > > ie the tree on the side bar shows (nothis: > > > > cDrug > > ????????cPrescription > > cPack > > cProductDetails > > Here I belive you made a mistake. > cPrescriptionItem is here declared as cDrug with additional properties > as date and etc. > > In fact a cPrescriptionItem is a standalone object containing a cDrug > under patients conditions and should definied as IMHO as: > > cPrescriptionItem: > ===================================== > Publuc medicine as cDrug ' wich drug to use > Public start_date As Date ' date the drug started > Public directions As String ' directions as text eg 1 mane > etc > ===================================== > Use the 'medicine' from '1-april-2008' for '2 weeks, 1 tablet each day'. > > This is a binding of a Drug with usage dates and etc > instead of expanding the drug class related information > with end-users related information. > > > The above in case the cPrescriptionItem is the item(drug) information > as recipe given by the doctor is the one for the end user :=) > > > > If the cPrescriptionItem contains the general rules/conditions on how to > use the drug and other drug related information it would be best to include > it directly in cDrug because it belongs to the cDrug as fixed information > about it (usage/time etc). > > Just my 2 euro-cents. > > Ron > > PS: > With interest and enjoy following your development path and questions. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java >one _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1822... Sat Apr 5 14:28:37 2008 From: rterry at ...1822... (richard terry) Date: Sat, 5 Apr 2008 23:28:37 +1100 Subject: [Gambas-user] Split and escape characters Message-ID: <200804052328.37480.rterry@...1822...> "Escape is an escape character. Any separator characters enclosed between two escape characters are ignored in the splitting process. If Escape contains two characters, then the first is the starting escape character, and the second the ending one. " So says the Docs, escape is even underlined. For a dummy line me What are escape characters? (I mean not just what they do, but can someone list them, show an example) Thanks. From ariefbayu at ...626... Tue Apr 8 09:01:03 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Tue, 8 Apr 2008 14:01:03 +0700 Subject: [Gambas-user] Iterating through a class In-Reply-To: <200804051633.52962.rterry@...1822...> References: <200803301326.39899.rterry@...1822...> <200803301532.48623.gambas@...1...> <200804051633.52962.rterry@...1822...> Message-ID: <976ad9050804080001x4a7ccddfq46a7f2ef47e80873@...627...> try this: Dim hClass As Class = Class.Load("Class1") On Sat, Apr 5, 2008 at 12:33 PM, richard terry wrote: > On Mon, 31 Mar 2008 12:32:48 am Benoit Minisini wrote: > > On dimanche 30 mars 2008, richard terry wrote: > > > Is it possible to interact through a class in code > > > eg cMyclass > > > public sWhatever as string > > > public sNextThing as string > > > public bSomething as boolean. > > > > > > ie can you somehow printout the values contained in a class without > > > specifically addressing them by name. > > > > > > Maybe a stupid question. > > > > > > Regards > > > > > > Richard T > > > > You can browse the public symbols of a class. Not the private ones, as > they > > do not exist anymore once the program is compiled, except for the > debugger. > > > > To do that: > > > > DIM hObject AS Object = ... ' <- Your cMyClass instance > > DIM hClass AS Class = Class["cMyClass"] > > > > FOR EACH SymbolName IN hClass.Symbols > > WITH hClass[SymbolName] > > IF .Kind = Class.Variable THEN > > PRINT .Name;; Object.GetProperty(hObject, .Name) > > ENDIF > > END WITH > > NEXT > > > > I think that works. Otherwise you will tell me... > > Finally got around to trying this with no luck. AS a simple example I put > a > button on the form and intended to load the names into a list (project > supplied) > > There is no reference what SymbolName should be set to amongst other > things. I > tried: > > > Public myclass As Class1 > Public Sub form_Open() > > myclass = New Class1 > > End > Public Sub Button1_Click() > > Dim SymbolName As String '???? > Dim hObject As Object = myclass > Dim hClass As Class = Class["Class1"] (dies here complaining it is not an > object) > > > For Each SymbolName In hClass.Symbols > With hClass[SymbolName] > If .Kind = Class.Variable Then > Print .Name;; Object.GetProperty(hObject, .Name) > Endif > End With > Next > > End > > Any help appreciated. > > Richard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ -------------- next part -------------- A non-text attachment was scrubbed... Name: classit-0.0.1.tar.gz Type: application/x-gzip Size: 8264 bytes Desc: not available URL: From maximvonk at ...626... Tue Apr 8 09:53:15 2008 From: maximvonk at ...626... (Maximillian Von Kloisterheim) Date: Tue, 08 Apr 2008 08:53:15 +0100 Subject: [Gambas-user] Split and escape characters In-Reply-To: <200804052328.37480.rterry@...1822...> References: <200804052328.37480.rterry@...1822...> Message-ID: <47FB246B.6000802@...626...> richard terry wrote: > "Escape is an escape character. Any separator characters enclosed between two > escape characters are ignored in the splitting process. If Escape contains > two characters, then the first is the starting escape character, and the > second the ending one. " > > So says the Docs, escape is even underlined. > > For a dummy line me What are escape characters? (I mean not just what they do, > but can someone list them, show an example) > > > Thanks. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Hey Richard - Try this: Dim SPL as String[] Dim MSG as string MSG = "This Line,Is Split at,The Commas" SPL = Split(MSG, ",") You can now read the contents of SPL[0] etc The comma is used as an escape char in this case, although it can be quite a few other symbols. Be careful though, because not all of the symbols you can type can be used it seems, but # @ ~ ^ all seem to work. Regards Max From rterry at ...1822... Mon Apr 7 00:14:28 2008 From: rterry at ...1822... (richard terry) Date: Mon, 7 Apr 2008 08:14:28 +1000 Subject: [Gambas-user] Getting wrong text item from listtview In-Reply-To: <16529593.post@...1379...> References: <16529593.post@...1379...> Message-ID: <200804070814.28546.rterry@...1822...> On Mon, 7 Apr 2008 06:46:18 am jbskaggs wrote: > I dont know why i keep having new listview bugs pop up. But this time I > keep getting the firstitem's text in a listviewreference that everywhere > else is pointing to the right listview item. > > listview1_click() points and displays the right listview.item text > then when it goes to listview2_click is references the right item on > listview one > then when I click my listview2menu to edit a text file it edits the file > and saves with the right path (listview1.item.text > &/listview2.item.text&/"filename.txt" > > but when I goto edit same file it always calls the first listview1.item in > the path and can't find the file. I have scoured the code to find where I > am reassigning the variable or moving the cursor and I am not finding it. > > Is there a trick to finding the bug? > > JB Skaggs Don't forget to always do a movecurrent before you read the value of the text. Perhaps that will help. Did you do that. I got caught quite a few times till I was meticulous about it. BTW contrary to what someone said on a previous post (I think, apologies to the writer if my memory is wrong) , the _Selected and _Click events do different thinks. If you move up and down a list the _Selected event always fires but the Click doesn't. You can move your internal cursor to the .movecurrent during the _selected event, that way if the user does click on it, it will get the correct value. Hope this isnt too confusing. Richard Richard From Mike at ...680... Tue Apr 8 13:52:11 2008 From: Mike at ...680... (Mike Keehan) Date: Tue, 08 Apr 2008 12:52:11 +0100 Subject: [Gambas-user] Split and escape characters In-Reply-To: <47FB246B.6000802@...626...> References: <200804052328.37480.rterry@...1822...> <47FB246B.6000802@...626...> Message-ID: <47FB5C6B.5060608@...680...> > richard terry wrote: >> "Escape is an escape character. Any separator characters enclosed between two >> escape characters are ignored in the splitting process. If Escape contains >> two characters, then the first is the starting escape character, and the >> second the ending one. " >> >> So says the Docs, escape is even underlined. >> >> For a dummy line me What are escape characters? (I mean not just what they do, >> but can someone list them, show an example) >> >> >> Thanks. >> > > > Hey Richard - Try this: > > Dim SPL as String[] > Dim MSG as string > > MSG = "This Line,Is Split at,The Commas" > > SPL = Split(MSG, ",") > > You can now read the contents of SPL[0] etc > > The comma is used as an escape char in this case, although it can be > quite a few other symbols. Be careful though, because not all of the > symbols you can type can be used it seems, but # @ ~ ^ all seem to work. > Er, no. Those commas are separators. An escape is given as the third parameter to Split(). You can choose what character you want as an escape. A single quote is used as an escape in this version:- Dim SPL as String[] Dim MSG as String DIM Sout as String MSG = "This Line, Is Split at, The Commas, 'except, for, this,' bit." SPL = Split(MSG, ",", "'") FOR EACH Sout in SPL PRINT Sout NEXT Should print something like - "This Line" " Is Split at" " The Commas" " except, for, this, bit." What the pair of these single quote escape characters do is to prevent any splitting occurring to the text between them. Using two escapes is similar :- Dim SPL as String[] Dim MSG as String DIM Sout as String MSG = "This Line, Is Split at, The Commas, (except, for, this,) bit." SPL = Split(MSG, ",", "()") FOR EACH Sout in SPL PRINT Sout NEXT Should print something like - "This Line" " Is Split at" " The Commas" " except, for, this, bit." Which characters you use for escapes depends on the contents of the text that you are splitting. You might not need escapes at all. Mike. From maximvonk at ...626... Tue Apr 8 16:03:32 2008 From: maximvonk at ...626... (MaxVK) Date: Tue, 8 Apr 2008 07:03:32 -0700 (PDT) Subject: [Gambas-user] Inserting an Image into the TextEdit control Message-ID: <16558741.post@...1379...> Hi, I'm having a problem inserting an image into the TextEdit control. Could someone give me an example please. Cheers Max -- View this message in context: http://www.nabble.com/Inserting-an-Image-into-the-TextEdit-control-tp16558741p16558741.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Apr 8 16:07:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 8 Apr 2008 16:07:10 +0200 Subject: [Gambas-user] Inserting an Image into the TextEdit control In-Reply-To: <16558741.post@...1379...> References: <16558741.post@...1379...> Message-ID: <200804081607.10730.gambas@...1...> On mardi 8 avril 2008, MaxVK wrote: > Hi, I'm having a problem inserting an image into the TextEdit control. > Could someone give me an example please. > > Cheers > > Max There is no official support for inserting images in a TextEdit. There was in Gambas 1, maybe it could work in Gambas 2. Regards, -- Benoit Minisini From maximvonk at ...626... Tue Apr 8 17:56:43 2008 From: maximvonk at ...626... (Maximillian Von Kloisterheim) Date: Tue, 08 Apr 2008 16:56:43 +0100 Subject: [Gambas-user] Inserting an Image into the TextEdit control In-Reply-To: <200804081607.10730.gambas@...1...> References: <16558741.post@...1379...> <200804081607.10730.gambas@...1...> Message-ID: <47FB95BB.3070507@...626...> Benoit Minisini wrote: > There is no official support for inserting images in a TextEdit. There was in > Gambas 1, maybe it could work in Gambas 2. > > Regards, > Thanks Benoit. Now I know that Iv hacked at it and made a workaround: DIM imgName AS String DIM CON AS String DIM CAN AS String 'Get the filename Dialog.Filter = ["*.jpg;*.gif;*.bmp;*.png", "Image Files"] Dialog.OpenFile() imgName = Dialog.Path IF imgName = "" THEN RETURN 'Insert this (Or any similar place holder) at the current position txt_EDIT.Insert("KIIMD") 'Collect the contents of the TextEdit control CON = txt_EDIT.Text 'Replace the place holder with the image file path CAN = Replace$(CON, "KIIMD", "") 'reset the text txt_EDIT.Text = CAN This works, apparently without causing any problems. The images are treated as text blocks, so they can be aligned etc, but I cant see a way of changing sizes or text run-arounds etc. One other thing: The HTML style format used by the TextEdit control will strip away any quote marks that might be around the image path, so there is no point in putting them in. Of course if my reckless hacking is likely to cause strange problems in some way Iv yet to find, please let me know. Regards Max From gael.lehech at ...626... Wed Apr 9 09:36:29 2008 From: gael.lehech at ...626... (=?ISO-8859-1?Q?Ga=EBl_Le_Hec'H?=) Date: Wed, 9 Apr 2008 09:36:29 +0200 Subject: [Gambas-user] Landscape PDF cutted in PDFViewer example Message-ID: hi, I try to view PDF document in landscape mode but it is cutted as if it was a portrait document. I put enclose a PDF if somebody can test it. I tested with pdftoppm tool (from poppler) and the picture extracted is correct. PS je n'ai mis que 2 folio ;-) -------------- next part -------------- A non-text attachment was scrubbed... Name: DOSSIER EXEMPLE.pdf Type: application/pdf Size: 26494 bytes Desc: not available URL: From gambas at ...1... Wed Apr 9 09:38:50 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 9 Apr 2008 09:38:50 +0200 Subject: [Gambas-user] Landscape PDF cutted in PDFViewer example In-Reply-To: References: Message-ID: <200804090938.50430.gambas@...1...> On mercredi 9 avril 2008, Ga?l Le Hec'H wrote: > hi, > I try to view PDF document in landscape mode but it is cutted as if it was > a portrait document. How did you view your PDF document? Please provide some details. -- Benoit Minisini From gael.lehech at ...626... Wed Apr 9 10:21:49 2008 From: gael.lehech at ...626... (=?ISO-8859-1?Q?Ga=EBl_Le_Hec'H?=) Date: Wed, 9 Apr 2008 10:21:49 +0200 Subject: [Gambas-user] Landscape PDF cutted in PDFViewer example In-Reply-To: <200804090938.50430.gambas@...1...> References: <200804090938.50430.gambas@...1...> Message-ID: The PDF can be viewed with xpdf 3.02, pdftoppm from poppler tools extract correctly the page, acrobat reader 5.0 to 8 on windows, evince ... 2008/4/9, Benoit Minisini : > > On mercredi 9 avril 2008, Ga?l Le Hec'H wrote: > > hi, > > I try to view PDF document in landscape mode but it is cutted as if it > was > > a portrait document. > > > How did you view your PDF document? Please provide some details. > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gael.lehech at ...626... Wed Apr 9 10:23:18 2008 From: gael.lehech at ...626... (=?ISO-8859-1?Q?Ga=EBl_Le_Hec'H?=) Date: Wed, 9 Apr 2008 10:23:18 +0200 Subject: [Gambas-user] Landscape PDF cutted in PDFViewer example In-Reply-To: References: <200804090938.50430.gambas@...1...> Message-ID: I tried also with PDFviewer example with Gambas 2.0 and 2.4 2008/4/9, Ga?l Le Hec'H : > > The PDF can be viewed with xpdf 3.02, pdftoppm from poppler tools extract > correctly the page, acrobat reader 5.0 to 8 on windows, evince ... > > 2008/4/9, Benoit Minisini : > > > > On mercredi 9 avril 2008, Ga?l Le Hec'H wrote: > > > hi, > > > I try to view PDF document in landscape mode but it is cutted as if it > > was > > > a portrait document. > > > > > > How did you view your PDF document? Please provide some details. > > > > -- > > Benoit Minisini > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > From demosthenesk at ...626... Wed Apr 9 11:10:42 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 9 Apr 2008 12:10:42 +0300 Subject: [Gambas-user] How to write code for form menus ? Message-ID: Hi to all, I have some difficulties with form menus. I created a menu with Menu Editor in FMain, called mnuMenu1 What code i must write for click event of this menu? when i click the menu from form design it goes to code editor but there is no SUB for mnuMenu1 i tried to write the following but does not work. PUBLIC SUB mnuMenu1_Click() message("menu click") END I use Gambas2-2.4.0 From peter.talken at ...1879... Wed Apr 9 12:11:09 2008 From: peter.talken at ...1879... (Peter Landgren) Date: Wed, 9 Apr 2008 12:11:09 +0200 Subject: [Gambas-user] How to write code for form menus ? In-Reply-To: References: Message-ID: <200804091211.09597.peter.talken@...1879...> Look nin the atteched project. It's in Swedish, but I think you can understand it. /Peter > Hi to all, > > I have some difficulties with form menus. > > I created a menu with Menu Editor in FMain, called mnuMenu1 > > What code i must write for click event of this menu? > > when i click the menu from form design it goes to code editor but > there is no SUB for > > mnuMenu1 > > i tried to write the following but does not work. > > PUBLIC SUB mnuMenu1_Click() > > message("menu click") > > END > > I use Gambas2-2.4.0 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java >one _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Peter Landgren Talken Hagen 671 94 Brunskog SWEDEN 0570-530 21 070-635 4719 peter.talken at ...1879... skype:pgl4820.2 -------------- next part -------------- A non-text attachment was scrubbed... Name: MenuExample.tar.bz2 Type: application/x-tbz Size: 1964 bytes Desc: not available URL: From demosthenesk at ...626... Wed Apr 9 13:58:20 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 9 Apr 2008 14:58:20 +0300 Subject: [Gambas-user] How to write code for form menus ? In-Reply-To: <200804091211.09597.peter.talken@...1879...> References: <200804091211.09597.peter.talken@...1879...> Message-ID: ok i will check out. Thanks very much. On 4/9/08, Peter Landgren wrote: > Look nin the atteched project. > It's in Swedish, but I think you can understand it. > > /Peter > > > Hi to all, > > > > I have some difficulties with form menus. > > > > I created a menu with Menu Editor in FMain, called mnuMenu1 > > > > What code i must write for click event of this menu? > > > > when i click the menu from form design it goes to code editor but > > there is no SUB for > > > > mnuMenu1 > > > > i tried to write the following but does not work. > > > > PUBLIC SUB mnuMenu1_Click() > > > > message("menu click") > > > > END > > > > I use Gambas2-2.4.0 > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java > >one _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Peter Landgren > Talken Hagen > 671 94 Brunskog > SWEDEN > > 0570-530 21 > 070-635 4719 > peter.talken at ...1879... > skype:pgl4820.2 > -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From demosthenesk at ...626... Wed Apr 9 14:32:10 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 9 Apr 2008 15:32:10 +0300 Subject: [Gambas-user] How to write code for form menus ? In-Reply-To: References: <200804091211.09597.peter.talken@...1879...> Message-ID: Ok, i saw the example application. But, actually i wanted to be possible to click the first menu and not use it as parent for a popup up sub menu. i see that this is not possible, i will use a button instead. Thanks for your help. On 4/9/08, Demosthenes Koptsis wrote: > ok i will check out. > > Thanks very much. > > On 4/9/08, Peter Landgren wrote: > > Look nin the atteched project. > > It's in Swedish, but I think you can understand it. > > > > /Peter > > > > > Hi to all, > > > > > > I have some difficulties with form menus. > > > > > > I created a menu with Menu Editor in FMain, called mnuMenu1 > > > > > > What code i must write for click event of this menu? > > > > > > when i click the menu from form design it goes to code editor but > > > there is no SUB for > > > > > > mnuMenu1 > > > > > > i tried to write the following but does not work. > > > > > > PUBLIC SUB mnuMenu1_Click() > > > > > > message("menu click") > > > > > > END > > > > > > I use Gambas2-2.4.0 > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > > Don't miss this year's exciting event. There's still time to save $100. > > > Use priority code J8TL2D2. > > > > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java > > >one _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > -- > > Peter Landgren > > Talken Hagen > > 671 94 Brunskog > > SWEDEN > > > > 0570-530 21 > > 070-635 4719 > > peter.talken at ...1879... > > skype:pgl4820.2 > > > > > -- > > ???? ???? ?? ?????!!! > > Regards, > > Demosthenes Koptsis > -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From pinozollo at ...626... Wed Apr 9 16:48:04 2008 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 9 Apr 2008 10:48:04 -0400 Subject: [Gambas-user] SUB in background Message-ID: <200804091048.07211.pinozollo@...626...> Hi everybody. Is there a way to call a SUB in background ? In my applications, from time to time the user runs a task which consists in filling a file with informations contained in the database. This task may take for 3 to 5 minutes. During this time all the windows are frozen and the user con not do anything but waiting. During this time only th ProgressBar moves, and not continuously. In a multitasking environment there should be a way to keep working while a low priority task is in execution. Thanks Pino From pinozollo at ...626... Wed Apr 9 16:58:22 2008 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 9 Apr 2008 10:58:22 -0400 Subject: [Gambas-user] Libraries for 2.4.1 Message-ID: <200804091058.25165.pinozollo@...626...> I am still tying to compile Gambas2 2.4.1 .... ./configure complains that can not find : libintl.so libiconv.so and libqte-mt.so I am using Debian 4.0 r3 On the Debian site I could not find any of these, except /usr/lib/readable_libintl.so in the package gettext (which is already installed on my system) Any idea ? Ciao Pino From charles.trois at ...1661... Wed Apr 9 17:05:42 2008 From: charles.trois at ...1661... (Charles Trois) Date: Wed, 09 Apr 2008 17:05:42 +0200 Subject: [Gambas-user] Gambas2-2.5.0 does not start under Ubuntu-7.10 Message-ID: <47FCDB46.2020902@...1661...> Hello! I run Ubuntu 7.10 on an Intel iMac. I have just downloaded the source of Gambas2-2.5.0 and compiled it in the standard way. When I try to start it by typing "gambas2" in the console, I get an error message: ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file That seems strange, as the two following files can be found: file:///usr/local/lib/gambas2/gb.form.dialog.gambas file:///usr/local/lib/gambas2/gb.form.dialog.component It seems that that bug has been reported before, but not solved. Is it a Gambas bug or an Ubuntu bug? In either case, I would be glad if someone got interested and came forward with a solution. Cheers. Charles From andrew.james.barr at ...626... Wed Apr 9 17:32:04 2008 From: andrew.james.barr at ...626... (Andrew Barr) Date: Wed, 9 Apr 2008 11:32:04 -0400 Subject: [Gambas-user] Writing to sysfs Message-ID: <200804091132.05205.andrew.james.barr@...626...> I am writing a control panel for Thinkpad laptops that basically acts as a graphical front end to the tp_smapi driver. It allows the user to display information about installed batteries and set some vendor-specific settings, such as threshold percentages to start/stop charging at. To do this, the program must read and write to nodes in sysfs. I have had no problem reading from sysfs using the OPEN and LINE INPUT statements, but I am encountering an invalid argument error when using OPEN and WRITE or PRINT to write the user's preferences to sysfs. Normally, this sort of thing is done by way of the 'echo' command, for example: # echo 0 > /sys/devices/platform/smapi/BAT0/force_discharge would disable forced discharging of the battery. Permissions are correct for the user that the GUI program is running under, and I can confirm by use of the '-n' switch to echo that the carriage return being there or not makes no difference to either Gambas or the sysfs interface. Ideas, anyone? -- Andrew Barr "Come ride with me, through the veils of history. I'll show you how God falls asleep on the job." --Muse, "Knights of Cydonia" From gambas at ...1... Wed Apr 9 17:39:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 9 Apr 2008 17:39:53 +0200 Subject: [Gambas-user] Libraries for 2.4.1 In-Reply-To: <200804091058.25165.pinozollo@...626...> References: <200804091058.25165.pinozollo@...626...> Message-ID: <200804091739.53449.gambas@...1...> On mercredi 9 avril 2008, Pino Zollo wrote: > I am still tying to compile Gambas2 2.4.1 .... > ./configure complains that can not find : > > libintl.so > libiconv.so > and > libqte-mt.so > > I am using Debian 4.0 r3 > > On the Debian site I could not find any of these, > except /usr/lib/readable_libintl.so in the package gettext (which is > already installed on my system) > > Any idea ? > > Ciao > > Pino > On my Mandriva, libiconv.so does not exist as its contents are already located inside the system C library. But not libintl.so: so you must install another development package. As for libqte-mt.so, it is not important if you don't want to develop with QT/Embedded for embedded platforms. Regards, -- Benoit Minisini From pinozollo at ...626... Wed Apr 9 17:49:42 2008 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 9 Apr 2008 11:49:42 -0400 Subject: [Gambas-user] not enough arguments Message-ID: <200804091149.46095.pinozollo@...626...> I have this PUBLIC SUB in a FQSOList.class which performs its tasks properly when the button is clicked. PUBLIC SUB ButtonLast_Click() DIM qso_n AS String RefreshTitle() invio = FALSE WriteStatistics() ...... ...... etc. etc. From gambas.fr at ...626... Wed Apr 9 19:15:30 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 9 Apr 2008 19:15:30 +0200 Subject: [Gambas-user] Gambas2-2.5.0 does not start under Ubuntu-7.10 In-Reply-To: <47FCDB46.2020902@...1661...> References: <47FCDB46.2020902@...1661...> Message-ID: <6324a42a0804091015t3664d22k29cbc1cb40bef26e@...627...> seem to be an ubuntu packaging bug ! 2008/4/9, Charles Trois : > > Hello! > > I run Ubuntu 7.10 on an Intel iMac. > > I have just downloaded the source of Gambas2-2.5.0 and compiled it in > the standard way. > > When I try to start it by typing "gambas2" in the console, I get an > error message: > > ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library > file > > That seems strange, as the two following files can be found: > > file:///usr/local/lib/gambas2/gb.form.dialog.gambas > > file:///usr/local/lib/gambas2/gb.form.dialog.component > > It seems that that bug has been reported before, but not solved. Is it a > Gambas bug or an Ubuntu bug? In either case, I would be glad if someone > got interested and came forward with a solution. > > Cheers. > > Charles > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Wed Apr 9 19:47:14 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 9 Apr 2008 13:47:14 -0400 Subject: [Gambas-user] Writing to sysfs In-Reply-To: <200804091132.05205.andrew.james.barr@...626...> References: <200804091132.05205.andrew.james.barr@...626...> Message-ID: <200804091347.14978.sourceforge-raindog2@...94...> On Wednesday 09 April 2008 11:32, Andrew Barr wrote: > Normally, this sort of thing is > done by way of the 'echo' command, for example: > # echo 0 > /sys/devices/platform/smapi/BAT0/force_discharge > would disable forced discharging of the battery. > Ideas, anyone? Not to be flip, but have you tried SHELL "echo 0 > /sys/devices/platform/smapi/BAT0/force_discharge" ? Maybe Gambas is trying to write to the file on too low a level for the sysfs to be able to deal with it. I've also gotten "Invalid argument" when trying to read from /dev nodes, but I think Benoit has already fixed that in recent builds. You could try running the echo statement and then the pure-Gambas equivalent (write a command-line program to recreate that echo statement, and nothing else) both under strace and see if the system calls are different, or in a different order. But personally I would just shell out to echo, because this is Linux. Rob From jbskaggs at ...1871... Wed Apr 9 21:17:20 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Wed, 9 Apr 2008 12:17:20 -0700 (PDT) Subject: [Gambas-user] Help getting error I cant find why Message-ID: <16594566.post@...1379...> In my program I have a simple rnd functions There are five of them. Each are nearly identical excet the fifth which gives an error: http://www.nabble.com/file/p16594566/Screenshot-2.png Screenshot-2.png This DOES NOT work: 'random lastname DIM bbb AS Integer DIM lastname AS Integer lastname = Rnd(900) bbb = 0 IF lastname = 0 THEN txtLastname.text = "Ashbrow" bbb += 1 IF lastname = bbb THEN txtLastname.text = "Agberg" bbb += 1 IF lastname = bbb THEN txtLastname.text = "Aginstoke" bbb += 1 and so on till all the list is checked But this does work: 'random female name DIM aaa AS Integer DIM firstname AS Integer firstname = Rnd(928) aaa = 0 IF firstname = 0 THEN txtMidname.text = "Abrielle" aaa += 1 IF firstname = aaa THEN txtMidname.text = "Abra" aaa += 1 IF firstname = aaa THEN txtMidname.text = "Abree" aaa += 1 IF firstname = aaa THEN txtMidname.text = "Abri" aaa += 1 IF firstname = aaa THEN txtMidname.text = "Abriana" aaa += 1 IF firstname = aaa THEN txtMidname.text = "Abrianna" aaa += 1 IF firstname = aaa THEN txtMidname.text = "Abrielle" aaa += 1 and so on till checked. I know what function is having error but I don't know what item in function is causing the error. Please help. JB Skaggs -- View this message in context: http://www.nabble.com/Help-getting-error-I-cant-find-why-tp16594566p16594566.html Sent from the gambas-user mailing list archive at Nabble.com. From jbskaggs at ...1871... Wed Apr 9 21:46:34 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Wed, 9 Apr 2008 12:46:34 -0700 (PDT) Subject: [Gambas-user] Help getting error I cant find why In-Reply-To: <16594566.post@...1379...> References: <16594566.post@...1379...> Message-ID: <16595130.post@...1379...> Is there a limitation to the number of lines that Gambas can run in a class? This class has nearly 10000 lines when all of the items are present. JB SKaggs jbskaggs wrote: > > In my program I have a simple rnd functions There are five of them. Each > are nearly identical excet the fifth which gives an error: > > http://www.nabble.com/file/p16594566/Screenshot-2.png Screenshot-2.png > > > > > This DOES NOT work: > > > 'random lastname > DIM bbb AS Integer > DIM lastname AS Integer > > lastname = Rnd(900) > bbb = 0 > > IF lastname = 0 THEN txtLastname.text = "Ashbrow" > bbb += 1 > IF lastname = bbb THEN txtLastname.text = "Agberg" > bbb += 1 > IF lastname = bbb THEN txtLastname.text = "Aginstoke" > bbb += 1 > and so on till all the list is checked > > > > > > But this does work: > > 'random female name > DIM aaa AS Integer > DIM firstname AS Integer > > firstname = Rnd(928) > > aaa = 0 > IF firstname = 0 THEN txtMidname.text = "Abrielle" > aaa += 1 > IF firstname = aaa THEN txtMidname.text = "Abra" > aaa += 1 > IF firstname = aaa THEN txtMidname.text = "Abree" > aaa += 1 > IF firstname = aaa THEN txtMidname.text = "Abri" > aaa += 1 > IF firstname = aaa THEN txtMidname.text = "Abriana" > aaa += 1 > IF firstname = aaa THEN txtMidname.text = "Abrianna" > aaa += 1 > IF firstname = aaa THEN txtMidname.text = "Abrielle" > aaa += 1 > > and so on till checked. > > I know what function is having error but I don't know what item in > function is causing the error. > > Please help. > > JB Skaggs > -- View this message in context: http://www.nabble.com/Help-getting-error-I-cant-find-why-tp16594566p16595130.html Sent from the gambas-user mailing list archive at Nabble.com. From sourceforge-raindog2 at ...94... Wed Apr 9 21:55:06 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 9 Apr 2008 15:55:06 -0400 Subject: [Gambas-user] Help getting error I cant find why In-Reply-To: <16595130.post@...1379...> References: <16594566.post@...1379...> <16595130.post@...1379...> Message-ID: <200804091555.07237.sourceforge-raindog2@...94...> On Wednesday 09 April 2008 15:46, jbskaggs wrote: > Is there a limitation to the number of lines that Gambas can run in > a class? This class has nearly 10000 lines when all of the items > are present. Is there a reason you're hardcoding all these names into a class? You could just put them into a text file, read them in with File.Load, split on "\n" into an array, and use the random number as an index into that array rather than doing thousands of comparisons. Rob From sourceforge-raindog2 at ...94... Wed Apr 9 22:07:47 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 9 Apr 2008 16:07:47 -0400 Subject: [Gambas-user] Help getting error I cant find why In-Reply-To: <16595130.post@...1379...> References: <16594566.post@...1379...> <16595130.post@...1379...> Message-ID: <200804091607.47914.sourceforge-raindog2@...94...> On Wednesday 09 April 2008 15:46, jbskaggs wrote: > This class has nearly 10000 lines when all of the items > are present. As for this possible limitation of Gambas, I just created a class which was nothing but 26,000 PRINT statements in a _new sub (about 1.4MB of source in one file), and instantiating that class whether inside or outside of the Gambas IDE caused a SIGSEGV before the 9,763rd PRINT statement. So something's going on there. Rob From jbskaggs at ...1871... Wed Apr 9 22:28:20 2008 From: jbskaggs at ...1871... (skaggs) Date: Wed, 09 Apr 2008 15:28:20 -0500 Subject: [Gambas-user] Help getting error I cant find why In-Reply-To: <200804091555.07237.sourceforge-raindog2@...94...> References: <16594566.post@...1379...> <16595130.post@...1379...> <200804091555.07237.sourceforge-raindog2@...94...> Message-ID: <1207772900.7464.3.camel@...1876...> I had written this before in another program and was just reusing the code. And did not feel like going back and rewriting it all again. Later on I will probably change it. JB SKaggs On Wed, 2008-04-09 at 15:55 -0400, Rob wrote: > On Wednesday 09 April 2008 15:46, jbskaggs wrote: > > Is there a limitation to the number of lines that Gambas can run in > > a class? This class has nearly 10000 lines when all of the items > > are present. > > Is there a reason you're hardcoding all these names into a class? You > could just put them into a text file, read them in with File.Load, > split on "\n" into an array, and use the random number as an index > into that array rather than doing thousands of comparisons. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Wed Apr 9 23:17:49 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 9 Apr 2008 23:17:49 +0200 Subject: [Gambas-user] Writing to sysfs In-Reply-To: <200804091132.05205.andrew.james.barr@...626...> References: <200804091132.05205.andrew.james.barr@...626...> Message-ID: <200804092317.49692.gambas@...1...> On mercredi 9 avril 2008, Andrew Barr wrote: > I am writing a control panel for Thinkpad laptops that basically acts as a > graphical front end to the tp_smapi driver. It allows the user to display > information about installed batteries and set some vendor-specific > settings, such as threshold percentages to start/stop charging at. To do > this, the program must read and write to nodes in sysfs. I have had no > problem reading from sysfs using the OPEN and LINE INPUT statements, but I > am encountering an invalid argument error when using OPEN and WRITE or > PRINT to write the user's preferences to sysfs. Normally, this sort of > thing is done by way of the 'echo' command, for example: > > # echo 0 > /sys/devices/platform/smapi/BAT0/force_discharge > > would disable forced discharging of the battery. Permissions are correct > for the user that the GUI program is running under, and I can confirm by > use of the '-n' switch to echo that the carriage return being there or not > makes no difference to either Gambas or the sysfs interface. > > Ideas, anyone? Can you give the code that you use to write "0" to the sysfs node? -- Benoit Minisini From gambas at ...1... Wed Apr 9 23:18:36 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 9 Apr 2008 23:18:36 +0200 Subject: [Gambas-user] not enough arguments In-Reply-To: <200804091149.46095.pinozollo@...626...> References: <200804091149.46095.pinozollo@...626...> Message-ID: <200804092318.36272.gambas@...1...> On mercredi 9 avril 2008, Pino Zollo wrote: > I have this PUBLIC SUB in a FQSOList.class which performs its tasks > properly when the button is clicked. > > PUBLIC SUB ButtonLast_Click() > DIM qso_n AS String > RefreshTitle() > invio = FALSE > WriteStatistics() > ...... > ...... etc. etc. > > >From FMain I call it: > > FQSOList.ButtonLast_Click() > > but I get the error: " not enough arguments " > > Which arguments are needed ?? > Any idea ? > > Regards > Pino > Please provide the full source code. Regards, -- Benoit Minisini From gambas at ...1... Wed Apr 9 23:21:39 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 9 Apr 2008 23:21:39 +0200 Subject: [Gambas-user] Help getting error I cant find why In-Reply-To: <16595130.post@...1379...> References: <16594566.post@...1379...> <16595130.post@...1379...> Message-ID: <200804092321.39423.gambas@...1...> On mercredi 9 avril 2008, jbskaggs wrote: > Is there a limitation to the number of lines that Gambas can run in a > class? This class has nearly 10000 lines when all of the items are present. > > Yes there are limitations, but you should normally get an error message at compilation if they are reached, not at execution. The limit is not on the "number of lines" (the lines of code do not exist anymore once the program compiled), but on the number of strings and floating point constants in the same class. Please send your project, and I will tell you for sure. And, of course, if you have reached these limits, you did write your program in a not very clever way! :-) Regards, -- Benoit Minisini From jbskaggs at ...1871... Wed Apr 9 23:40:13 2008 From: jbskaggs at ...1871... (skaggs) Date: Wed, 09 Apr 2008 16:40:13 -0500 Subject: [Gambas-user] Help getting error I cant find why In-Reply-To: <200804092321.39423.gambas@...1...> References: <16594566.post@...1379...> <16595130.post@...1379...> <200804092321.39423.gambas@...1...> Message-ID: <1207777213.7750.3.camel@...1876...> Thanks I have already rewrote the code in a different way. But how can I write in a clever way, when I am not clever fellow? ;) JB SKaggs On Wed, 2008-04-09 at 23:21 +0200, Benoit Minisini wrote: > On mercredi 9 avril 2008, jbskaggs wrote: > > Is there a limitation to the number of lines that Gambas can run in a > > class? This class has nearly 10000 lines when all of the items are present. > > > > > > Yes there are limitations, but you should normally get an error message at > compilation if they are reached, not at execution. > > The limit is not on the "number of lines" (the lines of code do not exist > anymore once the program compiled), but on the number of strings and floating > point constants in the same class. > > Please send your project, and I will tell you for sure. > > And, of course, if you have reached these limits, you did write your program > in a not very clever way! :-) > > Regards, > From ronstk at ...239... Thu Apr 10 03:15:59 2008 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 10 Apr 2008 03:15:59 +0200 Subject: [Gambas-user] not enough arguments In-Reply-To: <200804091149.46095.pinozollo@...626...> References: <200804091149.46095.pinozollo@...626...> Message-ID: <200804100315.59793.ronstk@...239...> On Wednesday 09 April 2008 17:49, Pino Zollo wrote: > I have this PUBLIC SUB in a FQSOList.class which performs its tasks properly > when the button is clicked. > > PUBLIC SUB ButtonLast_Click() > DIM qso_n AS String > RefreshTitle() > invio = FALSE > WriteStatistics() > ...... > ...... etc. etc. > > > >From FMain I call it: > > FQSOList.ButtonLast_Click() > > but I get the error: " not enough arguments " > > Which arguments are needed ?? > Any idea ? > > Regards > Pino > -------------- I Form1: PUBLIC SUB ButtonLast_Click() DoClickCode("in-the-form") END PUBLIC SUB DoClickCode(sCaller) 'the code that should be used for the click print sCaller ... END ------------- In Form2 ... Form1.DoClickCode("from-external") ------------- The xxx_Click is a event inside the form and the nissimg argument could be the _LAST_ object as source of the xxx_Click and calling the xxx_Click from external form does not carry the correct _LAST_ object for the event. I know it is not 100% correct as told but more or less a correct (and/or) logical description of the difference during the xxx_Click() call. Ron From leemcpherson at ...626... Thu Apr 10 03:56:01 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Wed, 09 Apr 2008 21:56:01 -0400 Subject: [Gambas-user] SUB in background In-Reply-To: <200804091048.07211.pinozollo@...626...> References: <200804091048.07211.pinozollo@...626...> Message-ID: <47FD73B1.1070502@...626...> The trick is to use the command WAIT. From what I understand, this is somewhat equivalent to the Visual Basic "DoEvents". Actually, somehow I'm not using it correctly in my own code, but I'm working on it :) Do a search on both WAIT and DoEvents to learn more. -Lee Pino Zollo wrote: > Hi everybody. > Is there a way to call a SUB in background ? > > In my applications, from time to time the user runs a task which consists in > filling a file with informations contained in the database. > > This task may take for 3 to 5 minutes. > During this time all the windows are frozen and the user con not do anything > but waiting. > > During this time only th ProgressBar moves, and not continuously. > In a multitasking environment there should be a way to keep working while a > low priority task is in execution. > > Thanks > > Pino > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Thu Apr 10 04:34:01 2008 From: sbungay at ...981... (Stephen Bungay) Date: Wed, 09 Apr 2008 22:34:01 -0400 Subject: [Gambas-user] Help getting error I cant find why In-Reply-To: <1207772900.7464.3.camel@...1876...> References: <16594566.post@...1379...> <16595130.post@...1379...> <200804091555.07237.sourceforge-raindog2@...94...> <1207772900.7464.3.camel@...1876...> Message-ID: <47FD7C99.10101@...981...> Or use a MySQL table, and to heck with messing around with text files, strings, and splitting things into arrays. Generate the random number and fetch a result set from the table for the record that has the cooresponding unique ID. Steve. skaggs wrote: > I had written this before in another program and was just reusing the > code. And did not feel like going back and rewriting it all again. > Later on I will probably change it. > > > JB SKaggs > On Wed, 2008-04-09 at 15:55 -0400, Rob wrote: >> On Wednesday 09 April 2008 15:46, jbskaggs wrote: >>> Is there a limitation to the number of lines that Gambas can run in >>> a class? This class has nearly 10000 lines when all of the items >>> are present. >> Is there a reason you're hardcoding all these names into a class? You >> could just put them into a text file, read them in with File.Load, >> split on "\n" into an array, and use the random number as an index >> into that array rather than doing thousands of comparisons. >> >> Rob >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save $100. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Apr 10 09:15:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 10 Apr 2008 09:15:31 +0200 Subject: [Gambas-user] Help getting error I cant find why In-Reply-To: <200804091607.47914.sourceforge-raindog2@...94...> References: <16594566.post@...1379...> <16595130.post@...1379...> <200804091607.47914.sourceforge-raindog2@...94...> Message-ID: <200804100915.32038.gambas@...1...> On mercredi 9 avril 2008, Rob wrote: > On Wednesday 09 April 2008 15:46, jbskaggs wrote: > > This class has nearly 10000 lines when all of the items > > are present. > > As for this possible limitation of Gambas, I just created a class > which was nothing but 26,000 PRINT statements in a _new sub (about > 1.4MB of source in one file), and instantiating that class whether > inside or outside of the Gambas IDE caused a SIGSEGV before the > 9,763rd PRINT statement. So something's going on there. > > Rob > I have patched the 2.x in revision #1303, so that the compiler now detect its hard limits and raise errors if too many constants, functions, symbols... are used. Regards, -- Benoit Minisini From charles.trois at ...1661... Thu Apr 10 09:57:26 2008 From: charles.trois at ...1661... (Charles Trois) Date: Thu, 10 Apr 2008 09:57:26 +0200 Subject: [Gambas-user] Gambas2-2.5.0 does not start under Ubuntu-7.10 In-Reply-To: <6324a42a0804091015t3664d22k29cbc1cb40bef26e@...627...> References: <47FCDB46.2020902@...1661...> <6324a42a0804091015t3664d22k29cbc1cb40bef26e@...627...> Message-ID: <47FDC866.1050708@...1661...> Fabien Bodard a ?crit : > seem to be an ubuntu packaging bug ! > Could you please enlarge on your point? This was a compilation from source (an universal version), and I did not use any Ubuntu package, except to load the necessary libraries. Do you mean that one of these could be buggy? How to find out? Charles > 2008/4/9, Charles Trois : > >> Hello! >> >> I run Ubuntu 7.10 on an Intel iMac. >> >> I have just downloaded the source of Gambas2-2.5.0 and compiled it in >> the standard way. >> >> When I try to start it by typing "gambas2" in the console, I get an >> error message: >> >> ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library >> file >> >> That seems strange, as the two following files can be found: >> >> file:///usr/local/lib/gambas2/gb.form.dialog.gambas >> >> file:///usr/local/lib/gambas2/gb.form.dialog.component >> >> It seems that that bug has been reported before, but not solved. Is it a >> Gambas bug or an Ubuntu bug? In either case, I would be glad if someone >> got interested and came forward with a solution. >> >> Cheers. >> >> Charles >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save $100. >> Use priority code J8TL2D2. >> >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From rolf.frogs at ...221... Thu Apr 10 10:52:23 2008 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Thu, 10 Apr 2008 10:52:23 +0200 Subject: [Gambas-user] Writing to sysfs In-Reply-To: <200804091132.05205.andrew.james.barr@...626...> References: <200804091132.05205.andrew.james.barr@...626...> Message-ID: <200804101052.27220.rolf.frogs@...221...> Am Mittwoch, 9. April 2008 schrieb Andrew Barr: Are you allowed to do that? I.e. does the programm run with admin rights? Usually writing to sysfs entries is only allowed for the admin (root). > I am writing a control panel for Thinkpad laptops that basically acts as a > graphical front end to the tp_smapi driver. It allows the user to display > information about installed batteries and set some vendor-specific > settings, such as threshold percentages to start/stop charging at. To do > this, the program must read and write to nodes in sysfs. I have had no > problem reading from sysfs using the OPEN and LINE INPUT statements, but I > am encountering an invalid argument error when using OPEN and WRITE or > PRINT to write the user's preferences to sysfs. Normally, this sort of > thing is done by way of the 'echo' command, for example: > > # echo 0 > /sys/devices/platform/smapi/BAT0/force_discharge > > would disable forced discharging of the battery. Permissions are correct > for the user that the GUI program is running under, and I can confirm by > use of the '-n' switch to echo that the carriage return being there or not > makes no difference to either Gambas or the sysfs interface. > > Ideas, anyone? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From steven at ...1652... Thu Apr 10 13:55:07 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Thu, 10 Apr 2008 13:55:07 +0200 Subject: [Gambas-user] SUB in background In-Reply-To: <200804091048.07211.pinozollo@...626...> References: <200804091048.07211.pinozollo@...626...> Message-ID: <1207828507.7191.67.camel@...1816...> Hi, I put a timer on my form with a maximal delay (3600) . Then I attach this routine : (Tmer is a global int) PUBLIC SUB Timer1_Timer() TMer = TMer + 1 IF TMer = 20 THEN ' this to have it fire up only every 20 secs or so Do_mysub() TMer = 0 END IF END It works like a charm in the background. Steven Le mercredi 09 avril 2008 ? 10:48 -0400, Pino Zollo a ?crit : > Hi everybody. > Is there a way to call a SUB in background ? > > In my applications, from time to time the user runs a task which consists in > filling a file with informations contained in the database. > > This task may take for 3 to 5 minutes. > During this time all the windows are frozen and the user con not do anything > but waiting. > > During this time only th ProgressBar moves, and not continuously. > In a multitasking environment there should be a way to keep working while a > low priority task is in execution. > > Thanks > > Pino > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Apr 10 14:09:09 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 10 Apr 2008 14:09:09 +0200 Subject: [Gambas-user] For those who use /trunk Message-ID: <200804101409.09631.gambas@...1...> Warning! I have just uploaded a big change in the Gambas 3.0 trunk. Now, Desktop.Scale is half the default font ascent, not half the default font height. In other words, it is smaller. So all control and form dimensions are smaller in the same proportion, and need to be resized. The form editor resizes small controls automatically when it loads a Gambas 2.0 form. But bigger one must be resized by hand. That is a boring process! I did that because I noticed that the old Desktop.Scale always made buttons, textbox and combo-box either too small or too big. With this new way of calculating Desktop.Scale, I think they are correct now. Sorry for that change, but I think things are better now. I plan to change the Padding and Spacing properties too, so that they become proportional to Desktop.Scale, and not absolute anymore. Regards, -- Benoit Minisini From demosthenesk at ...626... Thu Apr 10 14:23:40 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 10 Apr 2008 15:23:40 +0300 Subject: [Gambas-user] DirView Control BUG (renaming folder) Message-ID: When i tried to rename a directory, this is forbidden as user, but DirView control after error message shows the directory renamed. i use Gambas2-2.5.0 -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From leonardo at ...1237... Thu Apr 10 16:23:39 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 10 Apr 2008 16:23:39 +0200 Subject: [Gambas-user] Gambas2-2.5.0 does not start under Ubuntu-7.10 In-Reply-To: <47FCDB46.2020902@...1661...> References: <47FCDB46.2020902@...1661...> Message-ID: <47FE22EB.20109@...1237...> Charles Trois ha scritto: > Hello! > > I run Ubuntu 7.10 on an Intel iMac. > > I have just downloaded the source of Gambas2-2.5.0 and compiled it in > the standard way. > > When I try to start it by typing "gambas2" in the console, I get an > error message: > > ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file > > That seems strange, as the two following files can be found: > > file:///usr/local/lib/gambas2/gb.form.dialog.gambas > > file:///usr/local/lib/gambas2/gb.form.dialog.component > > It seems that that bug has been reported before, but not solved. Is it a > Gambas bug or an Ubuntu bug? In either case, I would be glad if someone > got interested and came forward with a solution. > > Cheers. > > Charles > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > I have compiled Gambas from sources on at least 4 Ubuntu 7.10 installations and I've never never had any kind of problem. I suggest you to install all the dependencies that you can find here: http://gambasdoc.org/help/install/ubuntu -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From demosthenesk at ...626... Thu Apr 10 19:15:04 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 10 Apr 2008 20:15:04 +0300 Subject: [Gambas-user] su command Message-ID: Hi to all, i have a form with a button named Button1. The following code runs ok with gambas2-2.5.0 on Suse 10.2 but fails on Mandriva and PC Linux OS (Mandriva based distros). I just mention it cause may be it's a bug. Do you know anything about it? ---------------------------------------------------------- ' Gambas class file PUBLIC SUB Button1_Click() 'in order to run a su command we create a temp file named tmpFile0 in /tmp directory 'with the root password writed in it. 'Make sure that the file contains only root password without new line characters or spaces. 'local variable varCommand makes a string command DIM varCommand AS String 'here we feed the input with the content of the temp file and we send errors to /dev/null varCommand = "su -c \"mkdir /mnt/mydir\" 0/dev/null" SHELL varCommand END ---------------------------------------------------------- i send my test app to check out -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis -------------- next part -------------- A non-text attachment was scrubbed... Name: tests.rar Type: application/x-rar-compressed Size: 15292 bytes Desc: not available URL: From pinozollo at ...626... Thu Apr 10 20:15:08 2008 From: pinozollo at ...626... (Pino Zollo) Date: Thu, 10 Apr 2008 14:15:08 -0400 Subject: [Gambas-user] SUB in background In-Reply-To: <1207828507.7191.67.camel@...1816...> References: <200804091048.07211.pinozollo@...626...> <1207828507.7191.67.camel@...1816...> Message-ID: <200804101415.10843.pinozollo@...626...> Alle 07:55, gioved? 10 aprile 2008, hai scritto: > Hi, > > I put a timer on my form with a maximal delay (3600) . > Then I attach this routine : (Tmer is a global int) > > PUBLIC SUB Timer1_Timer() > TMer = TMer + 1 > IF TMer = 20 THEN ' this to have it fire up only every 20 secs or so > Do_mysub() > TMer = 0 > END IF > END > > It works like a charm in the background. > > Steven > > Le mercredi 09 avril 2008 ? 10:48 -0400, Pino Zollo a ?crit : > > Hi everybody. > > Is there a way to call a SUB in background ? > > > > In my applications, from time to time the user runs a task which consists > > in filling a file with informations contained in the database. > > > > This task may take for 3 to 5 minutes. > > During this time all the windows are frozen and the user con not do > > anything but waiting. > > > > During this time only th ProgressBar moves, and not continuously. > > In a multitasking environment there should be a way to keep working while > > a low priority task is in execution. > > > > Thanks > > > > Pino Thanks Steven, I understand that your SUB Do_mysub() is executed continuously every 20 seconds, is it ? How long does it take to execute Do_mysub() ? In may case My_sub() starts on user request. The user does it every few days. The user edits the name of the file than clicks the button GO....and waits 5 minutes without being able to enter other datas into the form until My_sub() ends its task. It seems a different scenario. Regards Pino From sourceforge-raindog2 at ...94... Thu Apr 10 20:27:31 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 10 Apr 2008 14:27:31 -0400 Subject: [Gambas-user] su command In-Reply-To: References: Message-ID: <200804101427.32004.sourceforge-raindog2@...94...> On Thursday 10 April 2008 13:15, Demosthenes Koptsis wrote: > 'in order to run a su command we create a temp file named > tmpFile0 in /tmp directory > 'with the root password writed in it. This is a really terrible idea, security-wise, and I hope you don't distribute this software too much because it will cause a race condition that would easily be exploited by malware. You should set up /etc/sudoers and use sudo. As for getting the password with "0 References: <200804091048.07211.pinozollo@...626...> <47FD73B1.1070502@...626...> Message-ID: <200804101502.09605.pinozollo@...626...> Alle 21:56, mercoled? 9 aprile 2008, hai scritto: > The trick is to use the command WAIT. From what I understand, this is > somewhat equivalent to the Visual Basic "DoEvents". Actually, somehow > I'm not using it correctly in my own code, but I'm working on it :) > > Do a search on both WAIT and DoEvents to learn more. > > -Lee > > Pino Zollo wrote: > > Hi everybody. > > Is there a way to call a SUB in background ? > > > > In my applications, from time to time the user runs a task which consists > > in filling a file with informations contained in the database. > > > > This task may take for 3 to 5 minutes. > > During this time all the windows are frozen and the user con not do > > anything but waiting. > > > > During this time only th ProgressBar moves, and not continuously. > > In a multitasking environment there should be a way to keep working while > > a low priority task is in execution. > > > > Thanks > > Thanks Lee, I did try it: I did put a WAIT without parameter, at the end of every record elaboration. There was some improvement: Now the other windows are not gray any more, the ProgressBar moves smoothly, but it is not possible yet to use the other forms, for instance to fill other datas or to click on some button... almost good ! Regards Pino From sourceforge-raindog2 at ...94... Thu Apr 10 21:18:16 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 10 Apr 2008 15:18:16 -0400 Subject: [Gambas-user] SUB in background In-Reply-To: <200804101502.09605.pinozollo@...626...> References: <200804091048.07211.pinozollo@...626...> <47FD73B1.1070502@...626...> <200804101502.09605.pinozollo@...626...> Message-ID: <200804101518.16532.sourceforge-raindog2@...94...> On Thursday 10 April 2008 15:02, Pino Zollo wrote: > Now the other windows are not gray any more, the ProgressBar moves > smoothly, but it is not possible yet to use the other forms, for > instance to fill other datas or to click on some button... Well, while each database transaction is taking place, the Gambas interpreter is doing only that, and waiting for the result. If you want the database transactions to be truly background operations, you need to write a helper program to do them, shell out to the program with READ WRITE but not WAIT, and send the data to that program in the background (which should take much less time than the entire database transaction is currently taking.) You could send the data in the form of a SQL statement per record, which would probably be easiest. You could then have the background helper program print its results after each record, which would trigger a Process_Read event in your current application so you could update whatever you have to update. If you write it without a graphical component selected, you won't even have an extra window popping up, though you could also put the progress bar in the database program so you had a visual indicator of what was going on. With the embedding control in Gambas, I think you could even have your helper program display right in the same window as your current program without making everything freeze up during its operations. This front-end/back-end structure with two processes talking asynchronously over a pipe is actually pretty common in the Linux world, and if you learn how to do it, it should help you a lot. Rob From gambas at ...1... Thu Apr 10 23:04:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 10 Apr 2008 23:04:53 +0200 Subject: [Gambas-user] DirView Control BUG (renaming folder) In-Reply-To: References: Message-ID: <200804102304.53698.gambas@...1...> On jeudi 10 avril 2008, Demosthenes Koptsis wrote: > When i tried to rename a directory, this is forbidden as user, but > DirView control after error message shows the directory renamed. > > i use Gambas2-2.5.0 This bug has been fixed in revision #1306! Regards, -- Benoit Minisini From maximvonk at ...626... Fri Apr 11 10:52:50 2008 From: maximvonk at ...626... (MaxVK) Date: Fri, 11 Apr 2008 01:52:50 -0700 (PDT) Subject: [Gambas-user] Using Classes Message-ID: <16627272.post@...1379...> Hi, Id like to get something fully straight in my mind here: I have a class that I use to manipulate a treeview and some data that is connected to each treeview item. I have used a class for this so that I can call this code from any one of several forms that use treeviews in my project without the code becoming confused about the treeview that it is working on. I call the class in the header of my forms like this: PUBLIC DoTree AS NEW clsTree I can then access the functions in the class through DoTree., but my question is, do I need to explicitly destroy this class object (DoTree) in some way to prevent it from using memory when its not in use? For example, the first form in the project uses this class, but is only actually visible for a short period, and is hidden when another form opens. Do I need to clean up the class object (Dotree) while the form is hidden to prevent it hogging memory when it is not in use. Regards Max -- View this message in context: http://www.nabble.com/Using-Classes-tp16627272p16627272.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Thu Apr 10 00:00:35 2008 From: rterry at ...1822... (richard terry) Date: Thu, 10 Apr 2008 08:00:35 +1000 Subject: [Gambas-user] not enough arguments In-Reply-To: <200804091149.46095.pinozollo@...626...> References: <200804091149.46095.pinozollo@...626...> Message-ID: <200804100800.35780.rterry@...1822...> On Thu, 10 Apr 2008 01:49:42 am Pino Zollo wrote: > I have this PUBLIC SUB in a FQSOList.class which performs its tasks > properly when the button is clicked. > > PUBLIC SUB ButtonLast_Click() > DIM qso_n AS String > RefreshTitle() > invio = FALSE > WriteStatistics() > ...... > ...... etc. etc. > > >From FMain I call it: > > FQSOList.ButtonLast_Click() > > but I get the error: " not enough arguments " > > Which arguments are needed ?? > Any idea ? Without seeing your code it is really difficult. You will probably find that either your routines RefreshTitle() or WriteStatistics() are missing an argument. Eg if your refresh title is: public sub RefreshTitle(title as string) LabelTitle.text = title end and you call the routine by RefreshTitle() Then you will get that sort of error message. Let us know if this helps. Richard > > Regards > Pino > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java >one _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From m0e.lnx at ...626... Fri Apr 11 13:50:51 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 11 Apr 2008 06:50:51 -0500 Subject: [Gambas-user] Scrolling text ... how to do in gambas Message-ID: <1f1e8c1b0804110450q57b220a3l986348eee2650685@...627...> Anyone know how to do scrolling text in gambas? I'm trying to make a window with a bit of animated text. kind of like in the "about gambas" little display from IDE From demosthenesk at ...626... Fri Apr 11 13:56:39 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 11 Apr 2008 14:56:39 +0300 Subject: [Gambas-user] su command In-Reply-To: <200804101427.32004.sourceforge-raindog2@...94...> References: <200804101427.32004.sourceforge-raindog2@...94...> Message-ID: 1) Is it good idea to add this line to sudoers? ALL ALL=(%root) NOPASSWD: /home/user/tests.gambas 2) In Madriva 2008 i can run "sudo /home/user/tests.gambas" but on Suse 10.2 i get the following error "/usr/bin/env: gbr2: No such file or directory" Is these a Suse issue or a Gambas2? Thanks in advance. On 4/10/08, Rob wrote: > On Thursday 10 April 2008 13:15, Demosthenes Koptsis wrote: > > 'in order to run a su command we create a temp file named > > tmpFile0 in /tmp directory > > 'with the root password writed in it. > > This is a really terrible idea, security-wise, and I hope you don't > distribute this software too much because it will cause a race > condition that would easily be exploited by malware. You should set > up /etc/sudoers and use sudo. > > As for getting the password with "0 implementation reads the password from stdin and Mandriva's forces > the use of a tty, which wouldn't work with redirection like that. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From rterry at ...1822... Fri Apr 11 05:21:59 2008 From: rterry at ...1822... (richard terry) Date: Fri, 11 Apr 2008 13:21:59 +1000 Subject: [Gambas-user] Select all error (2.99 build 1306) Message-ID: <200804111321.59492.rterry@...1822...> Not something you would notice all the time, but the select all dosn't always select all the code. (see the picture). It seems to depend on whether or not there is a carriage return at the end of the file, and where your cursor is positioned at the end of the file, because sometimes Select all > copy copies everything, sometimes it misses out the last line of the file. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: select_all_bug.png Type: image/png Size: 27080 bytes Desc: not available URL: From rterry at ...1822... Fri Apr 11 03:54:04 2008 From: rterry at ...1822... (richard terry) Date: Fri, 11 Apr 2008 11:54:04 +1000 Subject: [Gambas-user] Somethings happened to the search/replace combos & buttons 1306 build 2.99 Message-ID: <200804111154.04290.rterry@...1822...> The combo's now stretch out so much that the buttons for replace in subroutine/file/whole project are not visible. Regards richard From gambas at ...1... Fri Apr 11 15:19:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 11 Apr 2008 15:19:30 +0200 Subject: [Gambas-user] Somethings happened to the search/replace combos & buttons 1306 build 2.99 In-Reply-To: <200804111154.04290.rterry@...1822...> References: <200804111154.04290.rterry@...1822...> Message-ID: <200804111519.30832.gambas@...1...> On vendredi 11 avril 2008, richard terry wrote: > The combo's now stretch out so much that the buttons for replace in > subroutine/file/whole project are not visible. > > Regards > > richard > Do you have a screenshot? -- Benoit Minisini From rwatts32 at ...401... Fri Apr 11 16:17:54 2008 From: rwatts32 at ...401... (rwatts32 at ...401...) Date: Fri, 11 Apr 2008 10:17:54 -0400 Subject: [Gambas-user] Center Form Message-ID: <13417786.293021207923474781.JavaMail.root@...1885...> I was wondering if anyone knows how to center a form in Gambas. I see how to move the form according to its x and y position, but what I would like is for a form to always show up in the center of the screen in all different resolutions. Any help is appreciated. Thanks. From rospolosco at ...152... Fri Apr 11 16:31:20 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 11 Apr 2008 16:31:20 +0200 Subject: [Gambas-user] Scrolling text ... how to do in gambas In-Reply-To: <1f1e8c1b0804110450q57b220a3l986348eee2650685@...627...> References: <1f1e8c1b0804110450q57b220a3l986348eee2650685@...627...> Message-ID: <200804111631.20700.rospolosco@...152...> Alle 13:50, venerd? 11 aprile 2008, M0E Lnx ha scritto: > Anyone know how to do scrolling text in gambas? > > I'm trying to make a window with a bit of animated text. kind of like > in the "about gambas" little display from IDE > A little example attached. Stefano > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java >one _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: scroll-0.0.2.tar.gz Type: application/x-tgz Size: 3750 bytes Desc: not available URL: From rospolosco at ...152... Fri Apr 11 16:32:42 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 11 Apr 2008 16:32:42 +0200 Subject: [Gambas-user] Center Form In-Reply-To: <13417786.293021207923474781.JavaMail.root@...1885...> References: <13417786.293021207923474781.JavaMail.root@...1885...> Message-ID: <200804111632.42972.rospolosco@...152...> Alle 16:17, venerd? 11 aprile 2008, rwatts32 at ...401... ha scritto: > I was wondering if anyone knows how to center a form in Gambas. I see how > to move the form according to its x and y position, but what I would like > is for a form to always show up in the center of the screen in all > different resolutions. Any help is appreciated. Thanks. > ME.Center() or YourFormName.Center() Stefano > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java >one _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From leonardo at ...1237... Fri Apr 11 16:35:13 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 11 Apr 2008 16:35:13 +0200 Subject: [Gambas-user] Center Form In-Reply-To: <13417786.293021207923474781.JavaMail.root@...1885...> References: <13417786.293021207923474781.JavaMail.root@...1885...> Message-ID: <47FF7721.40109@...1237...> rwatts32 at ...401... ha scritto: > I was wondering if anyone knows how to center a form in Gambas. I see how to move the form according to its x and y position, but what I would like is for a form to always show up in the center of the screen in all different resolutions. Any help is appreciated. Thanks. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ME.Center -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From rterry at ...1822... Fri Apr 11 05:18:18 2008 From: rterry at ...1822... (richard terry) Date: Fri, 11 Apr 2008 13:18:18 +1000 Subject: [Gambas-user] not enough arguments In-Reply-To: <200804101237.26991.pinozollo@...626...> References: <200804091149.46095.pinozollo@...626...> <200804100800.35780.rterry@...1822...> <200804101237.26991.pinozollo@...626...> Message-ID: <200804111318.18231.rterry@...1822...> I had a little trouble building your database - see comments below, and the result of my experimentation with your problem: 1) here is your country definition, but the fields don't match for the first line in your countries.txt file. ====================================== CREATE countries ( dxcc integer, country text, deleted boolean default FALSE, continent char(2), ituz integer, cqz integer, pfx text ) "2,ABU AIL IS,Y,AS,39,21,A1" ====================================== Deleting that line does which has more fields than the table, then does work for the rest of file. 2) If you are distributing this code it would be helpful to be consistant in your nomenclature: eg: qso.txt contains in fact a database definition, not data so qsodb.txt would be more appropriate, as it wasn't obvious there were table builds in there. Having said that, yes, its a little bizaare - I get the same error message. In fact creating any routine there, including an empty one, gives the same error. I think it would be worthwhile making your project a little easier to install and then getting Benoit or something with more knowledge than I , to run it as its seems a strange message to get - makes me wonder if it is some sort of bug. Sorry can't be more help. Richard On Fri, 11 Apr 2008 02:37:25 am Pino Zollo wrote: > Alle 18:00, mercoled? 9 aprile 2008, richard terry ha scritto: > > On Thu, 10 Apr 2008 01:49:42 am Pino Zollo wrote: > > > I have this PUBLIC SUB in a FQSOList.class which performs its tasks > > > properly when the button is clicked. > > > > > > PUBLIC SUB ButtonLast_Click() > > > DIM qso_n AS String > > > RefreshTitle() > > > invio = FALSE > > > WriteStatistics() > > > ...... > > > ...... etc. etc. > > > > > > >From FMain I call it: > > > > > > FQSOList.ButtonLast_Click() > > > > > > but I get the error: " not enough arguments " > > > > > > Which arguments are needed ?? > > > Any idea ? > > > > Without seeing your code it is really difficult. > > > > You will probably find that either your routines RefreshTitle() or > > WriteStatistics() are missing an argument. > > > > Eg if your refresh title is: > > > > public sub RefreshTitle(title as string) > > LabelTitle.text = title > > end > > > > and you call the routine by > > > > RefreshTitle() > > > > Then you will get that sort of error message. > > > > Let us know if this helps. > > > > Richard > > Hi Richard, > Thanks for your help.... > > It happens that all the SUB 'PUBLIC SUB ButtonLast_Click()' > works very well when started by a click.... > > The errors is produced by FMain when tries to execute it. > Any how all the project is on my site: > > http://www.qsl.net/zp4kfx/Linux > > it is named DBLog. > To run it you need a database in PostgreSQL. > The instructions and the data to fill the tables are contained into the > subdirectory LOG. > It takes to uncomment the offending instruction in FMain which is into the > SUB PUBLIC SUB Save_Click() > > Save_Click() stores into a table of the database the datas entered into the > form. > ButtonLast_Click() refreshes the content of a table showing the last datas > entered. > > Best regards > Pino From m0e.lnx at ...626... Fri Apr 11 16:25:35 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 11 Apr 2008 09:25:35 -0500 Subject: [Gambas-user] Center Form In-Reply-To: <13417786.293021207923474781.JavaMail.root@...1885...> References: <13417786.293021207923474781.JavaMail.root@...1885...> Message-ID: <1f1e8c1b0804110725l7e577502p9609a5fc8d85b28c@...627...> on the form's Open() event add this ME.CENTER On Fri, Apr 11, 2008 at 9:17 AM, wrote: > I was wondering if anyone knows how to center a form in Gambas. I see how to move the form according to its x and y position, but what I would like is for a form to always show up in the center of the screen in all different resolutions. Any help is appreciated. Thanks. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Fri Apr 11 17:49:35 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 11 Apr 2008 10:49:35 -0500 Subject: [Gambas-user] how to do a regex in gambas? Message-ID: <1f1e8c1b0804110849t44c0eee9t70dfdc51a7c03b63@...627...> I've been wondering for a while how to do a regex in gambas... For instance, I'm trying to say something like this IF Exist("/path/to/some/dir/*.tar") THEN blah blah blah How can I accomplish that in gambas2? From sourceforge-raindog2 at ...94... Fri Apr 11 19:51:15 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 11 Apr 2008 13:51:15 -0400 Subject: [Gambas-user] how to do a regex in gambas? In-Reply-To: <1f1e8c1b0804110849t44c0eee9t70dfdc51a7c03b63@...627...> References: <1f1e8c1b0804110849t44c0eee9t70dfdc51a7c03b63@...627...> Message-ID: <200804111351.15500.sourceforge-raindog2@...94...> On Friday 11 April 2008 11:49, M0E Lnx wrote: > I've been wondering for a while how to do a regex in gambas... > For instance, I'm trying to say something like this > IF Exist("/path/to/some/dir/*.tar") THEN > blah blah blah > How can I accomplish that in gambas2? Well, you're not really looking for a regular expression (if you were, I'd suggest gb.pcre). You should be able to get by with just a wildcard. Try something like this pseudo-code: Dir("/path/to/some/dir/", "*.tar") to tmparray if tmparray.count > 0 then ' blah blah blah end if You can actually use some regular expressions in Dir() as well. Check the documentation. Rob From demosthenesk at ...626... Fri Apr 11 20:42:12 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 11 Apr 2008 21:42:12 +0300 Subject: [Gambas-user] su command In-Reply-To: References: <200804101427.32004.sourceforge-raindog2@...94...> Message-ID: Finally i found my way. i will use kdesu. On 4/11/08, Demosthenes Koptsis wrote: > 1) Is it good idea to add this line to sudoers? > > ALL ALL=(%root) NOPASSWD: /home/user/tests.gambas > > 2) In Madriva 2008 i can run > "sudo /home/user/tests.gambas" > > but on Suse 10.2 i get the following error > "/usr/bin/env: gbr2: No such file or directory" > > Is these a Suse issue or a Gambas2? > > Thanks in advance. > > > On 4/10/08, Rob wrote: > > On Thursday 10 April 2008 13:15, Demosthenes Koptsis wrote: > > > 'in order to run a su command we create a temp file named > > > tmpFile0 in /tmp directory > > > 'with the root password writed in it. > > > > This is a really terrible idea, security-wise, and I hope you don't > > distribute this software too much because it will cause a race > > condition that would easily be exploited by malware. You should set > > up /etc/sudoers and use sudo. > > > > As for getting the password with "0 > implementation reads the password from stdin and Mandriva's forces > > the use of a tty, which wouldn't work with redirection like that. > > > > Rob > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > -- > > ???? ???? ?? ?????!!! > > Regards, > > Demosthenes Koptsis > -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From rwatts32 at ...401... Fri Apr 11 23:09:11 2008 From: rwatts32 at ...401... (rwatts32 at ...401...) Date: Fri, 11 Apr 2008 17:09:11 -0400 Subject: [Gambas-user] Center Form Message-ID: <16021935.269241207948151641.JavaMail.root@...1886...> I dont mean to spam everyone's email accounts, but I just wanted to thank you all for the quick and helpful responses. ---- M0E Lnx wrote: > on the form's Open() event add this > > ME.CENTER > > > On Fri, Apr 11, 2008 at 9:17 AM, wrote: > > I was wondering if anyone knows how to center a form in Gambas. I see how to move the form according to its x and y position, but what I would like is for a form to always show up in the center of the screen in all different resolutions. Any help is appreciated. Thanks. > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From kevinfishburne at ...1887... Sat Apr 12 01:18:40 2008 From: kevinfishburne at ...1887... (kevinfishburne) Date: Fri, 11 Apr 2008 16:18:40 -0700 (PDT) Subject: [Gambas-user] non-blinding theme Message-ID: <16633224.post@...1379...> Hello everyone. I'm new to the list and just discovered Gambas a few days ago...it rocks. I thought I'd try to save some eyeballs (starting with my own) so I made this theme if anyone's interested. I use it with 14 point Courier New on a 21" CRT at 1280x1024. It's inspired by good old QuickBASIC 4.5. [Theme] Background="&003F77&" Normal="&BFBFBF&" Keyword="&BFBFBF&" Subr="&BFBFFF&" Operator="&E0E000&" Symbol="&FFFFFF&" Number="&FF9F9F&" String="&C0C0FF&" Comment="&5FBF5F&" Breakpoint="&FF5F5F&" Current="&5F5FBF&" Datatype="&9FFF9F&" Selection="&1F5F97&" Highlight="&001F5F&" Line="&00376F&" Error="&808000&" Save in a text file named [somename].gambas.theme and open in Gambas through Tools, Preferences, Colors, Import Theme button. Ubuntu users beware, it will add a desktop entry to the text file when it sees the .theme extension. :/ If anyone has any improvements, do share. Kevin ----- 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://www.nabble.com/non-blinding-theme-tp16633224p16633224.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Apr 12 02:45:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 12 Apr 2008 02:45:10 +0200 Subject: [Gambas-user] non-blinding theme In-Reply-To: <16633224.post@...1379...> References: <16633224.post@...1379...> Message-ID: <200804120245.10272.gambas@...1...> On samedi 12 avril 2008, kevinfishburne wrote: > [Theme] > Background="&003F77&" > Normal="&BFBFBF&" > Keyword="&BFBFBF&" > Subr="&BFBFFF&" > Operator="&E0E000&" > Symbol="&FFFFFF&" > Number="&FF9F9F&" > String="&C0C0FF&" > Comment="&5FBF5F&" > Breakpoint="&FF5F5F&" > Current="&5F5FBF&" > Datatype="&9FFF9F&" > Selection="&1F5F97&" > Highlight="&001F5F&" > Line="&00376F&" > Error="&808000&" Cool. I will add it to the development version. -- Benoit Minisini From kevinfishburne at ...1887... Sat Apr 12 07:53:02 2008 From: kevinfishburne at ...1887... (kevinfishburne) Date: Fri, 11 Apr 2008 22:53:02 -0700 (PDT) Subject: [Gambas-user] non-blinding theme In-Reply-To: <200804120245.10272.gambas@...1...> References: <16633224.post@...1379...> <200804120245.10272.gambas@...1...> Message-ID: <16645845.post@...1379...> Benoit Minisini wrote: > > Cool. I will add it to the development version. > Awesome, I'm glad you like it. That will be my first open-source contribution (though a small one). Keep up the good work on Gambas. It's truly a killer app; I rank it up there with OpenOffice and Apache. I'm strongly considering adding it as a default installed app on the PCs I sell. Have a good weekend everyone. ----- 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://www.nabble.com/non-blinding-theme-tp16633224p16645845.html Sent from the gambas-user mailing list archive at Nabble.com. From sourceforge-raindog2 at ...94... Sat Apr 12 09:12:24 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 12 Apr 2008 03:12:24 -0400 Subject: [Gambas-user] non-blinding theme In-Reply-To: <16645845.post@...1379...> References: <16633224.post@...1379...> <200804120245.10272.gambas@...1...> <16645845.post@...1379...> Message-ID: <200804120312.24728.sourceforge-raindog2@...94...> On Saturday 12 April 2008 01:53, kevinfishburne wrote: > Awesome, I'm glad you like it. That will be my first open-source > contribution (though a small one). Keep up the good work on Gambas. > It's truly a killer app; I rank it up there with OpenOffice and > Apache. I'm strongly considering adding it as a default installed > app on the PCs I sell. I wish that Linux distributors WOULD include an easy-to-understand language and IDE by default, just as DOS came with a version of BASIC for the first 15 years of its life and every home computer from the Amiga on back included it as well. It's hard to believe nowadays, but when I was growing up almost everyone who had a computer learned to program it. Granted, everyone who had a computer was kind of a nerd 25 years ago, but I still think there would be more opportunities for learning if the Gambas IDE were installed by default. But most people who put together distros seem to think, "Eh, if someone wants to make a program, they should have to learn how to write code in vi or emacs, learn a command-line compiler or interpreter, learn how to design forms using system calls by specifying the geometry manually, and learn how to write a Gtk or Qt event loop." It's like they never walked up to a computer in a store and wrote 10 PRINT "I was here!!!" 20 GOTO 10 probably because most of them are too young to remember that BASIC ever had line numbers. By the way, if you've been having trouble reading the fonts in the Gambas editor, try switching from Courier to Bitstream Vera Sans Mono or DejaVu Sans Mono, both of which should be in every Linux distro at this point. (If not, Lucida Console and Lucida Typewriter aren't bad either.) They seem much bolder and easier to read. Rob From gambas at ...1... Sat Apr 12 11:23:54 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 12 Apr 2008 11:23:54 +0200 Subject: [Gambas-user] How to make components in Gambas Message-ID: <200804121123.54845.gambas@...1...> Hi, I finally made the first version of an article that explain how to make components in Gambas. This article is at: http://gambasdoc.org/help/dev/gambas People who are interested in doing such a funny thing (they are some!) are invited to read it, comment it, question it, fix it... A similar document about writing components in C/C++ should be done too, but I will do that, hem, later... Later. Regards, -- Benoit Minisini From rospolosco at ...152... Sat Apr 12 18:07:44 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 12 Apr 2008 18:07:44 +0200 Subject: [Gambas-user] stupid question about INC and boolean Message-ID: <200804121807.44817.rospolosco@...152...> Hi all. Hi, Benoit. I was trying this code: ' Gambas module file PRIVATE $bBoolValue AS Boolean PUBLIC SUB Main() DIM iCount AS Integer FOR iCount = 0 TO 10 INC $bBoolValue NEXT PRINT $bBoolValue END Finally, $bBoolValue is TRUE. Is it normal that INC increase a Boolean value without giving any error? Ciao, Stefano From gambas at ...1... Sat Apr 12 19:05:21 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 12 Apr 2008 19:05:21 +0200 Subject: [Gambas-user] stupid question about INC and boolean In-Reply-To: <200804121807.44817.rospolosco@...152...> References: <200804121807.44817.rospolosco@...152...> Message-ID: <200804121905.21249.gambas@...1...> On samedi 12 avril 2008, Stefano Palmeri wrote: > PUBLIC SUB Main() > > ? DIM iCount AS Integer > ? > ? FOR iCount = 0 TO 10 > ? > ? ? INC $bBoolValue > ? > ? NEXT > ? > ? PRINT $bBoolValue > > END Actually I wanted that INC and DEC work on boolean values like toggles. I mean: INC $bBoolValue <=> $bBoolValue = NOT $bBoolValue Same thing for DEC $bBoolValue. Alas there is a bug in Gambas that prevents it from working correctly. I will fix it for the 2.6 version. Regards, -- Benoit Minisini From rospolosco at ...152... Sat Apr 12 19:47:59 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 12 Apr 2008 19:47:59 +0200 Subject: [Gambas-user] stupid question about INC and boolean In-Reply-To: <200804121905.21249.gambas@...1...> References: <200804121807.44817.rospolosco@...152...> <200804121905.21249.gambas@...1...> Message-ID: <200804121947.59167.rospolosco@...152...> Alle 19:05, sabato 12 aprile 2008, Benoit Minisini ha scritto: > On samedi 12 avril 2008, Stefano Palmeri wrote: > > PUBLIC SUB Main() > > > > ? DIM iCount AS Integer > > ? > > ? FOR iCount = 0 TO 10 > > ? > > ? ? INC $bBoolValue > > ? > > ? NEXT > > ? > > ? PRINT $bBoolValue > > > > END > > Actually I wanted that INC and DEC work on boolean values like toggles. > > I mean: > > INC $bBoolValue <=> $bBoolValue = NOT $bBoolValue > > Same thing for DEC $bBoolValue. > > Alas there is a bug in Gambas that prevents it from working correctly. I > will fix it for the 2.6 version. > > Regards, Ok. Anyway in the example TRUE is correct. So it works good? 0 True 1 False 2 True 3 False 4 True 5 False 6 True 7 False 8 True 9 False 10 True I don't want you to fix something that is working good :-) I just was surprised not getting error while increasing a boolean value. Now I know the magic behind and all is clear. Stefano From jshackney at ...626... Sun Apr 13 00:23:55 2008 From: jshackney at ...626... (Jason Hackney) Date: Sat, 12 Apr 2008 18:23:55 -0400 Subject: [Gambas-user] tabstrip help Message-ID: <799be1690804121523y7cbffc52r97cbc992f2114321@...627...> Sorry, I'm a bit new. I couldn't find a helpful answer through search. I have a 3-tab tabstrip on a form. I've set up logic to check for the existence of a file prior to displaying the form. If the file exists, everything is normal and the program starts in a default state. If the file does not exist, I want to make the third tab in the tabstrip active. I want to select the third tab via code. Can someone please explain the syntax that would accomplish this? Thank you! From sbungay at ...981... Sun Apr 13 02:43:52 2008 From: sbungay at ...981... (Stephen Bungay) Date: Sat, 12 Apr 2008 20:43:52 -0400 Subject: [Gambas-user] tabstrip help In-Reply-To: <799be1690804121523y7cbffc52r97cbc992f2114321@...627...> References: <799be1690804121523y7cbffc52r97cbc992f2114321@...627...> Message-ID: <48015748.1040505@...981...> TabStrip1.Index = 2 Where [number] is the tabstrip index you want active. Remember they start at zero, so the third one would be number 2. Steve. Jason Hackney wrote: > Sorry, I'm a bit new. I couldn't find a helpful answer through search. > > I have a 3-tab tabstrip on a form. I've set up logic to check for the > existence of a file prior to displaying the form. If the file exists, > everything is normal and the program starts in a default state. If the > file does not exist, I want to make the third tab in the tabstrip > active. > > I want to select the third tab via code. Can someone please explain > the syntax that would accomplish this? > > Thank you! > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Sun Apr 13 02:58:44 2008 From: sbungay at ...981... (Stephen Bungay) Date: Sat, 12 Apr 2008 20:58:44 -0400 Subject: [Gambas-user] stupid question about INC and boolean In-Reply-To: <200804121947.59167.rospolosco@...152...> References: <200804121807.44817.rospolosco@...152...> <200804121905.21249.gambas@...1...> <200804121947.59167.rospolosco@...152...> Message-ID: <48015AC4.9080207@...981...> Simply "NOT'ing the boolean accomplishes the same thing... Dim X as Integer Dim B as Boolean For X = 0 to 10 B = Not B Next INC or DEC are not logical operators. Just because they can be used on boolean values the question is should they be used, does it make for better code clarity? Stefano Palmeri wrote: > Alle 19:05, sabato 12 aprile 2008, Benoit Minisini ha scritto: >> On samedi 12 avril 2008, Stefano Palmeri wrote: >>> PUBLIC SUB Main() >>> >>> DIM iCount AS Integer >>> >>> FOR iCount = 0 TO 10 >>> >>> INC $bBoolValue >>> >>> NEXT >>> >>> PRINT $bBoolValue >>> >>> END >> Actually I wanted that INC and DEC work on boolean values like toggles. >> >> I mean: >> >> INC $bBoolValue <=> $bBoolValue = NOT $bBoolValue >> >> Same thing for DEC $bBoolValue. >> >> Alas there is a bug in Gambas that prevents it from working correctly. I >> will fix it for the 2.6 version. >> >> Regards, > > Ok. Anyway in the example TRUE is correct. > So it works good? > > 0 True > 1 False > 2 True > 3 False > 4 True > 5 False > 6 True > 7 False > 8 True > 9 False > 10 True > > I don't want you to fix something that is working good :-) > > I just was surprised not getting error while increasing > a boolean value. Now I know the magic behind and all > is clear. > > Stefano > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charles.trois at ...1661... Sun Apr 13 10:05:40 2008 From: charles.trois at ...1661... (Charles Trois) Date: Sun, 13 Apr 2008 10:05:40 +0200 Subject: [Gambas-user] Gambas2-2.5.0 does not start under Ubuntu-7.10 In-Reply-To: <47FE22EB.20109@...1237...> References: <47FCDB46.2020902@...1661...> <47FE22EB.20109@...1237...> Message-ID: <4801BED4.6030706@...1661...> Leonardo Miliani a ?crit : > I have compiled Gambas from sources on at least 4 Ubuntu 7.10 > installations and I've never never had any kind of problem. > I suggest you to install all the dependencies that you can find here: > http://gambasdoc.org/help/install/ubuntu > > Thanks for your support and encouragement. I finally succeeded, after re-installing Ubuntu. I shall never know what happened. Cheers. Charles From jshackney at ...626... Sun Apr 13 17:50:18 2008 From: jshackney at ...626... (Jason Hackney) Date: Sun, 13 Apr 2008 11:50:18 -0400 Subject: [Gambas-user] tabstrip help In-Reply-To: <48015748.1040505@...981...> References: <799be1690804121523y7cbffc52r97cbc992f2114321@...627...> <48015748.1040505@...981...> Message-ID: <799be1690804130850ya1cf78cs399280717acecf45@...627...> Thanks! I don't quite comprehend some of the online docs and figured it wasn't as hard as I was making it. -jason On Sat, Apr 12, 2008 at 8:43 PM, Stephen Bungay wrote: > TabStrip1.Index = 2 > > Where [number] is the tabstrip index you want active. Remember they > start at zero, so the third one would be number 2. > > Steve. From demosthenesk at ...626... Sun Apr 13 20:39:07 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 13 Apr 2008 21:39:07 +0300 Subject: [Gambas-user] DirView Control Help Message-ID: Hi to all. I have a DirView control. By default the control lists the contents of /home/user directory when it is created. I changed the Root directory but the /home/usr contents are still listed when the program runs. Is it possible to open or close directories by code? Actually i want to set Root directory at design time and list the contents only of this directory at running time. Thanks. -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From leemcpherson at ...626... Mon Apr 14 03:58:44 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Sun, 13 Apr 2008 21:58:44 -0400 Subject: [Gambas-user] Gridview multiple select... how to read each selected row? In-Reply-To: <6324a42a0804091015t3664d22k29cbc1cb40bef26e@...627...> References: <47FCDB46.2020902@...1661...> <6324a42a0804091015t3664d22k29cbc1cb40bef26e@...627...> Message-ID: <4802BA54.2010503@...626...> I'm getting a little confused as to how to read the data from multiple selections from a gridview. For example, if I have four rows highlighted (selected by dragging the mouse over them), I want to be able to push a button and read the first column from each of those four rows and stick them into a database. I was thinking I'd have to use a FOR EACH statement, but I am not sure how to do this with a gridview. Can anyone bang out a quick example to try? Thanks, Lee From serif at ...1870... Mon Apr 14 08:21:19 2008 From: serif at ...1870... (Mike Brett) Date: Mon, 14 Apr 2008 07:21:19 +0100 Subject: [Gambas-user] Beginners problem : Gambas compiled package installation Message-ID: <4802F7DF.1050601@...1870...> A little advice please. I am, relative to yourselves, a complete newbie to this Linux lark, so please assume ignorance on my part in any reply. I want to load the latest (compiled, ready-to-go) gambas IDE package on my Asus eeePC that I can, to develop a GUI application for MySQL. This PC runs an Asus variant of Xandros which is, as far as I understand it, itself a variant of Debian etch. I have apt-get'd for 'gambas', and version 1.0.15 installed. The IDE main menu screen opens up happily, but when I try to run some of the samples I get "Some components are missing:" messages (for instance gb.qt.kde). Two questions spring to mind please: 1) I thought that the whole Linux dependency machinery was supposed to look after this sort of thing and include what might be required in the installation. Am I wrong here? 2) What *specific* action should I take to rectify this problem? Thank you for your patience. - Mike Brett - From nxgtrturbo at ...626... Mon Apr 14 09:35:30 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Mon, 14 Apr 2008 00:35:30 -0700 Subject: [Gambas-user] Pre-Release: Arpi System ERP&CRM v0.2b Message-ID: <688afe140804140035y4102070aj83639713c493230c@...627...> Hi, I am working in a (kind of) ERP&CRM Solution in Gambas, the version 0.1b was released some time ago (just got like +350 downloads), but It was more than a proof-of-concept than a full app, now the version 0.2b its getting much better, and I want to share with all of you a pre-release before anyone else, the official public release is going to be in the beginning of May (as you can read (in Spanish) at http://arpi.sosblog.com) For anyone interested in test the app, theres a file to download at my web page: http://systemarpi.googlepages.com/Arpi02bPR.tar.gz But, remember this is a pre-release, theres no documentation of any kind, just a DEB file to install and a SCRIPT to create the database structure, if you have some feedback would be very nice, you can post at: http://arpi.forumotion.com Some of the features now are: 1. Available in two languages, English and Spanish (run with LANG=C) 2. Support Forum for anything about Arpi 3. Login protected against SQL-Injection 4. DB-Independent configuration (ini file) 5. Works with MySQL Server 5.0.X 6. Multi-business (so, multi database) 7. All actions are rights sensitive 8. Most common actions are available in a shortcut 9. Very easy to use GUI 10. Employee Assistance module 11. Customers info module 12. Employees info module 13. Automatic CURP calculation (or CURN Citicenz Unique Record Number) 14. Inventory module 15. Providers info module 16. Automatic Web Report Creation (this is a really cool feature) 17. Vacations control module 18. Outcome control module 19. Income control module 20. Paycheck (payroll?) module 21. Custom States 22. Custom Materials 23. Custom Providers 24. Custom Jobs 25. Custom Reports 26. Custom Sales 27. Groups privileges control 28. Users control 29. Free 30. OpenSource Hope You Like It :) -- Nx GT-R, Thanks to everyone that helped me From d.paleino at ...626... Mon Apr 14 09:43:29 2008 From: d.paleino at ...626... (David Paleino) Date: Mon, 14 Apr 2008 09:43:29 +0200 Subject: [Gambas-user] Beginners problem : Gambas compiled package installation In-Reply-To: <4802F7DF.1050601@...1870...> References: <4802F7DF.1050601@...1870...> Message-ID: <20080414094329.4d4c46ed@...626...> On Mon, 14 Apr 2008 07:21:19 +0100, Mike Brett wrote: > I have apt-get'd for 'gambas', and version 1.0.15 installed. The IDE > main menu screen opens up happily, but when I try to run some of the > samples I get "Some components are missing:" messages (for instance > gb.qt.kde). $ LANG=C apt-cache policy gambas2 gambas2: Installed: 2.5-1 Candidate: 2.5-1 Version table: *** 2.5-1 0 500 http://debian.fastweb.it unstable/main Packages 100 /var/lib/dpkg/status 2.2.1+svn1123-1 0 500 http://debian.fastweb.it testing/main Packages $ what you installed is a rather old version (I'm running Debian sid/experimental). Considering that Gambas3 is near to be released (or it already has been, not sure), you downloaded a (probably Xandros-specific) old package. You might want to: # echo deb http://ftp.debian.org/debian unstable main >> /etc/apt/sources.list # apt-get update # apt-get install gambas2 # nano/vi/emacs/... ##comment/remove that line we added # apt-get update You could even use apt-pinning to do the job, without commenting that line in sources.list, but I've never done that "between distros". HTH, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From rospolosco at ...152... Mon Apr 14 10:23:46 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 14 Apr 2008 10:23:46 +0200 Subject: [Gambas-user] DirView Control Help In-Reply-To: References: Message-ID: <200804141023.46220.rospolosco@...152...> Alle 20:39, domenica 13 aprile 2008, Demosthenes Koptsis ha scritto: > Hi to all. > > I have a DirView control. By default the control lists the contents of > /home/user directory when it is created. > I changed the Root directory but the /home/usr contents are still > listed when the program runs. > > Is it possible to open or close directories by code? Actually i want > to set Root directory at design time and list the contents only of > this directory at running time. > > Thanks. Try: PUBLIC SUB Form_Open() DirView1.Current = "/root" END Anyway, you will need root permission to expand the tree. Ciao, Stefano From demosthenesk at ...626... Mon Apr 14 11:26:14 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 14 Apr 2008 12:26:14 +0300 Subject: [Gambas-user] DirView Control Help In-Reply-To: <200804141023.46220.rospolosco@...152...> References: <200804141023.46220.rospolosco@...152...> Message-ID: Thanks both of you for the reply but the problem remains. I think I was not fully understandable. I 'll try again. I set the Root property from design mode to "/". OK I set the Current property from code to "/mnt/". OK The problem is that the DirView control expands two directories at running mode. The "/home/usr" (the default from design mode) and "/mnt" (this one from property Current). The question is: How to expand only the "/mnt" directory when the Root property is "/" ? I can't set the property Current from design mode. Can I ? I think this would solve this problem. On 4/14/08, Stefano Palmeri wrote: > Alle 20:39, domenica 13 aprile 2008, Demosthenes Koptsis ha scritto: > > Hi to all. > > > > I have a DirView control. By default the control lists the contents of > > /home/user directory when it is created. > > I changed the Root directory but the /home/usr contents are still > > listed when the program runs. > > > > Is it possible to open or close directories by code? Actually i want > > to set Root directory at design time and list the contents only of > > this directory at running time. > > > > Thanks. > > Try: > > > PUBLIC SUB Form_Open() > > DirView1.Current = "/root" > > END > > Anyway, you will need root permission to expand the tree. > > Ciao, > > Stefano > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From rospolosco at ...152... Mon Apr 14 12:17:36 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 14 Apr 2008 12:17:36 +0200 Subject: [Gambas-user] DirView Control Help In-Reply-To: References: <200804141023.46220.rospolosco@...152...> Message-ID: <200804141217.36813.rospolosco@...152...> Alle 11:26, luned? 14 aprile 2008, Demosthenes Koptsis ha scritto: > Thanks both of you for the reply but the problem remains. > > I think I was not fully understandable. I 'll try again. > > I set the Root property from design mode to "/". OK > I set the Current property from code to "/mnt/". OK > > The problem is that the DirView control expands two directories at > running mode. > The "/home/usr" (the default from design mode) and "/mnt" (this one > from property Current). > The question is: How to expand only the "/mnt" directory when the Root > property is "/" ? > I think you can't expand only /mnt/ when the Root property is "/" If you need only to expand /mnt do: DirView1.Root = "/mnt" then put a button on the form to see the root when you need it or go back to /mnt. I've attached an example. Stefano > I can't set the property Current from design mode. Can I ? > I think this would solve this problem. > > On 4/14/08, Stefano Palmeri wrote: > > Alle 20:39, domenica 13 aprile 2008, Demosthenes Koptsis ha scritto: > > > Hi to all. > > > > > > I have a DirView control. By default the control lists the contents of > > > /home/user directory when it is created. > > > I changed the Root directory but the /home/usr contents are still > > > listed when the program runs. > > > > > > Is it possible to open or close directories by code? Actually i want > > > to set Root directory at design time and list the contents only of > > > this directory at running time. > > > > > > Thanks. > > > > Try: > > > > > > PUBLIC SUB Form_Open() > > > > DirView1.Current = "/root" > > > > END > > > > Anyway, you will need root permission to expand the tree. > > > > Ciao, > > > > Stefano > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/ja > >vaone _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: dirview-0.0.1.tar.gz Type: application/x-tgz Size: 7822 bytes Desc: not available URL: From demosthenesk at ...626... Mon Apr 14 13:37:50 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 14 Apr 2008 14:37:50 +0300 Subject: [Gambas-user] DirView Control Help In-Reply-To: <200804141217.36813.rospolosco@...152...> References: <200804141023.46220.rospolosco@...152...> <200804141217.36813.rospolosco@...152...> Message-ID: The same think I made also, to expand only the /mnt directory. On 4/14/08, Stefano Palmeri wrote: > Alle 11:26, luned? 14 aprile 2008, Demosthenes Koptsis ha scritto: > > Thanks both of you for the reply but the problem remains. > > > > I think I was not fully understandable. I 'll try again. > > > > I set the Root property from design mode to "/". OK > > I set the Current property from code to "/mnt/". OK > > > > The problem is that the DirView control expands two directories at > > running mode. > > The "/home/usr" (the default from design mode) and "/mnt" (this one > > from property Current). > > > The question is: How to expand only the "/mnt" directory when the Root > > property is "/" ? > > > > I think you can't expand only /mnt/ when the Root > property is "/" > > If you need only to expand /mnt > do: > > DirView1.Root = "/mnt" > > then put a button on the form to see > the root when you need it > or go back to /mnt. > > I've attached an example. > > Stefano > > I can't set the property Current from design mode. Can I ? > > I think this would solve this problem. > > > > On 4/14/08, Stefano Palmeri wrote: > > > Alle 20:39, domenica 13 aprile 2008, Demosthenes Koptsis ha scritto: > > > > Hi to all. > > > > > > > > I have a DirView control. By default the control lists the contents of > > > > /home/user directory when it is created. > > > > I changed the Root directory but the /home/usr contents are still > > > > listed when the program runs. > > > > > > > > Is it possible to open or close directories by code? Actually i want > > > > to set Root directory at design time and list the contents only of > > > > this directory at running time. > > > > > > > > Thanks. > > > > > > Try: > > > > > > > > > PUBLIC SUB Form_Open() > > > > > > DirView1.Current = "/root" > > > > > > END > > > > > > Anyway, you will need root permission to expand the tree. > > > > > > Ciao, > > > > > > Stefano > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > > Don't miss this year's exciting event. There's still time to save $100. > > > Use priority code J8TL2D2. > > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/ja > > >vaone _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From gambas at ...1... Mon Apr 14 15:05:25 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 14 Apr 2008 15:05:25 +0200 Subject: [Gambas-user] Select all error (2.99 build 1306) In-Reply-To: <200804111321.59492.rterry@...1822...> References: <200804111321.59492.rterry@...1822...> Message-ID: <200804141505.25222.gambas@...1...> On vendredi 11 avril 2008, richard terry wrote: > Not something you would notice all the time, but the select all dosn't > always select all the code. (see the picture). > > It seems to depend on whether or not there is a carriage return at the end > of the file, and where your cursor is positioned at the end of the file, > because sometimes Select all > copy copies everything, sometimes it misses > out the last line of the file. > > Regards > > Richard I fixed in the last revisions. Regards, -- Benoit Minisini From gambas at ...1... Mon Apr 14 15:09:15 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 14 Apr 2008 15:09:15 +0200 Subject: [Gambas-user] Using Classes In-Reply-To: <16627272.post@...1379...> References: <16627272.post@...1379...> Message-ID: <200804141509.15675.gambas@...1...> On vendredi 11 avril 2008, MaxVK wrote: > Hi, Id like to get something fully straight in my mind here: > > I have a class that I use to manipulate a treeview and some data that is > connected to each treeview item. I have used a class for this so that I can > call this code from any one of several forms that use treeviews in my > project without the code becoming confused about the treeview that it is > working on. > > I call the class in the header of my forms like this: PUBLIC DoTree AS NEW > clsTree > > I can then access the functions in the class through DoTree., but > my question is, do I need to explicitly destroy this class object (DoTree) > in some way to prevent it from using memory when its not in use? > > For example, the first form in the project uses this class, but is only > actually visible for a short period, and is hidden when another form opens. > Do I need to clean up the class object (Dotree) while the form is hidden to > prevent it hogging memory when it is not in use. > > Regards > > Max Memory and object destruction is automatically managed by the interpreter. Gambas use reference counting for that. See http://en.wikipedia.org/wiki/Reference_counting for more details. If you want an object to be destroyed, you must release all its references, i.e. set NULL to all variables, array or collection slots having a reference on it. Note that not everything is automatic. If you create circular references, i.e. an object A holding a reference of an object B, and the same object B holding a reference on the same object A, then the interpreter cannot release them automatically. You get a warning at program exit, and a list of all objects that couldn't be released. Regards, -- Benoit Minisini From sbungay at ...981... Mon Apr 14 23:28:35 2008 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 14 Apr 2008 17:28:35 -0400 Subject: [Gambas-user] Gridview multiple select... how to read each selected row? In-Reply-To: <4802BA54.2010503@...626...> References: <47FCDB46.2020902@...1661...> <6324a42a0804091015t3664d22k29cbc1cb40bef26e@...627...> <4802BA54.2010503@...626...> Message-ID: <4803CC83.1020203@...981...> Hi Lee; I never did understand why the grid control would allow you to select multiple items and not have a mechanism to indicate which rows were selected and which were not. Perhaps it does have such a mechanism but I haven't been able to find it. Of course it could be deeply buried but then thats a bad thing too. Anyway, what you can probably do is create a collection that holds each selected item's row number, use the row number as the index into the collection. Each time the select event is raised by the control, trap it and store the row that was clicked on in the collection. If you get an error when trying to add the row number to the collection because the index key already exists then you know the row was already stored and the user has clicked on a row to deselected it. Remove that row from the collection, thus keeping the information in the collection in sync with the selected rows in the grid. IMHO this is a kludge to accommodate the grid control which should have a mechanism that exposes the selected state of it's row items to the programmer. Steve. Lee McPherson wrote: > I'm getting a little confused as to how to read the data from multiple > selections from a gridview. For example, if I have four rows > highlighted (selected by dragging the mouse over them), I want to be > able to push a button and read the first column from each of those four > rows and stick them into a database. I was thinking I'd have to use a > FOR EACH statement, but I am not sure how to do this with a gridview. > > Can anyone bang out a quick example to try? > > Thanks, > Lee > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Apr 15 02:13:47 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 15 Apr 2008 02:13:47 +0200 Subject: [Gambas-user] Gridview multiple select... how to read each selected row? In-Reply-To: <4803CC83.1020203@...981...> References: <47FCDB46.2020902@...1661...> <4802BA54.2010503@...626...> <4803CC83.1020203@...981...> Message-ID: <200804150213.47316.gambas@...1...> On lundi 14 avril 2008, Stephen Bungay wrote: > Hi Lee; > I never did understand why the grid control would allow you to > select multiple items and not have a mechanism to indicate which rows > were selected and which were not. Perhaps it does have such a mechanism > but I haven't been able to find it. Of course it could be deeply buried > but then thats a bad thing too. > Anyway, what you can probably do is create a collection that holds > each selected item's row number, use the row number as the index into > the collection. Each time the select event is raised by the control, > trap it and store the row that was clicked on in the collection. If you > get an error when trying to add the row number to the collection because > the index key already exists then you know the row was already stored > and the user has clicked on a row to deselected it. Remove that row from > the collection, thus keeping the information in the collection in sync > with the selected rows in the grid. > IMHO this is a kludge to accommodate the grid control which should > have a mechanism that exposes the selected state of it's row items to > the programmer. > > Steve. > At the moment, you have to test the Selected property of each row to get the selection. I admit that the process is not optimal! Maybe I should add a Selection property that would return the indexes of all selected rows? -- Benoit Minisini From leemcpherson at ...626... Tue Apr 15 06:16:57 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Tue, 15 Apr 2008 00:16:57 -0400 Subject: [Gambas-user] Gridview multiple select... how to read each selected row? In-Reply-To: <200804150213.47316.gambas@...1...> References: <47FCDB46.2020902@...1661...> <4802BA54.2010503@...626...> <4803CC83.1020203@...981...> <200804150213.47316.gambas@...1...> Message-ID: Thanks Stephen and Benoit, I understand Stephen's suggestion, but it seems to only work with using the CTRL key clicking each row with a mouse. Now if you were to do the same capture (under gridview_select event) by VERY quickly dragging the mouse over several rows at time, I can actually get it to skip capturing some of the rows! My project will be using an LCD touch screen, so the user will only be able to "drag select" and not point and click each row, so his suggestion might not work for me. I say "might" because I might be doing something wrong. Here is some code to replicate what I did. (with an gridview object called Gridview1, and a button to print the collection called Button1) I ended up using the MouseDown event on gridview1 to clear the collection since I'm only worried about mouse drags to select multiple events. PUBLIC rowsel AS COLLECTION PUBLIC SUB gridview1_Select() DIM rownumber AS String IF gridsel.Exist(gridView1.row) gridsel.Remove(gridView1.row) ELSE gridsel.Add(gridView1.row, gridView1.row) ENDIF END PUBLIC SUB gridView1_MouseDown() gridsel.Clear END PUBLIC SUB Button9_Click() DIM rownumber AS String FOR EACH rownumber IN gridsel PRINT "R: " & rownumber NEXT END On Mon, Apr 14, 2008 at 8:13 PM, Benoit Minisini < gambas at ...1...> wrote: > On lundi 14 avril 2008, Stephen Bungay wrote: > > Hi Lee; > > I never did understand why the grid control would allow you to > > select multiple items and not have a mechanism to indicate which rows > > were selected and which were not. Perhaps it does have such a mechanism > > but I haven't been able to find it. Of course it could be deeply buried > > but then thats a bad thing too. > > Anyway, what you can probably do is create a collection that holds > > each selected item's row number, use the row number as the index into > > the collection. Each time the select event is raised by the control, > > trap it and store the row that was clicked on in the collection. If you > > get an error when trying to add the row number to the collection because > > the index key already exists then you know the row was already stored > > and the user has clicked on a row to deselected it. Remove that row from > > the collection, thus keeping the information in the collection in sync > > with the selected rows in the grid. > > IMHO this is a kludge to accommodate the grid control which should > > have a mechanism that exposes the selected state of it's row items to > > the programmer. > > > > Steve. > > > > At the moment, you have to test the Selected property of each row to get > the > selection. > > I admit that the process is not optimal! Maybe I should add a Selection > property that would return the indexes of all selected rows? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leemcpherson at ...626... Tue Apr 15 06:18:40 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Tue, 15 Apr 2008 00:18:40 -0400 Subject: [Gambas-user] Gridview multiple select... how to read each selected row? In-Reply-To: References: <47FCDB46.2020902@...1661...> <4802BA54.2010503@...626...> <4803CC83.1020203@...981...> <200804150213.47316.gambas@...1...> Message-ID: oops, the PUBLIC rowsel as COLLECTION should read: PUBLIC gridsel as NEW COLLECTION (that NEW statement is key to getting the collection to work... it took me a while to figure that part out, too!) On Tue, Apr 15, 2008 at 12:16 AM, Lee McPherson wrote: > Thanks Stephen and Benoit, > > I understand Stephen's suggestion, but it seems to only work with using > the CTRL key clicking each row with a mouse. Now if you were to do the same > capture (under gridview_select event) by VERY quickly dragging the mouse > over several rows at time, I can actually get it to skip capturing some of > the rows! My project will be using an LCD touch screen, so the user will > only be able to "drag select" and not point and click each row, so his > suggestion might not work for me. I say "might" because I might be doing > something wrong. Here is some code to replicate what I did. (with an > gridview object called Gridview1, and a button to print the collection > called Button1) I ended up using the MouseDown event on gridview1 to clear > the collection since I'm only worried about mouse drags to select multiple > events. > > PUBLIC rowsel AS COLLECTION > > PUBLIC SUB gridview1_Select() > DIM rownumber AS String > IF gridsel.Exist(gridView1.row) > gridsel.Remove(gridView1.row) > ELSE > gridsel.Add(gridView1.row, gridView1.row) > ENDIF > END > > PUBLIC SUB gridView1_MouseDown() > gridsel.Clear > END > > PUBLIC SUB Button9_Click() > DIM rownumber AS String > FOR EACH rownumber IN gridsel > PRINT "R: " & rownumber > NEXT > END > > > > On Mon, Apr 14, 2008 at 8:13 PM, Benoit Minisini < > gambas at ...1...> wrote: > > > On lundi 14 avril 2008, Stephen Bungay wrote: > > > Hi Lee; > > > I never did understand why the grid control would allow you to > > > select multiple items and not have a mechanism to indicate which rows > > > were selected and which were not. Perhaps it does have such a > > mechanism > > > but I haven't been able to find it. Of course it could be deeply > > buried > > > but then thats a bad thing too. > > > Anyway, what you can probably do is create a collection that holds > > > each selected item's row number, use the row number as the index into > > > the collection. Each time the select event is raised by the control, > > > trap it and store the row that was clicked on in the collection. If > > you > > > get an error when trying to add the row number to the collection > > because > > > the index key already exists then you know the row was already stored > > > and the user has clicked on a row to deselected it. Remove that row > > from > > > the collection, thus keeping the information in the collection in sync > > > with the selected rows in the grid. > > > IMHO this is a kludge to accommodate the grid control which should > > > have a mechanism that exposes the selected state of it's row items to > > > the programmer. > > > > > > Steve. > > > > > > > At the moment, you have to test the Selected property of each row to get > > the > > selection. > > > > I admit that the process is not optimal! Maybe I should add a Selection > > property that would return the indexes of all selected rows? > > > > -- > > Benoit Minisini > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > From gambas at ...1... Tue Apr 15 09:58:22 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 15 Apr 2008 09:58:22 +0200 Subject: [Gambas-user] Gridview multiple select... how to read each selected row? In-Reply-To: References: <47FCDB46.2020902@...1661...> <200804150213.47316.gambas@...1...> Message-ID: <200804150958.22303.gambas@...1...> On mardi 15 avril 2008, Lee McPherson wrote: > Thanks Stephen and Benoit, > > ... > > PUBLIC rowsel AS COLLECTION > > PUBLIC SUB gridview1_Select() > DIM rownumber AS String > IF gridsel.Exist(gridView1.row) > gridsel.Remove(gridView1.row) > ELSE > gridsel.Add(gridView1.row, gridView1.row) > ENDIF > END > Beware: the Select event is raised if the selection has changed, not necessarily each time *one* row was selected or unselected. Regards, -- Benoit Minisini From sbungay at ...981... Tue Apr 15 16:01:10 2008 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 15 Apr 2008 10:01:10 -0400 Subject: [Gambas-user] Gridview multiple select... how to read each selected row? In-Reply-To: References: <47FCDB46.2020902@...1661...> <4802BA54.2010503@...626...> <4803CC83.1020203@...981...> <200804150213.47316.gambas@...1...> Message-ID: <4804B526.9090307@...981...> New info. There IS a way to check the state of the row, I didn't see it and it is not (yet) documented but hopefully it soon will be. Gridview1.rows[X].selected There... that's MUCH better and no more fussing about with the collection. Something like the example below should work rather nicely... For X = 1 to GridView1.rows.count if GridView1.rows[X].selected then ' insert processing logic here end if Next Steve. Lee McPherson wrote: > Thanks Stephen and Benoit, > > I understand Stephen's suggestion, but it seems to only work with using the > CTRL key clicking each row with a mouse. Now if you were to do the same > capture (under gridview_select event) by VERY quickly dragging the mouse > over several rows at time, I can actually get it to skip capturing some of > the rows! My project will be using an LCD touch screen, so the user will > only be able to "drag select" and not point and click each row, so his > suggestion might not work for me. I say "might" because I might be doing > something wrong. Here is some code to replicate what I did. (with an > gridview object called Gridview1, and a button to print the collection > called Button1) I ended up using the MouseDown event on gridview1 to clear > the collection since I'm only worried about mouse drags to select multiple > events. > > PUBLIC rowsel AS COLLECTION > > PUBLIC SUB gridview1_Select() > DIM rownumber AS String > IF gridsel.Exist(gridView1.row) > gridsel.Remove(gridView1.row) > ELSE > gridsel.Add(gridView1.row, gridView1.row) > ENDIF > END > > PUBLIC SUB gridView1_MouseDown() > gridsel.Clear > END > > PUBLIC SUB Button9_Click() > DIM rownumber AS String > FOR EACH rownumber IN gridsel > PRINT "R: " & rownumber > NEXT > END > > > On Mon, Apr 14, 2008 at 8:13 PM, Benoit Minisini < > gambas at ...1...> wrote: > >> On lundi 14 avril 2008, Stephen Bungay wrote: >>> Hi Lee; >>> I never did understand why the grid control would allow you to >>> select multiple items and not have a mechanism to indicate which rows >>> were selected and which were not. Perhaps it does have such a mechanism >>> but I haven't been able to find it. Of course it could be deeply buried >>> but then thats a bad thing too. >>> Anyway, what you can probably do is create a collection that holds >>> each selected item's row number, use the row number as the index into >>> the collection. Each time the select event is raised by the control, >>> trap it and store the row that was clicked on in the collection. If you >>> get an error when trying to add the row number to the collection because >>> the index key already exists then you know the row was already stored >>> and the user has clicked on a row to deselected it. Remove that row from >>> the collection, thus keeping the information in the collection in sync >>> with the selected rows in the grid. >>> IMHO this is a kludge to accommodate the grid control which should >>> have a mechanism that exposes the selected state of it's row items to >>> the programmer. >>> >>> Steve. >>> >> At the moment, you have to test the Selected property of each row to get >> the >> selection. >> >> I admit that the process is not optimal! Maybe I should add a Selection >> property that would return the indexes of all selected rows? >> >> -- >> Benoit Minisini >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save $100. >> Use priority code J8TL2D2. >> >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Tue Apr 15 16:06:33 2008 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 15 Apr 2008 10:06:33 -0400 Subject: [Gambas-user] Gridview multiple select... how to read each selected row? In-Reply-To: <4804B526.9090307@...981...> References: <47FCDB46.2020902@...1661...> <4802BA54.2010503@...626...> <4803CC83.1020203@...981...> <200804150213.47316.gambas@...1...> <4804B526.9090307@...981...> Message-ID: <4804B669.9060105@...981...> Replying to my own emails... worse than talking to yourself... I forgot to thank Benoit for the info. Many thanks to Benoit for pointing out that 'rows' does indeed have a 'selected' property. Dunno how I missed finding it, but I did. Stephen Bungay wrote: > New info. There IS a way to check the state of the row, I didn't see > it and it is not (yet) documented but hopefully it soon will be. > > Gridview1.rows[X].selected > > There... that's MUCH better and no more fussing about with the > collection. Something like the example below should work rather nicely... > > For X = 1 to GridView1.rows.count > if GridView1.rows[X].selected then > ' insert processing logic here > end if > Next > > > Steve. > > > Lee McPherson wrote: >> Thanks Stephen and Benoit, >> >> I understand Stephen's suggestion, but it seems to only work with using the >> CTRL key clicking each row with a mouse. Now if you were to do the same >> capture (under gridview_select event) by VERY quickly dragging the mouse >> over several rows at time, I can actually get it to skip capturing some of >> the rows! My project will be using an LCD touch screen, so the user will >> only be able to "drag select" and not point and click each row, so his >> suggestion might not work for me. I say "might" because I might be doing >> something wrong. Here is some code to replicate what I did. (with an >> gridview object called Gridview1, and a button to print the collection >> called Button1) I ended up using the MouseDown event on gridview1 to clear >> the collection since I'm only worried about mouse drags to select multiple >> events. >> >> PUBLIC rowsel AS COLLECTION >> >> PUBLIC SUB gridview1_Select() >> DIM rownumber AS String >> IF gridsel.Exist(gridView1.row) >> gridsel.Remove(gridView1.row) >> ELSE >> gridsel.Add(gridView1.row, gridView1.row) >> ENDIF >> END >> >> PUBLIC SUB gridView1_MouseDown() >> gridsel.Clear >> END >> >> PUBLIC SUB Button9_Click() >> DIM rownumber AS String >> FOR EACH rownumber IN gridsel >> PRINT "R: " & rownumber >> NEXT >> END >> >> >> On Mon, Apr 14, 2008 at 8:13 PM, Benoit Minisini < >> gambas at ...1...> wrote: >> >>> On lundi 14 avril 2008, Stephen Bungay wrote: >>>> Hi Lee; >>>> I never did understand why the grid control would allow you to >>>> select multiple items and not have a mechanism to indicate which rows >>>> were selected and which were not. Perhaps it does have such a mechanism >>>> but I haven't been able to find it. Of course it could be deeply buried >>>> but then thats a bad thing too. >>>> Anyway, what you can probably do is create a collection that holds >>>> each selected item's row number, use the row number as the index into >>>> the collection. Each time the select event is raised by the control, >>>> trap it and store the row that was clicked on in the collection. If you >>>> get an error when trying to add the row number to the collection because >>>> the index key already exists then you know the row was already stored >>>> and the user has clicked on a row to deselected it. Remove that row from >>>> the collection, thus keeping the information in the collection in sync >>>> with the selected rows in the grid. >>>> IMHO this is a kludge to accommodate the grid control which should >>>> have a mechanism that exposes the selected state of it's row items to >>>> the programmer. >>>> >>>> Steve. >>>> >>> At the moment, you have to test the Selected property of each row to get >>> the >>> selection. >>> >>> I admit that the process is not optimal! Maybe I should add a Selection >>> property that would return the indexes of all selected rows? >>> >>> -- >>> Benoit Minisini >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >>> Don't miss this year's exciting event. There's still time to save $100. >>> Use priority code J8TL2D2. >>> >>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save $100. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Tue Apr 15 16:25:15 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 15 Apr 2008 10:25:15 -0400 Subject: [Gambas-user] =?iso-8859-1?q?Gridview_multiple_select=2E=2E=2E_ho?= =?iso-8859-1?q?w_to_read_each=09selected_row=3F?= In-Reply-To: <4804B669.9060105@...981...> References: <47FCDB46.2020902@...1661...> <4804B526.9090307@...981...> <4804B669.9060105@...981...> Message-ID: <200804151025.15483.sourceforge-raindog2@...94...> On Tuesday 15 April 2008 10:06, Stephen Bungay wrote: > Many thanks to Benoit for pointing out that 'rows' does indeed > have a 'selected' property. Dunno how I missed finding it, but I > did. It's kind of hard to find the .GridViewRow page in the documentation because the .GridViewRows page doesn't actually link to it for some reason. You would have to click on the words "read-only" in the .GridViewRows page which takes you to the _get page which in turn has a link to .GridViewRow. Google can't find any pages that link to the .GridViewRow page at all. Not having the virtual classes listed in any of the indexes will probably create a lot of confusing cases like this. I wonder if we should have something more obvious than the "read-only" link to get to the child virtual classes of enumerable classes. Of course, Benoit might have fixed this in a more recent version of the documentation program and it just can't be installed on our server because our version of Mandriva -- er, excuse me, Mandrake -- is too old. ;-) Rob From gambas at ...1... Tue Apr 15 16:56:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 15 Apr 2008 16:56:30 +0200 Subject: [Gambas-user] =?iso-8859-1?q?Gridview_multiple_select=2E=2E=2E_ho?= =?iso-8859-1?q?w_to_read_each=09selected_row=3F?= In-Reply-To: <200804151025.15483.sourceforge-raindog2@...94...> References: <47FCDB46.2020902@...1661...> <4804B669.9060105@...981...> <200804151025.15483.sourceforge-raindog2@...94...> Message-ID: <200804151656.30776.gambas@...1...> On mardi 15 avril 2008, Rob wrote: > On Tuesday 15 April 2008 10:06, Stephen Bungay wrote: > > Many thanks to Benoit for pointing out that 'rows' does indeed > > have a 'selected' property. Dunno how I missed finding it, but I > > did. > > It's kind of hard to find the .GridViewRow page in the documentation > because the .GridViewRows page doesn't actually link to it for some > reason. You would have to click on the words "read-only" in > the .GridViewRows page which takes you to the _get page which in turn > has a link to .GridViewRow. > > Google can't find any pages that link to the .GridViewRow page at all. > Not having the virtual classes listed in any of the indexes will > probably create a lot of confusing cases like this. I wonder if we > should have something more obvious than the "read-only" link to get > to the child virtual classes of enumerable classes. > > Of course, Benoit might have fixed this in a more recent version of > the documentation program and it just can't be installed on our > server because our version of Mandriva -- er, excuse me, Mandrake -- > is too old. ;-) > > Rob > No, I didn't "fix" that. The automatic generation of documentation page is not clever enough to present it in a more accessible way. There is maybe a solution: if I rename virtual classes by following some sort of convention, I could present it differently. Or the better solution would be just adding some explanation on the GridView documentation page. Regards, -- Benoit Minisini From pinozollo at ...626... Tue Apr 15 17:14:23 2008 From: pinozollo at ...626... (Pino Zollo) Date: Tue, 15 Apr 2008 11:14:23 -0400 Subject: [Gambas-user] IDE editor problem Message-ID: <200804151114.25651.pinozollo@...626...> This is a part of my program... IF (Radio1)NOT NULL THEN r1port = rData!r1port r1address = rData!r1address r1br = rData!r1br Without the parenthesis around the variable Radio1 the editor eliminates the space between 1 and NOT even if they are of different colours. So the interpreter gets Radio1NOT as a single word giving error. ^ ^ black blue I am using GAMBAS 2.0 Regards Pino From garulfounix at ...626... Tue Apr 15 17:26:16 2008 From: garulfounix at ...626... (GarulfoUnix) Date: Tue, 15 Apr 2008 17:26:16 +0200 Subject: [Gambas-user] IDE editor problem In-Reply-To: <200804151114.25651.pinozollo@...626...> References: <200804151114.25651.pinozollo@...626...> Message-ID: <200804151726.16601.garulfounix@...626...> Le Tuesday 15 April 2008 17:14:23 Pino Zollo, vous avez ?crit?: > This is a part of my program... > > IF (Radio1)NOT NULL THEN > r1port = rData!r1port > r1address = rData!r1address > r1br = rData!r1br > > Without the parenthesis around the variable Radio1 the editor eliminates > the space between 1 and NOT even if they are of different colours. > > So the interpreter gets Radio1NOT as a single word giving error. > ^ ^ > black blue > I am using GAMBAS 2.0 > > Regards > > Pino > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java >one _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi Pino, I would say the correct form is : IF NOT Radio1 THEN ' your code ENDIF ;) -- Gambas ? There is less good but it's more expensive ! From gambas.fr at ...626... Tue Apr 15 20:45:03 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 15 Apr 2008 20:45:03 +0200 Subject: [Gambas-user] IDE editor problem In-Reply-To: <200804151726.16601.garulfounix@...626...> References: <200804151114.25651.pinozollo@...626...> <200804151726.16601.garulfounix@...626...> Message-ID: <6324a42a0804151145m70445834iac5ca35e1df06edb@...627...> is it a new Basic synthax ? ;) if you want to know if a variable is null in Basic ... better in gambas, IF Radio1 <> NULL THEN or IF NOT IsNull(Radio1) THEN I think the interpreter will prefers that :) Regards, Fabien Bodard PS: another little thing ..; when you are testing radio1 ... you test if it contain an object ? or if it is selected ? in the second case the use will be Radio1.Value 2008/4/15, GarulfoUnix : > > Le Tuesday 15 April 2008 17:14:23 Pino Zollo, vous avez ?crit : > > > This is a part of my program... > > > > IF (Radio1)NOT NULL THEN > > r1port = rData!r1port > > r1address = rData!r1address > > r1br = rData!r1br > > > > Without the parenthesis around the variable Radio1 the editor eliminates > > the space between 1 and NOT even if they are of different colours. > > > > So the interpreter gets Radio1NOT as a single word giving error. > > ^ ^ > > black blue > > I am using GAMBAS 2.0 > > > > Regards > > > > Pino > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java > >one _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > Hi Pino, > > I would say the correct form is : > > IF NOT Radio1 THEN > ' your code > ENDIF > > ;) > > > > -- > Gambas ? There is less good but it's more expensive ! > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Tue Apr 15 21:04:19 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 15 Apr 2008 14:04:19 -0500 Subject: [Gambas-user] how to do a regex in gambas? In-Reply-To: <200804111351.15500.sourceforge-raindog2@...94...> References: <1f1e8c1b0804110849t44c0eee9t70dfdc51a7c03b63@...627...> <200804111351.15500.sourceforge-raindog2@...94...> Message-ID: <1f1e8c1b0804151204v74abee8enbaf5df69a3f26594@...627...> is it possible to use a wildcard like this in a gambas statement? Something like this IF Instr(sString, "i*86") > 0 then DO THIS END IF I'm processing a line of text that may have that in it... trying to find out if it's possible and how to use wild cards in a statement like this Please help From jaap_cramer at ...67... Tue Apr 15 21:40:41 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Tue, 15 Apr 2008 21:40:41 +0200 Subject: [Gambas-user] how to do a regex in gambas? In-Reply-To: <1f1e8c1b0804151204v74abee8enbaf5df69a3f26594@...627...> References: <1f1e8c1b0804110849t44c0eee9t70dfdc51a7c03b63@...627...> <200804111351.15500.sourceforge-raindog2@...94...> <1f1e8c1b0804151204v74abee8enbaf5df69a3f26594@...627...> Message-ID: Hi for that functions I use a this construction: If instr(sString, "i") < instr(sString, "86") and instr(sString, "i")*instr(sString, "86")>0 then ... endif I use instr(sString, "i")*instr(sString, "86") to make sure that both instr-results are bigger than 0 grt, Jaap ---------------------------------------- > Date: Tue, 15 Apr 2008 14:04:19 -0500 > From: m0e.lnx at ...626... > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] how to do a regex in gambas? > > is it possible to use a wildcard like this in a gambas statement? > > Something like this > > IF Instr(sString, "i*86")> 0 then > > DO THIS > > END IF > > I'm processing a line of text that may have that in it... trying to > find out if it's possible and how to use wild cards in a statement > like this > > Please help > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Check je Hotmail nu ook op je mobiel! http://windowslivemobile.msn.com/BrowserServiceHotmail.aspx?lang=nl-nl From gambas.fr at ...626... Tue Apr 15 21:59:15 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 15 Apr 2008 21:59:15 +0200 Subject: [Gambas-user] how to do a regex in gambas? In-Reply-To: References: <1f1e8c1b0804110849t44c0eee9t70dfdc51a7c03b63@...627...> <200804111351.15500.sourceforge-raindog2@...94...> <1f1e8c1b0804151204v74abee8enbaf5df69a3f26594@...627...> Message-ID: <6324a42a0804151259p4319ffe3g80274b1e380c4552@...627...> Take a look at the LIKE op?rator ! 2008/4/15, Jaap Cramer : > > > Hi > > for that functions I use a this construction: > > If instr(sString, "i") < instr(sString, "86") and instr(sString, > "i")*instr(sString, "86")>0 then > ... > endif > > I use instr(sString, "i")*instr(sString, "86") to make sure that both > instr-results are bigger than 0 > > grt, > Jaap > ---------------------------------------- > > Date: Tue, 15 Apr 2008 14:04:19 -0500 > > From: m0e.lnx at ...626... > > To: gambas-user at lists.sourceforge.net > > Subject: Re: [Gambas-user] how to do a regex in gambas? > > > > > is it possible to use a wildcard like this in a gambas statement? > > > > Something like this > > > > IF Instr(sString, "i*86")> 0 then > > > > DO THIS > > > > END IF > > > > I'm processing a line of text that may have that in it... trying to > > find out if it's possible and how to use wild cards in a statement > > like this > > > > Please help > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > _________________________________________________________________ > Check je Hotmail nu ook op je mobiel! > http://windowslivemobile.msn.com/BrowserServiceHotmail.aspx?lang=nl-nl > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leemcpherson at ...626... Wed Apr 16 05:45:11 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Tue, 15 Apr 2008 23:45:11 -0400 Subject: [Gambas-user] Gridview multiple select... how to read each selected row? In-Reply-To: <4804B526.9090307@...981...> References: <47FCDB46.2020902@...1661...> <4802BA54.2010503@...626...> <4803CC83.1020203@...981...> <200804150213.47316.gambas@...1...> <4804B526.9090307@...981...> Message-ID: Brilliant! And so easy... although my gridview rows start at row=0 and end at rows.count - 1. Thanks for all your help! I was really doing a hack job there :) -Lee On Tue, Apr 15, 2008 at 10:01 AM, Stephen Bungay wrote: > New info. There IS a way to check the state of the row, I didn't see > it and it is not (yet) documented but hopefully it soon will be. > > Gridview1.rows[X].selected > > There... that's MUCH better and no more fussing about with the > collection. Something like the example below should work rather nicely... > > For X = 1 to GridView1.rows.count > if GridView1.rows[X].selected then > ' insert processing logic here > end if > Next > > > Steve. > > > Lee McPherson wrote: > > Thanks Stephen and Benoit, > > > > I understand Stephen's suggestion, but it seems to only work with using > the > > CTRL key clicking each row with a mouse. Now if you were to do the same > > capture (under gridview_select event) by VERY quickly dragging the mouse > > over several rows at time, I can actually get it to skip capturing some > of > > the rows! My project will be using an LCD touch screen, so the user > will > > only be able to "drag select" and not point and click each row, so his > > suggestion might not work for me. I say "might" because I might be > doing > > something wrong. Here is some code to replicate what I did. (with an > > gridview object called Gridview1, and a button to print the collection > > called Button1) I ended up using the MouseDown event on gridview1 to > clear > > the collection since I'm only worried about mouse drags to select > multiple > > events. > > > > PUBLIC rowsel AS COLLECTION > > > > PUBLIC SUB gridview1_Select() > > DIM rownumber AS String > > IF gridsel.Exist(gridView1.row) > > gridsel.Remove(gridView1.row) > > ELSE > > gridsel.Add(gridView1.row, gridView1.row) > > ENDIF > > END > > > > PUBLIC SUB gridView1_MouseDown() > > gridsel.Clear > > END > > > > PUBLIC SUB Button9_Click() > > DIM rownumber AS String > > FOR EACH rownumber IN gridsel > > PRINT "R: " & rownumber > > NEXT > > END > > > > > > On Mon, Apr 14, 2008 at 8:13 PM, Benoit Minisini < > > gambas at ...1...> wrote: > > > >> On lundi 14 avril 2008, Stephen Bungay wrote: > >>> Hi Lee; > >>> I never did understand why the grid control would allow you to > >>> select multiple items and not have a mechanism to indicate which rows > >>> were selected and which were not. Perhaps it does have such a > mechanism > >>> but I haven't been able to find it. Of course it could be deeply > buried > >>> but then thats a bad thing too. > >>> Anyway, what you can probably do is create a collection that holds > >>> each selected item's row number, use the row number as the index into > >>> the collection. Each time the select event is raised by the control, > >>> trap it and store the row that was clicked on in the collection. If > you > >>> get an error when trying to add the row number to the collection > because > >>> the index key already exists then you know the row was already stored > >>> and the user has clicked on a row to deselected it. Remove that row > from > >>> the collection, thus keeping the information in the collection in sync > >>> with the selected rows in the grid. > >>> IMHO this is a kludge to accommodate the grid control which should > >>> have a mechanism that exposes the selected state of it's row items to > >>> the programmer. > >>> > >>> Steve. > >>> > >> At the moment, you have to test the Selected property of each row to > get > >> the > >> selection. > >> > >> I admit that the process is not optimal! Maybe I should add a Selection > >> property that would return the indexes of all selected rows? > >> > >> -- > >> Benoit Minisini > >> > >> > ------------------------------------------------------------------------- > >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > >> Don't miss this year's exciting event. There's still time to save $100. > >> Use priority code J8TL2D2. > >> > >> > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Wed Apr 16 10:46:57 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 16 Apr 2008 10:46:57 +0200 Subject: [Gambas-user] Reading from Command Line Message-ID: <4805BD01.3060804@...221...> Hi, just forgot how to read parameters from the command line which are given when starting the program. Thanks for your hints... Rolf From eilert-sprachen at ...221... Wed Apr 16 12:30:57 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 16 Apr 2008 12:30:57 +0200 Subject: [Gambas-user] Reading from Command Line In-Reply-To: <4805BD01.3060804@...221...> References: <4805BD01.3060804@...221...> Message-ID: <4805D561.1010407@...221...> I'm happy, I found it: Application.Args is it, right? Was looking for something else and caught by surprise... :-) Rolf Rolf-Werner Eilert schrieb: > Hi, > > just forgot how to read parameters from the command line which are given > when starting the program. > > Thanks for your hints... > > Rolf > From rospolosco at ...152... Wed Apr 16 12:30:53 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 16 Apr 2008 12:30:53 +0200 Subject: [Gambas-user] Reading from Command Line In-Reply-To: <4805BD01.3060804@...221...> References: <4805BD01.3060804@...221...> Message-ID: <200804161230.53961.rospolosco@...152...> Alle 10:46, mercoled? 16 aprile 2008, Rolf-Werner Eilert ha scritto: > Hi, > > just forgot how to read parameters from the command line which are given > when starting the program. > > Thanks for your hints... > > Rolf > Application.Args[] Stefano > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java >one _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Wed Apr 16 12:32:27 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 16 Apr 2008 12:32:27 +0200 Subject: [Gambas-user] Reading from Command Line In-Reply-To: <200804161230.53961.rospolosco@...152...> References: <4805BD01.3060804@...221...> <200804161230.53961.rospolosco@...152...> Message-ID: <200804161232.27592.rospolosco@...152...> Alle 12:30, mercoled? 16 aprile 2008, Stefano Palmeri ha scritto: > Alle 10:46, mercoled? 16 aprile 2008, Rolf-Werner Eilert ha scritto: > > Hi, > > > > just forgot how to read parameters from the command line which are given > > when starting the program. > > > > Thanks for your hints... > > > > Rolf > > Application.Args[] > > Stefano You preceded me by one nanosecond :-) Bye > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/ja > >va one _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java >one _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Wed Apr 16 12:44:13 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 16 Apr 2008 12:44:13 +0200 Subject: [Gambas-user] Reading from Command Line In-Reply-To: <200804161232.27592.rospolosco@...152...> References: <4805BD01.3060804@...221...> <200804161230.53961.rospolosco@...152...> <200804161232.27592.rospolosco@...152...> Message-ID: <4805D87D.4080309@...221...> Stefano Palmeri schrieb: > Alle 12:30, mercoled? 16 aprile 2008, Stefano Palmeri ha scritto: >> Alle 10:46, mercoled? 16 aprile 2008, Rolf-Werner Eilert ha scritto: >>> Hi, >>> >>> just forgot how to read parameters from the command line which are given >>> when starting the program. >>> >>> Thanks for your hints... >>> >>> Rolf >> Application.Args[] >> >> Stefano > > You preceded me by one nanosecond :-) > > Bye > Yeah - Gambas programmers are fast :-)) Rolf From steven at ...1652... Wed Apr 16 12:59:00 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Wed, 16 Apr 2008 12:59:00 +0200 Subject: [Gambas-user] directory structure development environment Message-ID: <1208343540.8614.38.camel@...1816...> Hi, Probably a stupid question ;-) , but anyway : In my application i have more and more sub programs that do some tasks in the back-ground. These programs are developed each in it's own directory (as I understood it, it's not possible otherwise). All of them have some common routines like opening and accessing a database, printing, accessing openoffice files, etc. Now, I can, of course, put those routines in a class or module, and each time copie these to the current directory. However, thats a lot of work, since each time i change something in them, i have to apply these changes to all directories. Is there now way (apart from making a component) to have some 'central' derectory where one could puut these modules/classes and them include them into a program (like with javascript include statement). That would really be a lot of help in the development. Or maybe to make a component that does NOT integrate into the gambas source tree ? Thanks in advance, Steven From wdahn at ...1000... Wed Apr 16 14:10:54 2008 From: wdahn at ...1000... (Werner) Date: Wed, 16 Apr 2008 20:10:54 +0800 Subject: [Gambas-user] directory structure development environment In-Reply-To: <1208343540.8614.38.camel@...1816...> References: <1208343540.8614.38.camel@...1816...> Message-ID: <4805ECCE.5030901@...1000...> Steven Lobbezoo wrote: > Hi, > > Probably a stupid question ;-) , but anyway : > > In my application i have more and more sub programs that do some tasks > in the back-ground. These programs are developed each in it's own > directory (as I understood it, it's not possible otherwise). All of them > have some common routines like opening and accessing a database, > printing, accessing openoffice files, etc. > > Now, I can, of course, put those routines in a class or module, and each > time copie these to the current directory. However, thats a lot of work, > since each time i change something in them, i have to apply these > changes to all directories. > > Is there now way (apart from making a component) to have some 'central' > derectory where one could puut these modules/classes and them include > them into a program (like with javascript include statement). > > That would really be a lot of help in the development. Or maybe to make > a component that does NOT integrate into the gambas source tree ? > > Thanks in advance, > Steven > > > If you create a class/module, put it in a neutral place and then from each project have a symbolic link point to it seems to work. Regards, Werner From gambas at ...1... Wed Apr 16 14:11:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 16 Apr 2008 14:11:13 +0200 Subject: [Gambas-user] directory structure development environment In-Reply-To: <1208343540.8614.38.camel@...1816...> References: <1208343540.8614.38.camel@...1816...> Message-ID: <200804161411.13782.gambas@...1...> On mercredi 16 avril 2008, Steven Lobbezoo wrote: > Hi, > > Probably a stupid question ;-) , but anyway : > > In my application i have more and more sub programs that do some tasks > in the back-ground. These programs are developed each in it's own > directory (as I understood it, it's not possible otherwise). All of them > have some common routines like opening and accessing a database, > printing, accessing openoffice files, etc. > > Now, I can, of course, put those routines in a class or module, and each > time copie these to the current directory. However, thats a lot of work, > since each time i change something in them, i have to apply these > changes to all directories. > > Is there now way (apart from making a component) to have some 'central' > derectory where one could puut these modules/classes and them include > them into a program (like with javascript include statement). > > That would really be a lot of help in the development. Or maybe to make > a component that does NOT integrate into the gambas source tree ? > > Thanks in advance, > Steven > You can use symbolic links: when you add a new form, a new class and so on, you have a check box in the dialog that allows you to specify that you want to make a symbolic link instead of copying the file. You can do that by hand too. This is rudimentary, but useful anyway. You could share code by using a component too, but it is a little complex, and the packager don't correctly deal with dependencies on user components at the moment. I will try to fix that... Regards, -- Benoit Minisini From steven at ...1652... Wed Apr 16 14:48:57 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Wed, 16 Apr 2008 14:48:57 +0200 Subject: [Gambas-user] directory structure development environment In-Reply-To: <200804161411.13782.gambas@...1...> References: <1208343540.8614.38.camel@...1816...> <200804161411.13782.gambas@...1...> Message-ID: <1208350137.8614.45.camel@...1816...> Great, that solves it for me. Thanks, Steven Le mercredi 16 avril 2008 ? 14:11 +0200, Benoit Minisini a ?crit : > On mercredi 16 avril 2008, Steven Lobbezoo wrote: > > Hi, > > > > Probably a stupid question ;-) , but anyway : > > > > In my application i have more and more sub programs that do some tasks > > in the back-ground. These programs are developed each in it's own > > directory (as I understood it, it's not possible otherwise). All of them > > have some common routines like opening and accessing a database, > > printing, accessing openoffice files, etc. > > > > Now, I can, of course, put those routines in a class or module, and each > > time copie these to the current directory. However, thats a lot of work, > > since each time i change something in them, i have to apply these > > changes to all directories. > > > > Is there now way (apart from making a component) to have some 'central' > > derectory where one could puut these modules/classes and them include > > them into a program (like with javascript include statement). > > > > That would really be a lot of help in the development. Or maybe to make > > a component that does NOT integrate into the gambas source tree ? > > > > Thanks in advance, > > Steven > > > > You can use symbolic links: when you add a new form, a new class and so on, > you have a check box in the dialog that allows you to specify that you want > to make a symbolic link instead of copying the file. > > You can do that by hand too. > > This is rudimentary, but useful anyway. > > You could share code by using a component too, but it is a little complex, and > the packager don't correctly deal with dependencies on user components at the > moment. I will try to fix that... > > Regards, > From pinozollo at ...626... Wed Apr 16 16:34:12 2008 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 16 Apr 2008 10:34:12 -0400 Subject: [Gambas-user] IDE editor problem In-Reply-To: References: Message-ID: <200804161034.14826.pinozollo@...626...> Alle 06:31, mercoled? 16 aprile 2008, gambas-user-request at lists.sourceforge.net ha scritto: > is it a new Basic synthax ? ?;) > > if you want to know if a variable is null in Basic ... better in gambas, > > IF Radio1 <> NULL THEN Yes this is the right syntax... But, as you can see in the title of this append, my observation was concerning the IDE editor, not the the Gambas interpreter. > Even typing one or more spaces between Radio1 and NOT, the editor removes them leaving a single word of which one part is black and the other is blue. The interpreter then reads a single word. Regards Pino From rterry at ...1822... Mon Apr 14 00:14:20 2008 From: rterry at ...1822... (richard terry) Date: Mon, 14 Apr 2008 08:14:20 +1000 Subject: [Gambas-user] DirView Control Help In-Reply-To: References: Message-ID: <200804140814.20875.rterry@...1822...> On Mon, 14 Apr 2008 04:39:07 am Demosthenes Koptsis wrote: > Hi to all. > > I have a DirView control. By default the control lists the contents of > /home/user directory when it is created. You can also fill the root property in in the control IDE if you want; > I changed the Root directory but the /home/usr contents are still > listed when the program runs. If you set the root property which I assume you have, it should work ie: eg in Form_Open() put Filechooser1.root = "/the/directory/I/want/to/start/in" If your problem is somewhat more esoteric post the project tar.gz file. Not sure how experienced you are with gambas, but if you are stuck for not knowing how to set something, note that the properties in the IDE for that control can by and large by addressed as such in code ie control.property = Also browing the help will give you the properties/methods, but unfortunately usually no examples. Richard > > Is it possible to open or close directories by code? Actually i want > to set Root directory at design time and list the contents only of > this directory at running time. > > Thanks. From wspinto at ...1405... Wed Apr 16 19:48:18 2008 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Wed, 16 Apr 2008 14:48:18 -0300 Subject: [Gambas-user] Minimize event in forms In-Reply-To: References: Message-ID: <1208368097.48063be202639@...1825...> Hi everyone! In form exist events: hide, show, close, lostfocus, .... I'm need the minimize event. FORM_Minimize() How to???? Reguards, Souza, Wellington ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From rterry at ...1822... Wed Apr 16 00:50:12 2008 From: rterry at ...1822... (richard terry) Date: Wed, 16 Apr 2008 08:50:12 +1000 Subject: [Gambas-user] changing the cell colours in grid (oops forgot the graphic) Message-ID: <200804160850.12937.rterry@...1822...> When I select my grid it gets the default KDE plastik dark blue marquee which as the attatched piccie shows is really hard to read. I've tried making my own colour scheme in KDE, which an interesting result that the gambas IDE updates its colours, including the properties grid in gambas, but when the program runs it still gets the plastik dark blue. Is there anyway to change the grid forecolour on a per cell or selected row basis? Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: grid_blue_ marquee.png Type: image/png Size: 29905 bytes Desc: not available URL: From hscast at ...407... Wed Apr 16 22:45:48 2008 From: hscast at ...407... (Scott Castaline) Date: Wed, 16 Apr 2008 16:45:48 -0400 Subject: [Gambas-user] Gambas2 on Fedora 8 (example files) Message-ID: <4806657C.1040700@...407...> I have installed Gambas-2.5 on my Fedora 8 system. I seemed to have gone through less problems than when I was trying to install 2.4 on Fedora 7. The only thing is, when I try to open any of the example projects I get an error that they are not where they are supposed to be. I have verified that all files are located in /usr/share/gambas2/examples/..... I have set the permissions/ownerships up the same as in Fedora 7 and all worked on that system (Dual boot setup of F7 & F8). Any ideas? TIA Scott From rospolosco at ...152... Wed Apr 16 22:55:55 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 16 Apr 2008 22:55:55 +0200 Subject: [Gambas-user] Minimize event in forms In-Reply-To: <1208368097.48063be202639@...1825...> References: <1208368097.48063be202639@...1825...> Message-ID: <200804162255.55991.rospolosco@...152...> Alle 19:48, mercoled? 16 aprile 2008, Wellington de Souza Pinto ha scritto: > Hi everyone! > > In form exist events: hide, show, close, lostfocus, .... > > I'm need the minimize event. > FORM_Minimize() > > How to???? > > Reguards, > > Souza, Wellington Hi. I use a workaround for this. It works using gb.qt. PUBLIC SUB Form_Deactivate() IF ME.Minimized THEN PRINT "I'm minimized" END Stefano > ___________________________________________________________________________ >________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A > Embratel tem tarifas muito baratas esperando por voc?. Aproveite! > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java >one _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Wed Apr 16 23:08:21 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 16 Apr 2008 23:08:21 +0200 Subject: [Gambas-user] changing the cell colours in grid (oops forgot the graphic) In-Reply-To: <200804160850.12937.rterry@...1822...> References: <200804160850.12937.rterry@...1822...> Message-ID: <200804162308.22018.rospolosco@...152...> Alle 00:50, mercoled? 16 aprile 2008, richard terry ha scritto: > When I select my grid it gets the default KDE plastik dark blue marquee > which as the attatched piccie shows is really hard to read. > > I've tried making my own colour scheme in KDE, which an interesting result > that the gambas IDE updates its colours, including the properties grid in > gambas, but when the program runs it still gets the plastik dark blue. > > Is there anyway to change the grid forecolour on a per cell or selected row > basis? > > Regards > > Richard If you're talking about the GridView control, you have to do (examples colors): Gridview1[row, column].forecolor = color.white Gridview1[row, column].backcolor = color.black Bye, Stefano From gambas at ...1... Wed Apr 16 23:27:52 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 16 Apr 2008 23:27:52 +0200 Subject: [Gambas-user] Gambas2 on Fedora 8 (example files) In-Reply-To: <4806657C.1040700@...407...> References: <4806657C.1040700@...407...> Message-ID: <200804162327.52160.gambas@...1...> On mercredi 16 avril 2008, Scott Castaline wrote: > I have installed Gambas-2.5 on my Fedora 8 system. I seemed to have gone > through less problems than when I was trying to install 2.4 on Fedora 7. > The only thing is, when I try to open any of the example projects I get > an error that they are not where they are supposed to be. I have > verified that all files are located in /usr/share/gambas2/examples/..... > I have set the permissions/ownerships up the same as in Fedora 7 and all > worked on that system (Dual boot setup of F7 & F8). Any ideas? > > TIA > Scott > Please provide some details: some error messages for example. -- Benoit Minisini From pinozollo at ...626... Wed Apr 16 23:44:13 2008 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 16 Apr 2008 17:44:13 -0400 Subject: [Gambas-user] changing the cell colours in grid (oops forgot the graphic) In-Reply-To: References: Message-ID: <200804161744.19986.pinozollo@...626...> Alle 16:21, mercoled? 16 aprile 2008, gambas-user-request at lists.sourceforge.net ha scritto: > From: richard terry > Subject: [Gambas-user] changing the cell colours in grid (oops forgot > ????????the?????graphic) > To: mailing list for gambas users > Message-ID: <200804160850.12937.rterry at ...1822...> > Content-Type: text/plain; charset="us-ascii" > > When I select my grid it gets the default KDE plastik dark blue marquee > which as the attatched piccie shows is really hard to read. > > I've tried making my own colour scheme in KDE, which an interesting result > that the gambas IDE updates its colours, including the properties grid in > gambas, but when the program runs it still gets the plastik dark blue. > > Is there anyway to change the grid forecolour on a per cell or selected row > basis? > > Regards > > Richard Try: GridSpot[Riga, 0].ForeColor = &HFF0000& or GridSpot[Riga, 3].BackColor = &HCBFFCC& Bye Pino From rterry at ...1822... Wed Apr 16 23:03:37 2008 From: rterry at ...1822... (richard terry) Date: Thu, 17 Apr 2008 07:03:37 +1000 Subject: [Gambas-user] changing the cell colours in grid (oops forgot the graphic) In-Reply-To: <200804162308.22018.rospolosco@...152...> References: <200804160850.12937.rterry@...1822...> <200804162308.22018.rospolosco@...152...> Message-ID: <200804170703.37411.rterry@...1822...> On Thu, 17 Apr 2008 07:08:21 am Stefano Palmeri wrote: > Alle 00:50, mercoled? 16 aprile 2008, richard terry ha scritto: > > When I select my grid it gets the default KDE plastik dark blue marquee > > which as the attatched piccie shows is really hard to read. > > > > I've tried making my own colour scheme in KDE, which an interesting > > result that the gambas IDE updates its colours, including the properties > > grid in gambas, but when the program runs it still gets the plastik dark > > blue. > > > > Is there anyway to change the grid forecolour on a per cell or selected > > row basis? > > > > Regards > > > > Richard > > If you're talking about the GridView control, you have to do (examples > colors): > > Gridview1[row, column].forecolor = color.white > Gridview1[row, column].backcolor = color.black > > Bye, Yes, but that does not change the marquee colour, all it does is change the cell colour background and foreground colours. Try it and then select a row and see. I wonder if there is any other way? Regards Richard > > Stefano From rterry at ...1822... Wed Apr 16 00:40:45 2008 From: rterry at ...1822... (richard terry) Date: Wed, 16 Apr 2008 08:40:45 +1000 Subject: [Gambas-user] non-blinding theme In-Reply-To: <16645845.post@...1379...> References: <16633224.post@...1379...> <200804120245.10272.gambas@...1...> <16645845.post@...1379...> Message-ID: <200804160840.45600.rterry@...1822...> On Sat, 12 Apr 2008 03:53:02 pm kevinfishburne wrote: > Benoit Minisini wrote: > > Cool. I will add it to the development version. > > Awesome, I'm glad you like it. That will be my first open-source > contribution (though a small one). Keep up the good work on Gambas. It's > truly a killer app; I rank it up there with OpenOffice and Apache. I'm > strongly considering adding it as a default installed app on the PCs I > sell. Have a good weekend everyone. > > ----- > 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 Followed the instrucitons and saved it as a .theme in my to no avail. Where ist the .theme file meant to go - I saved it to my working directory, and could locate and load the file (and it looked the same in structure as all the other .theme files if I did cat filename.theme, but once loaded none of the values appeared in the window. Regards Richard From hscast at ...407... Thu Apr 17 02:38:00 2008 From: hscast at ...407... (Scott Castaline) Date: Wed, 16 Apr 2008 20:38:00 -0400 Subject: [Gambas-user] Gambas2 on Fedora 8 (example files) In-Reply-To: <200804162327.52160.gambas@...1...> References: <4806657C.1040700@...407...> <200804162327.52160.gambas@...1...> Message-ID: <48069BE8.5050205@...407...> Benoit Minisini wrote: > On mercredi 16 avril 2008, Scott Castaline wrote: > >> I have installed Gambas-2.5 on my Fedora 8 system. I seemed to have gone >> through less problems than when I was trying to install 2.4 on Fedora 7. >> The only thing is, when I try to open any of the example projects I get >> an error that they are not where they are supposed to be. I have >> verified that all files are located in /usr/share/gambas2/examples/..... >> I have set the permissions/ownerships up the same as in Fedora 7 and all >> worked on that system (Dual boot setup of F7 & F8). Any ideas? >> >> TIA >> Scott >> >> > > Please provide some details: some error messages for example. > > This project does not exist. /usr/share/gambas2/examples/Automation/KateBrowser From capelz at ...626... Thu Apr 17 03:05:48 2008 From: capelz at ...626... (Clarke Pelz) Date: Wed, 16 Apr 2008 17:05:48 -0800 Subject: [Gambas-user] 2.2.5 and disabled QT Message-ID: <1f6b78520804161805y64083e94ia6048a27f58af004@...627...> Hi all- I've installed Gambas2 on a couple 32 bit machines without too much trouble, but compiling it on my 64bit Fedora 8 KDE machine (Linux 2.6.24.4-64.fc8 x86_64) is proving problematic. Despite having qt, qt-devel, qt4, qt4-devel, kdebase, kdebase-devel, kdelibs, kdelibs-devel, kdebase4, kdebase4-devel, kdelibs4 and kdelibs4-devel installed ./configure reports these among the disabled components: - gb.qt - gb.qt.kde - gb.qte I believe I need at least the first two to run my app. gambas2-2.5.0/gb.qt/config.log reports this: configure:22076: checking for QT component headers configure:22162: result: no configure:22196: checking for QT component libraries configure:22294: result: /usr/lib64/qt-3.3/lib/ configure:22344: WARNING: *** QT component is disabled configure:22637: WARNING: *** QT OpenGL component is disabled configure:22795: creating ./config.status While the ./configure output (attached) reports this: ... checking for QT meta-object compiler... /usr/bin/ checking for QT component headers... no * Failed to find file qptrlist.h checking for QT component libraries... /usr/lib64/qt-3.3/lib/ ... However locate finds qptrlist.h... # locate qptrlist.h /usr/lib64/qt-3.3/include/qptrlist.h /usr/share/doc/qt-devel-3.3.8b/html/qptrlist.html Is ./configure not looking in the right place for the headers? Thanks for your insight. -- -Clarke. -- -Clarke. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: output.txt URL: From kevinfishburne at ...1887... Thu Apr 17 05:44:05 2008 From: kevinfishburne at ...1887... (kevinfishburne) Date: Wed, 16 Apr 2008 20:44:05 -0700 (PDT) Subject: [Gambas-user] non-blinding theme In-Reply-To: <200804160840.45600.rterry@...1822...> References: <16633224.post@...1379...> <200804120245.10272.gambas@...1...> <16645845.post@...1379...> <200804160840.45600.rterry@...1822...> Message-ID: <16738221.post@...1379...> richard terry-2 wrote: > > Followed the instrucitons and saved it as a .theme in my to no avail. > > Where ist the .theme file meant to go - I saved it to my working > directory, > and could locate and load the file (and it looked the same in structure as > all the other .theme files if I did cat filename.theme, but once loaded > none > of the values appeared in the window. > That is strange. I'm using Gambas 4.2.1-1ubuntu1 from the repo. It should load the file regardless of where it's stored. The one odd issue I had was when I tried to rename the theme file, Ubuntu inserted text into the file to make it a launcher since it had a '.theme' extension. Loading the theme with the launcher header caused Gambas to crash. I had to edit and resave the file to remove the extra text. You could always set the colors manually, save them as a theme, then compare the two theme files. ----- 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://www.nabble.com/non-blinding-theme-tp16633224p16738221.html Sent from the gambas-user mailing list archive at Nabble.com. From ronstk at ...239... Thu Apr 17 07:52:50 2008 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 17 Apr 2008 07:52:50 +0200 Subject: [Gambas-user] 2.2.5 and disabled QT In-Reply-To: <1f6b78520804161805y64083e94ia6048a27f58af004@...627...> References: <1f6b78520804161805y64083e94ia6048a27f58af004@...627...> Message-ID: <200804170752.51192.ronstk@...239...> On Thursday 17 April 2008 03:05, Clarke Pelz wrote: > However locate finds qptrlist.h... > # locate qptrlist.h > /usr/lib64/qt-3.3/include/qptrlist.h > /usr/share/doc/qt-devel-3.3.8b/html/qptrlist.html > Should '/usr/lib64/qt-3.3/include/qptrlist.h' be '/usr/lib/qt-3.3/include/qptrlist.h' ??? As far I know qt-3.3 is 32bit. In case gambas configure search for qt3 in /usr/lib/ amd /usr/include/ you could use a symlink /usr/lib/qt-3.3 -> /usr/lib64/qt-3.3 Optional you can add a option to ./configure -C --libdir=/usr/lib --includedir=/usr/include Ron From rospolosco at ...152... Thu Apr 17 10:19:09 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 17 Apr 2008 10:19:09 +0200 Subject: [Gambas-user] changing the cell colours in grid (oops forgot the graphic) In-Reply-To: <200804170703.37411.rterry@...1822...> References: <200804160850.12937.rterry@...1822...> <200804162308.22018.rospolosco@...152...> <200804170703.37411.rterry@...1822...> Message-ID: <200804171019.09309.rospolosco@...152...> Alle 23:03, mercoled? 16 aprile 2008, richard terry ha scritto: > On Thu, 17 Apr 2008 07:08:21 am Stefano Palmeri wrote: > > Alle 00:50, mercoled? 16 aprile 2008, richard terry ha scritto: > > > When I select my grid it gets the default KDE plastik dark blue marquee > > > which as the attatched piccie shows is really hard to read. > > > > > > I've tried making my own colour scheme in KDE, which an interesting > > > result that the gambas IDE updates its colours, including the > > > properties grid in gambas, but when the program runs it still gets the > > > plastik dark blue. > > > > > > Is there anyway to change the grid forecolour on a per cell or selected > > > row basis? > > > > > > Regards > > > > > > Richard > > > > If you're talking about the GridView control, you have to do (examples > > colors): > > > > Gridview1[row, column].forecolor = color.white > > Gridview1[row, column].backcolor = color.black > > > > Bye, > > Yes, but that does not change the marquee colour, all it does is change the > cell colour background and foreground colours. Try it and then select a row > and see. > > I wonder if there is any other way? > > Regards > > Richard > Ok. I understood the issue. I made a little example with a simple workaround. Ciao, Stefano > > Stefano > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java >one _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: grid-marque-0.0.1.tar.gz Type: application/x-tgz Size: 8177 bytes Desc: not available URL: From ariefbayu at ...626... Thu Apr 17 11:00:42 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Thu, 17 Apr 2008 16:00:42 +0700 Subject: [Gambas-user] Google Api for generate charts In-Reply-To: <47EDE979.4040707@...151...> References: <47EDE979.4040707@...151...> Message-ID: <976ad9050804170200j29afdca4q67efd52904638513@...627...> On Sat, Mar 29, 2008 at 2:02 PM, andy2 wrote: > I can't use in Gambas component WebBrowser the google api for generate > charts. > Please try these api at page http://code.google.com/apis/chart/... > > Example of url: > > > http://chart.apis.google.com/chart?cht=lc&chs=200x125&chd=s:aaaabbbbbccccfffff I'm just test it and it work!!! the solution is to write a html page with only data and have your WebBrowser object's path set to this file. eg: WebBrowser1.Path = "/tmp/test.html" where test.html is: ------- ------- That's it, now you have google's graph API working ;) -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From gambas at ...1... Thu Apr 17 11:09:04 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Apr 2008 11:09:04 +0200 Subject: [Gambas-user] non-blinding theme In-Reply-To: <16738221.post@...1379...> References: <16633224.post@...1379...> <200804160840.45600.rterry@...1822...> <16738221.post@...1379...> Message-ID: <200804171109.04461.gambas@...1...> On jeudi 17 avril 2008, kevinfishburne wrote: > richard terry-2 wrote: > > Followed the instrucitons and saved it as a .theme in my to no avail. > > > > Where ist the .theme file meant to go - I saved it to my working > > directory, > > and could locate and load the file (and it looked the same in structure > > as all the other .theme files if I did cat filename.theme, but once > > loaded none > > of the values appeared in the window. > > That is strange. I'm using Gambas 4.2.1-1ubuntu1 from the repo. It should > load the file regardless of where it's stored. The one odd issue I had was > when I tried to rename the theme file, Ubuntu inserted text into the file > to make it a launcher since it had a '.theme' extension. Loading the theme > with the launcher header caused Gambas to crash. I had to edit and resave > the file to remove the extra text. > > You could always set the colors manually, save them as a theme, then > compare the two theme files. > > ----- > 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 Do you mean that Ubuntu modifies a file as soon as it has the ".theme" extension, wherever you save it? WTF? I thought that only Windows does this sort of things! Please show me what is added to the ".theme" file. Of course, I can change the extension in the future to "gambas-theme" instead of "gambas.theme". Regards, -- Benoit Minisini From kevinfishburne at ...1887... Thu Apr 17 13:53:30 2008 From: kevinfishburne at ...1887... (kevinfishburne) Date: Thu, 17 Apr 2008 04:53:30 -0700 (PDT) Subject: [Gambas-user] non-blinding theme In-Reply-To: <200804171109.04461.gambas@...1...> References: <16633224.post@...1379...> <200804120245.10272.gambas@...1...> <16645845.post@...1379...> <200804160840.45600.rterry@...1822...> <16738221.post@...1379...> <200804171109.04461.gambas@...1...> Message-ID: <16743541.post@...1379...> Benoit Minisini wrote: > > Do you mean that Ubuntu modifies a file as soon as it has the ".theme" > extension, wherever you save it? WTF? I thought that only Windows does > this > sort of things! > > Please show me what is added to the ".theme" file. Of course, I can change > the > extension in the future to "gambas-theme" instead of "gambas.theme". > Haha, good analogy. I didn't like it when I saw it either. I just tested it again, renaming it on my desktop and some arbitrary directory, and it adds the following: [Desktop Entry] Version=1.0 Encoding=UTF-8 Name=some.theme Name[en_US]=some.theme ----- 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://www.nabble.com/non-blinding-theme-tp16633224p16743541.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Thu Apr 17 13:54:35 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Apr 2008 13:54:35 +0200 Subject: [Gambas-user] non-blinding theme In-Reply-To: <16743541.post@...1379...> References: <16633224.post@...1379...> <200804171109.04461.gambas@...1...> <16743541.post@...1379...> Message-ID: <200804171354.35363.gambas@...1...> On jeudi 17 avril 2008, kevinfishburne wrote: > Benoit Minisini wrote: > > Do you mean that Ubuntu modifies a file as soon as it has the ".theme" > > extension, wherever you save it? WTF? I thought that only Windows does > > this > > sort of things! > > > > Please show me what is added to the ".theme" file. Of course, I can > > change the > > extension in the future to "gambas-theme" instead of "gambas.theme". > > Haha, good analogy. I didn't like it when I saw it either. I just tested it > again, renaming it on my desktop and some arbitrary directory, and it adds > the following: > > [Desktop Entry] > Version=1.0 > Encoding=UTF-8 > Name=some.theme > Name[en_US]=some.theme > > ----- > 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 Maybe this is a Nautilus thing... -- Benoit Minisini From jshackney at ...626... Thu Apr 17 16:17:23 2008 From: jshackney at ...626... (Jason Hackney) Date: Thu, 17 Apr 2008 08:17:23 -0600 Subject: [Gambas-user] non-blinding theme In-Reply-To: <200804171354.35363.gambas@...1...> References: <16633224.post@...1379...> <200804171109.04461.gambas@...1...> <16743541.post@...1379...> <200804171354.35363.gambas@...1...> Message-ID: <799be1690804170717x649f317fq7b50f91dc2e1cc5d@...627...> Hmm, had no problem with it in kubuntu. However, I save it in the ~home dir instead of desktop. On 4/17/08, Benoit Minisini wrote: > On jeudi 17 avril 2008, kevinfishburne wrote: > > Benoit Minisini wrote: > > > Do you mean that Ubuntu modifies a file as soon as it has the ".theme" > > > extension, wherever you save it? WTF? I thought that only Windows does > > > this > > > sort of things! ... > Maybe this is a Nautilus thing... From gambas at ...1... Thu Apr 17 17:23:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Apr 2008 17:23:48 +0200 Subject: [Gambas-user] 2.2.5 and disabled QT In-Reply-To: <200804170752.51192.ronstk@...239...> References: <1f6b78520804161805y64083e94ia6048a27f58af004@...627...> <200804170752.51192.ronstk@...239...> Message-ID: <200804171723.48938.gambas@...1...> On jeudi 17 avril 2008, Ron Onstenk wrote: > On Thursday 17 April 2008 03:05, Clarke Pelz wrote: > > However locate finds qptrlist.h... > > # locate qptrlist.h > > /usr/lib64/qt-3.3/include/qptrlist.h > > /usr/share/doc/qt-devel-3.3.8b/html/qptrlist.html > > Should '/usr/lib64/qt-3.3/include/qptrlist.h' > be '/usr/lib/qt-3.3/include/qptrlist.h' ??? > > As far I know qt-3.3 is 32bit. > > In case gambas configure search for qt3 in /usr/lib/ amd /usr/include/ you > could use a symlink /usr/lib/qt-3.3 -> /usr/lib64/qt-3.3 > > Optional you can add a option to ./configure -C --libdir=/usr/lib > --includedir=/usr/include > > > Ron > The problem should have been fixed in revision 1318. If someone could confirm, it would be great. -- Benoit Minisini From ron at ...1740... Thu Apr 17 17:30:22 2008 From: ron at ...1740... (Ron) Date: Thu, 17 Apr 2008 17:30:22 +0200 Subject: [Gambas-user] DIM axbData[1] AS Byte Message-ID: <48076D0E.7030408@...1740...> Hi, PUBLIC SUB Main() DIM axbData[1] AS Byte END Is resulting in this error when run, but compiles ok. ** INTERNAL ERROR ** ** VALUE_default: Unknown default type ** Program aborting. Sorry! :-( I know the syntax is wrong, but this looks like a runtime error caused by the compiler not checking enough... correct? Gambas 2.99 Regards, Ron. From gambas at ...1... Thu Apr 17 22:43:51 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Apr 2008 22:43:51 +0200 Subject: [Gambas-user] DIM axbData[1] AS Byte In-Reply-To: <48076D0E.7030408@...1740...> References: <48076D0E.7030408@...1740...> Message-ID: <200804172243.51197.gambas@...1...> On jeudi 17 avril 2008, Ron wrote: > Hi, > > PUBLIC SUB Main() > DIM axbData[1] AS Byte > END > > Is resulting in this error when run, but compiles ok. > > ** INTERNAL ERROR ** > ** VALUE_default: Unknown default type > ** Program aborting. Sorry! :-( > > I know the syntax is wrong, but this looks like a runtime error caused > by the compiler not checking enough... correct? > > Gambas 2.99 > > Regards, > Ron. > Actually I just forgot a "return" statement, and so the program continues on the aborting error routine! You normally can run that code. I fixed the bug in the revision #1319. Regards, -- Benoit Minisini From gambas.fr at ...626... Thu Apr 17 23:58:06 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 17 Apr 2008 23:58:06 +0200 Subject: [Gambas-user] IDE editor problem In-Reply-To: <200804161034.14826.pinozollo@...626...> References: <200804161034.14826.pinozollo@...626...> Message-ID: <6324a42a0804171458g1b18283bpc8bb424516267306@...627...> but the editor work for the interpreter so it parsing in a bad way a bad synthax... 2008/4/16, Pino Zollo : > > Alle 06:31, mercoled? 16 aprile 2008, > gambas-user-request at lists.sourceforge.net ha scritto: > > > is it a new Basic synthax ? ;) > > > > if you want to know if a variable is null in Basic ... better in gambas, > > > > IF Radio1 <> NULL THEN > > > Yes this is the right syntax... > But, as you can see in the title of this append, my observation was > concerning > the IDE editor, not the the Gambas interpreter. > > > Even typing one or more spaces between Radio1 and NOT, the editor removes > them > leaving a single word of which one part is black and the other is blue. > > The interpreter then reads a single word. > > > Regards > Pino > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pinozollo at ...626... Fri Apr 18 00:58:20 2008 From: pinozollo at ...626... (Pino Zollo) Date: Thu, 17 Apr 2008 18:58:20 -0400 Subject: [Gambas-user] IDE editor problem Message-ID: <200804171858.28086.pinozollo@...626...> Alle 17:58, gioved? 17 aprile 2008, hai scritto: > but the editor work for the interpreter so it parsing in a bad way a bad > synthax... Yes but does not detect the bad syntax ;-) Any how I am aware of the fact that it is impossible to write programs "idiot-proof" as we idiots are very clever ! ;-) Ciao Pino From maximvonk at ...626... Fri Apr 18 01:31:11 2008 From: maximvonk at ...626... (MaxVK) Date: Thu, 17 Apr 2008 16:31:11 -0700 (PDT) Subject: [Gambas-user] Wordcount in a TextEdit Message-ID: <16757888.post@...1379...> Hi, I'm trying to get a wordcount function in a textedit control, but I'm having some real problems. I'm trying to count the spaces and full stops etc, but my wordcounts are inaccurate to say the least. Has anyone implemented such a function, or have any tips that could help me along? Cheers Max -- View this message in context: http://www.nabble.com/Wordcount-in-a-TextEdit-tp16757888p16757888.html Sent from the gambas-user mailing list archive at Nabble.com. From hscast at ...407... Fri Apr 18 02:55:10 2008 From: hscast at ...407... (Scott Castaline) Date: Thu, 17 Apr 2008 20:55:10 -0400 Subject: [Gambas-user] Gambas2 on Fedora 8 (example files) In-Reply-To: <48069BE8.5050205@...407...> References: <4806657C.1040700@...407...> <200804162327.52160.gambas@...1...> <48069BE8.5050205@...407...> Message-ID: <4807F16E.8080709@...407...> Scott Castaline wrote: > Benoit Minisini wrote: > >> On mercredi 16 avril 2008, Scott Castaline wrote: >> >> >>> I have installed Gambas-2.5 on my Fedora 8 system. I seemed to have gone >>> through less problems than when I was trying to install 2.4 on Fedora 7. >>> The only thing is, when I try to open any of the example projects I get >>> an error that they are not where they are supposed to be. I have >>> verified that all files are located in /usr/share/gambas2/examples/..... >>> I have set the permissions/ownerships up the same as in Fedora 7 and all >>> worked on that system (Dual boot setup of F7 & F8). Any ideas? >>> >>> TIA >>> Scott >>> >>> >>> >> Please provide some details: some error messages for example. >> >> >> > This project does not exist. > /usr/share/gambas2/examples/Automation/KateBrowser > Would anybody know why I would get the above error? This happens when i try to open any example project. As mentioned at my original post I am dual booting F8 and F7. F7 has Gambas2.4.1 while F8 has 2.5. Both are setup the same way. TIA Scott > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From ronstk at ...239... Fri Apr 18 07:36:47 2008 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 18 Apr 2008 07:36:47 +0200 Subject: [Gambas-user] Wordcount in a TextEdit In-Reply-To: <16757888.post@...1379...> References: <16757888.post@...1379...> Message-ID: <200804180736.48639.ronstk@...239...> On Friday 18 April 2008 01:31, MaxVK wrote: > > Hi, I'm trying to get a wordcount function in a textedit control, but I'm > having some real problems. > > I'm trying to count the spaces and full stops etc, but my wordcounts are > inaccurate to say the least. > > Has anyone implemented such a function, or have any tips that could help me > along? > > Cheers > > Max sNoCR=string.replace(sTextin,"\r"," ") 'replace control character by spaces sNoLF=string.replace(sNoCR,"\l"," ") 'repeat for tabs ("\t") and any other you can enter asWords=split(sNoLF," ") 'split on spaces ' count(asWords) is dirty word count ' two or more spaces give also a entry on split but are empty count=0 for i=0 to count(asWords) ' loop array for non space entries if trim( asWords[i] ) <> "" then count=count+1 next or use the shell command 'wc' , see 'man wc' Ron PS, just as idea, not test for correct syntax. From gambas at ...1... Fri Apr 18 08:17:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 18 Apr 2008 08:17:48 +0200 Subject: [Gambas-user] Gambas2 on Fedora 8 (example files) In-Reply-To: <4807F16E.8080709@...407...> References: <4806657C.1040700@...407...> <48069BE8.5050205@...407...> <4807F16E.8080709@...407...> Message-ID: <200804180817.48343.gambas@...1...> On vendredi 18 avril 2008, Scott Castaline wrote: > Scott Castaline wrote: > > Benoit Minisini wrote: > >> On mercredi 16 avril 2008, Scott Castaline wrote: > >>> I have installed Gambas-2.5 on my Fedora 8 system. I seemed to have > >>> gone through less problems than when I was trying to install 2.4 on > >>> Fedora 7. The only thing is, when I try to open any of the example > >>> projects I get an error that they are not where they are supposed to > >>> be. I have verified that all files are located in > >>> /usr/share/gambas2/examples/..... I have set the permissions/ownerships > >>> up the same as in Fedora 7 and all worked on that system (Dual boot > >>> setup of F7 & F8). Any ideas? > >>> > >>> TIA > >>> Scott > >> > >> Please provide some details: some error messages for example. > > > > This project does not exist. > > /usr/share/gambas2/examples/Automation/KateBrowser > > Would anybody know why I would get the above error? This happens when i > try to open any example project. As mentioned at my original post I am > dual booting F8 and F7. F7 has Gambas2.4.1 while F8 has 2.5. Both are > setup the same way. > > TIA > Scott > I see only two possible answers: - The directory really does not exist. - You don't have the right to read the directory. I suggest checking the second solution. -- Benoit Minisini From gambas at ...1... Fri Apr 18 08:18:59 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 18 Apr 2008 08:18:59 +0200 Subject: [Gambas-user] Wordcount in a TextEdit In-Reply-To: <200804180736.48639.ronstk@...239...> References: <16757888.post@...1379...> <200804180736.48639.ronstk@...239...> Message-ID: <200804180818.59949.gambas@...1...> On vendredi 18 avril 2008, Ron Onstenk wrote: > On Friday 18 April 2008 01:31, MaxVK wrote: > > Hi, I'm trying to get a wordcount function in a textedit control, but I'm > > having some real problems. > > > > I'm trying to count the spaces and full stops etc, but my wordcounts are > > inaccurate to say the least. > > > > Has anyone implemented such a function, or have any tips that could help > > me along? > > > > Cheers > > > > Max > > sNoCR=string.replace(sTextin,"\r"," ") 'replace control character by spaces > sNoLF=string.replace(sNoCR,"\l"," ") > 'repeat for tabs ("\t") and any other you can enter > > asWords=split(sNoLF," ") 'split on spaces > ' count(asWords) is dirty word count > ' two or more spaces give also a entry on split but are empty > > count=0 > for i=0 to count(asWords) ' loop array for non space entries > if trim( asWords[i] ) <> "" then count=count+1 > next > You can tell Split() not to return void entries with its fourth optional argument. Regards, -- Benoit Minisini From leonardo at ...1237... Fri Apr 18 12:10:49 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 18 Apr 2008 12:10:49 +0200 Subject: [Gambas-user] PDF file sent by gb.net.smtp Message-ID: <480873A9.8050906@...1237...> Is it possible to send a PDF file using the gb.net.smtp component? I made some tests and I was not able to get my file be sent by the component. I only received an empty document... Maybe the PDF Mime type isn't supported? -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From leonardo at ...1237... Fri Apr 18 12:26:21 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 18 Apr 2008 12:26:21 +0200 Subject: [Gambas-user] PDF file sent by gb.net.smtp In-Reply-To: <480873A9.8050906@...1237...> References: <480873A9.8050906@...1237...> Message-ID: <4808774D.1080802@...1237...> Leonardo Miliani ha scritto: > Is it possible to send a PDF file using the gb.net.smtp component? > I made some tests and I was not able to get my file be sent by the > component. I only received an empty document... > Maybe the PDF Mime type isn't supported? > I used this code: PUBLIC SUB SendMail_Click() DIM PostService AS NEW SmtpClient PostService.To.Add(Trim(txtEmail.Text)) PostService.Subject = Trim(txtSubject.Text) PostService.Add(txtText.Text) PostService.Add(FileChooser1.SelectedPath, "application/pdf", "document.pdf") PostService.From = "xxxxxxx at ...1889..." PostService.Host = "xxxxx.yyyyyy.zzz" PostService.Send Message("Message sent") END -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From maximvonk at ...626... Fri Apr 18 13:06:17 2008 From: maximvonk at ...626... (Maximillian Von Kloisterheim) Date: Fri, 18 Apr 2008 12:06:17 +0100 Subject: [Gambas-user] Wordcount in a TextEdit In-Reply-To: <200804180736.48639.ronstk@...239...> References: <16757888.post@...1379...> <200804180736.48639.ronstk@...239...> Message-ID: <480880A9.1070604@...626...> Ron Onstenk wrote: > sNoCR=string.replace(sTextin,"\r"," ") 'replace control character by spaces > sNoLF=string.replace(sNoCR,"\l"," ") > 'repeat for tabs ("\t") and any other you can enter > > asWords=split(sNoLF," ") 'split on spaces > ' count(asWords) is dirty word count > ' two or more spaces give also a entry on split but are empty > > count=0 > for i=0 to count(asWords) ' loop array for non space entries > if trim( asWords[i] ) <> "" then count=count+1 > next > > > or use the shell command 'wc' , see 'man wc' > > Ron Thanks Ron, that did the trick a whole lot better than my efforts so far. Regards Max From gambas at ...1... Fri Apr 18 15:37:20 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 18 Apr 2008 15:37:20 +0200 Subject: [Gambas-user] PDF file sent by gb.net.smtp In-Reply-To: <4808774D.1080802@...1237...> References: <480873A9.8050906@...1237...> <4808774D.1080802@...1237...> Message-ID: <200804181537.20336.gambas@...1...> On vendredi 18 avril 2008, Leonardo Miliani wrote: > Leonardo Miliani ha scritto: > > Is it possible to send a PDF file using the gb.net.smtp component? > > I made some tests and I was not able to get my file be sent by the > > component. I only received an empty document... > > Maybe the PDF Mime type isn't supported? > > I used this code: > PUBLIC SUB SendMail_Click() > DIM PostService AS NEW SmtpClient > > PostService.To.Add(Trim(txtEmail.Text)) > PostService.Subject = Trim(txtSubject.Text) > PostService.Add(txtText.Text) > PostService.Add(FileChooser1.SelectedPath, "application/pdf", > "document.pdf") The first argument is the data, not the file path. You must write: PostService.Add(File.Load(FileChooser1.SelectedPath), "application/pdf", "document.pdf") Regards, -- Benoit Minisini From ronstk at ...239... Fri Apr 18 17:39:55 2008 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 18 Apr 2008 17:39:55 +0200 Subject: [Gambas-user] Wordcount in a TextEdit In-Reply-To: <480880A9.1070604@...626...> References: <16757888.post@...1379...> <200804180736.48639.ronstk@...239...> <480880A9.1070604@...626...> Message-ID: <200804181739.55865.ronstk@...239...> On Friday 18 April 2008 13:06, Maximillian Von Kloisterheim wrote: > Ron Onstenk wrote: > > sNoCR=string.replace(sTextin,"\r"," ") 'replace control character by spaces > > sNoLF=string.replace(sNoCR,"\l"," ") > > 'repeat for tabs ("\t") and any other you can enter > > > > asWords=split(sNoLF," ") 'split on spaces > > ' count(asWords) is dirty word count > > ' two or more spaces give also a entry on split but are empty > > > > count=0 > > for i=0 to count(asWords) ' loop array for non space entries > > if trim( asWords[i] ) <> "" then count=count+1 > > next > > > > > > or use the shell command 'wc' , see 'man wc' > > > > Ron > > Thanks Ron, that did the trick a whole lot better than my efforts so far. > > Regards > > Max Glad it did help but what solution? the basic style or the shell to wc command? >You can tell Split() not to return void entries with its fourth optional argument. > >Regards, > >-- >Benoit Minisini The fourth argument is new for me. Never to old to learn ;) Greats to all Ron From rterry at ...1822... Thu Apr 17 22:56:50 2008 From: rterry at ...1822... (richard terry) Date: Fri, 18 Apr 2008 06:56:50 +1000 Subject: [Gambas-user] changing the cell colours in grid (oops forgot the graphic) In-Reply-To: <200804171019.09309.rospolosco@...152...> References: <200804160850.12937.rterry@...1822...> <200804170703.37411.rterry@...1822...> <200804171019.09309.rospolosco@...152...> Message-ID: <200804180656.50998.rterry@...1822...> Cool, thanks, that works, I'll try the code in my app and see it fits. Regards Richard On Thu, 17 Apr 2008 06:19:09 pm Stefano Palmeri wrote: > Alle 23:03, mercoled? 16 aprile 2008, richard terry ha scritto: > > On Thu, 17 Apr 2008 07:08:21 am Stefano Palmeri wrote: > > > Alle 00:50, mercoled? 16 aprile 2008, richard terry ha scritto: > > > > When I select my grid it gets the default KDE plastik dark blue > > > > marquee which as the attatched piccie shows is really hard to read. > > > > > > > > I've tried making my own colour scheme in KDE, which an interesting > > > > result that the gambas IDE updates its colours, including the > > > > properties grid in gambas, but when the program runs it still gets > > > > the plastik dark blue. > > > > > > > > Is there anyway to change the grid forecolour on a per cell or > > > > selected row basis? > > > > > > > > Regards > > > > > > > > Richard > > > > > > If you're talking about the GridView control, you have to do (examples > > > colors): > > > > > > Gridview1[row, column].forecolor = color.white > > > Gridview1[row, column].backcolor = color.black > > > > > > Bye, > > > > Yes, but that does not change the marquee colour, all it does is change > > the cell colour background and foreground colours. Try it and then select > > a row and see. > > > > I wonder if there is any other way? > > > > Regards > > > > Richard > > Ok. I understood the issue. I made a little example > with a simple workaround. > > Ciao, > > Stefano > > > > Stefano > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/ja > >va one _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From pinozollo at ...626... Fri Apr 18 20:55:03 2008 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 18 Apr 2008 14:55:03 -0400 Subject: [Gambas-user] Writing into GridView In-Reply-To: References: Message-ID: <200804181455.06047.pinozollo@...626...> Please which is the difference between: GridStations.Data.Text = Str(rData[arrtable[Column]]) and GridStations[Row, 2].Text = Str(rData[arrtable[Column]]) ??? The first seems to work fine into GridStations_Data (Row AS Integer, Column AS Integer) where data are received by a data base query. The second works fine when I fill the cells reading from a file. What really happens into GridStations_Data() is really obscure to me. I did put a DEBUG statement into GridStations_Data, but, even doing many successful queries, it is executed only once. Actually I am facing the following problem without finding a solution: I query 3 values to a database. The first 2 are to be shown into the a GridView; depending on the content of the the 3rd I want to change the foreground and background colours of the first 2 cells. Please help ! Salud Pino From rterry at ...1822... Thu Apr 17 22:52:31 2008 From: rterry at ...1822... (richard terry) Date: Fri, 18 Apr 2008 06:52:31 +1000 Subject: [Gambas-user] Google Api for maps Message-ID: <200804180652.31565.rterry@...1822...> Has any one used this and knows how to incorporate it? Regards Richard From rterry at ...1822... Fri Apr 18 00:54:47 2008 From: rterry at ...1822... (richard terry) Date: Fri, 18 Apr 2008 08:54:47 +1000 Subject: [Gambas-user] Wordcount in a TextEdit In-Reply-To: <16757888.post@...1379...> References: <16757888.post@...1379...> Message-ID: <200804180854.47865.rterry@...1822...> On Fri, 18 Apr 2008 09:31:11 am MaxVK wrote: > Hi, I'm trying to get a wordcount function in a textedit control, but I'm > having some real problems. > > I'm trying to count the spaces and full stops etc, but my wordcounts are > inaccurate to say the least. > > Has anyone implemented such a function, or have any tips that could help me > along? > > Cheers > > Max Max, did you try just reading it out as plain text, doing something like stripping out all ascii 32's and then counting - this would fail if things like word , but overall should be ok. Regards Richard From leonardo at ...1237... Sat Apr 19 11:08:29 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 19 Apr 2008 11:08:29 +0200 Subject: [Gambas-user] PDF file sent by gb.net.smtp In-Reply-To: <200804181537.20336.gambas@...1...> References: <480873A9.8050906@...1237...> <4808774D.1080802@...1237...> <200804181537.20336.gambas@...1...> Message-ID: <4809B68D.9050400@...1237...> Benoit Minisini ha scritto: > The first argument is the data, not the file path. You must write: > > PostService.Add(File.Load(FileChooser1.SelectedPath), "application/pdf", "document.pdf") I misunderstood the online help.... I'll try you suggestion. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From maximvonk at ...626... Sat Apr 19 11:27:56 2008 From: maximvonk at ...626... (Maximillian Von Kloisterheim) Date: Sat, 19 Apr 2008 10:27:56 +0100 Subject: [Gambas-user] Wordcount in a TextEdit In-Reply-To: <200804180854.47865.rterry@...1822...> References: <16757888.post@...1379...> <200804180854.47865.rterry@...1822...> Message-ID: <4809BB1C.9070802@...626...> richard terry wrote: > Max, did you try just reading it out as plain text, doing something like > stripping out all ascii 32's and then counting - this would fail if things > like word , but overall should be ok. > > Regards > > Richard > Hi Richard, yes, that's what I did, and it does work, but it doesn't take into consideration double spaces, words with numbers in them and numbers themselves, to mention but a few. The count doesn't have to be deadly accurate, but it needs to be close. Iv noticed a whole lot of difference between different programs and the way they count their words, so I don't need to be 100%, just as long as I know the criteria. As it is I'm making do with the bits of code that Ron posted, but I'm also looking into the possibility of counting words as you type (Just like the spelling), and I'm seriously thinking of making the time to create a new editor control that has such functionality built in. There is also the possibility of SHELLing out to AWK to get the job done, but just like the spelling, while this may be accurate, its not easy to get it to work on a per-word basis as you type. Regards Max From leonardo at ...1237... Sat Apr 19 11:29:04 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 19 Apr 2008 11:29:04 +0200 Subject: [Gambas-user] PDF file sent by gb.net.smtp In-Reply-To: <4809B68D.9050400@...1237...> References: <480873A9.8050906@...1237...> <4808774D.1080802@...1237...> <200804181537.20336.gambas@...1...> <4809B68D.9050400@...1237...> Message-ID: <4809BB60.1030807@...1237...> Leonardo Miliani ha scritto: > Benoit Minisini ha scritto: >> The first argument is the data, not the file path. You must write: >> >> PostService.Add(File.Load(FileChooser1.SelectedPath), "application/pdf", "document.pdf") > > I misunderstood the online help.... I'll try you suggestion. > It doesn't work! I still continue to receive an empty document whose Mimetype is text/plain instead of application/pdf. The strange things are that my test applications runs for several seconds, as if it was sending the file and Thunderbird seems to download a big file, as it it had arrived without problems. But when I go to open the attachment I find the empty file. Any suggestions? -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From leonardo at ...1237... Sat Apr 19 11:33:02 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 19 Apr 2008 11:33:02 +0200 Subject: [Gambas-user] PDF file sent by gb.net.smtp In-Reply-To: <4809BB60.1030807@...1237...> References: <480873A9.8050906@...1237...> <4808774D.1080802@...1237...> <200804181537.20336.gambas@...1...> <4809B68D.9050400@...1237...> <4809BB60.1030807@...1237...> Message-ID: <4809BC4E.6090209@...1237...> Leonardo Miliani ha scritto: > Leonardo Miliani ha scritto: >> Benoit Minisini ha scritto: >>> The first argument is the data, not the file path. You must write: >>> >>> PostService.Add(File.Load(FileChooser1.SelectedPath), "application/pdf", "document.pdf") >> I misunderstood the online help.... I'll try you suggestion. >> > > It doesn't work! > I still continue to receive an empty document whose Mimetype is > text/plain instead of application/pdf. > > The strange things are that my test applications runs for several > seconds, as if it was sending the file and Thunderbird seems to download > a big file, as it it had arrived without problems. But when I go to open > the attachment I find the empty file. > Any suggestions? > Maybe I've found the problem. I've saved the email and opened it with a Text editor. Here is what I've found in it: " [cut] This is a MIME multipart message. Your mail reader isn't MIME capable. You might not be able to read parts or all of this message. ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1 Content-Type: text/plain; name="MIME part #0"; charset="utf-8" Content-Transfer-Encoding: quoted-printable Prova ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1 Content-Type: application/postscript; name="stampa.ps" Content-Transfer-Encoding: base64 JSFQUy1BZG9iZS0xLjAKJSVCb3VuZGluZ0JveDogMCAwIDU5NCA4NDIKJSVDcmVhdG9yOiBRdCAz LjMuNwolJUNyZWF0aW9uRGF0ZTogZ2lvIGFwciAxNyAxMjozNjoyOCAyMDA4CiUlT3JpZW50YXRp b246IFBvcnRyYWl0CiUlUGFnZXM6IDUKJSVEb2N1bWVudEZvbnRzOiBEZWphVnVTYW5zCgolJUVu ZENvbW1lbnRzCiUlQmVnaW5Qcm9sb2cKJSBQcm9sb2cgY29weXJpZ2h0IDE5OTQtMjAwNSBUcm9s bHRlY2guIFlvdSBtYXkgY29weSB0aGlzIHByb2xvZyBpbiBhbnkgd2F5CiUgdGhhdCBpcyBkaXJl Y3RseSByZWxhdGVkIHRvIHRoaXMgZG9jdW1lbnQuIEZvciBvdGhlciB1c2Ugb2YgdGhpcyBwcm9s [cut]" You can see that the file has arrived as attachment but Thunderbird isn't capable to separate it from the message body.... -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From leonardo at ...1237... Sat Apr 19 11:45:50 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 19 Apr 2008 11:45:50 +0200 Subject: [Gambas-user] PDF file sent by gb.net.smtp In-Reply-To: <4809BC4E.6090209@...1237...> References: <480873A9.8050906@...1237...> <4808774D.1080802@...1237...> <200804181537.20336.gambas@...1...> <4809B68D.9050400@...1237...> <4809BB60.1030807@...1237...> <4809BC4E.6090209@...1237...> Message-ID: <4809BF4E.7000609@...1237...> Leonardo Miliani ha scritto: > Leonardo Miliani ha scritto: >> Leonardo Miliani ha scritto: >>> Benoit Minisini ha scritto: >>>> The first argument is the data, not the file path. You must write: >>>> >>>> PostService.Add(File.Load(FileChooser1.SelectedPath), "application/pdf", "document.pdf") >>> I misunderstood the online help.... I'll try you suggestion. >>> >> It doesn't work! >> I still continue to receive an empty document whose Mimetype is >> text/plain instead of application/pdf. >> >> The strange things are that my test applications runs for several >> seconds, as if it was sending the file and Thunderbird seems to download >> a big file, as it it had arrived without problems. But when I go to open >> the attachment I find the empty file. >> Any suggestions? >> > > Maybe I've found the problem. I've saved the email and opened it with a > Text editor. > Here is what I've found in it: > > " > [cut] > This is a MIME multipart message. Your mail reader isn't MIME capable. > You might not be able to read parts or all of this message. > > > > ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1 > Content-Type: text/plain; name="MIME part #0"; charset="utf-8" > Content-Transfer-Encoding: quoted-printable > > Prova > > > > ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1 > Content-Type: application/postscript; name="stampa.ps" > Content-Transfer-Encoding: base64 > JSFQUy1BZG9iZS0xLjAKJSVCb3VuZGluZ0JveDogMCAwIDU5NCA4NDIKJSVDcmVhdG9yOiBRdCAz > LjMuNwolJUNyZWF0aW9uRGF0ZTogZ2lvIGFwciAxNyAxMjozNjoyOCAyMDA4CiUlT3JpZW50YXRp > b246IFBvcnRyYWl0CiUlUGFnZXM6IDUKJSVEb2N1bWVudEZvbnRzOiBEZWphVnVTYW5zCgolJUVu > ZENvbW1lbnRzCiUlQmVnaW5Qcm9sb2cKJSBQcm9sb2cgY29weXJpZ2h0IDE5OTQtMjAwNSBUcm9s > bHRlY2guIFlvdSBtYXkgY29weSB0aGlzIHByb2xvZyBpbiBhbnkgd2F5CiUgdGhhdCBpcyBkaXJl > Y3RseSByZWxhdGVkIHRvIHRoaXMgZG9jdW1lbnQuIEZvciBvdGhlciB1c2Ugb2YgdGhpcyBwcm9s > [cut]" > > You can see that the file has arrived as attachment but Thunderbird > isn't capable to separate it from the message body.... > I've tried to open my test message via webmail and I've got the same problems. Looking at the email that I've included in my previous message I think that it could be a bug in the gb.net.smtp component. In fact I think that the method used to include the message body (.Add()) isn't correct: it includes the message body as attachment. So the mail readers are not able to distinguish between the 2 Mimetypes (I think...). -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From gambas at ...1... Sat Apr 19 13:14:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 19 Apr 2008 13:14:30 +0200 Subject: [Gambas-user] PDF file sent by gb.net.smtp In-Reply-To: <4809BF4E.7000609@...1237...> References: <480873A9.8050906@...1237...> <4809BC4E.6090209@...1237...> <4809BF4E.7000609@...1237...> Message-ID: <200804191314.30912.gambas@...1...> On samedi 19 avril 2008, Leonardo Miliani wrote: > Leonardo Miliani ha scritto: > > Leonardo Miliani ha scritto: > >> Leonardo Miliani ha scritto: > >>> Benoit Minisini ha scritto: > >>>> The first argument is the data, not the file path. You must write: > >>>> > >>>> PostService.Add(File.Load(FileChooser1.SelectedPath), > >>>> "application/pdf", "document.pdf") > >>> > >>> I misunderstood the online help.... I'll try you suggestion. > >> > >> It doesn't work! > >> I still continue to receive an empty document whose Mimetype is > >> text/plain instead of application/pdf. > >> > >> The strange things are that my test applications runs for several > >> seconds, as if it was sending the file and Thunderbird seems to download > >> a big file, as it it had arrived without problems. But when I go to open > >> the attachment I find the empty file. > >> Any suggestions? > > > > Maybe I've found the problem. I've saved the email and opened it with a > > Text editor. > > Here is what I've found in it: > > > > " > > [cut] > > This is a MIME multipart message. Your mail reader isn't MIME capable. > > You might not be able to read parts or all of this message. > > > > > > > > ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1 > > Content-Type: text/plain; name="MIME part #0"; charset="utf-8" > > Content-Transfer-Encoding: quoted-printable > > > > Prova > > > > > > > > ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1 > > Content-Type: application/postscript; name="stampa.ps" > > Content-Transfer-Encoding: base64 > > JSFQUy1BZG9iZS0xLjAKJSVCb3VuZGluZ0JveDogMCAwIDU5NCA4NDIKJSVDcmVhdG9yOiBRd > >CAz > > LjMuNwolJUNyZWF0aW9uRGF0ZTogZ2lvIGFwciAxNyAxMjozNjoyOCAyMDA4CiUlT3JpZW50Y > >XRp > > b246IFBvcnRyYWl0CiUlUGFnZXM6IDUKJSVEb2N1bWVudEZvbnRzOiBEZWphVnVTYW5zCgolJ > >UVu > > ZENvbW1lbnRzCiUlQmVnaW5Qcm9sb2cKJSBQcm9sb2cgY29weXJpZ2h0IDE5OTQtMjAwNSBUc > >m9s > > bHRlY2guIFlvdSBtYXkgY29weSB0aGlzIHByb2xvZyBpbiBhbnkgd2F5CiUgdGhhdCBpcyBka > >XJl > > Y3RseSByZWxhdGVkIHRvIHRoaXMgZG9jdW1lbnQuIEZvciBvdGhlciB1c2Ugb2YgdGhpcyBwc > >m9s [cut]" > > > > You can see that the file has arrived as attachment but Thunderbird > > isn't capable to separate it from the message body.... > > I've tried to open my test message via webmail and I've got the same > problems. > Looking at the email that I've included in my previous message I think > that it could be a bug in the gb.net.smtp component. > In fact I think that the method used to include the message body > (.Add()) isn't correct: it includes the message body as attachment. > So the mail readers are not able to distinguish between the 2 Mimetypes > (I think...). This is strange, as I didn't have any problem with KMail... Can you send me the mail as text file as you did. Just change the headers you don't want me to see, but I need that the data be as exact as possible to track the bug. Thanks in advance. Regards, -- Benoit Minisini From maximvonk at ...626... Sat Apr 19 14:29:02 2008 From: maximvonk at ...626... (MaxVK) Date: Sat, 19 Apr 2008 05:29:02 -0700 (PDT) Subject: [Gambas-user] Highlight Multiple words in TextEdit Message-ID: <16782505.post@...1379...> Hi there, still banging on with the textedit control. I'm looking to be able to highlight multiple words, although right now I cant highlight even one! Is there a highlight format that can be used, that will make the background colour of the word change? I can change all of the other font attributes from within my code, but I would really like the background color of the selected word to change so that highlighted words stand out much more. Any idea, information? Cheers Max -- View this message in context: http://www.nabble.com/Highlight-Multiple-words-in-TextEdit-tp16782505p16782505.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Apr 19 14:42:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 19 Apr 2008 14:42:30 +0200 Subject: [Gambas-user] Highlight Multiple words in TextEdit In-Reply-To: <16782505.post@...1379...> References: <16782505.post@...1379...> Message-ID: <200804191442.30223.gambas@...1...> On samedi 19 avril 2008, MaxVK wrote: > Hi there, still banging on with the textedit control. > > I'm looking to be able to highlight multiple words, although right now I > cant highlight even one! Is there a highlight format that can be used, that > will make the background colour of the word change? > > I can change all of the other font attributes from within my code, but I > would really like the background color of the selected word to change so > that highlighted words stand out much more. > > Any idea, information? > > Cheers > > Max Apparently this is not supported by Qt 3. Regards, -- Benoit Minisini From maximvonk at ...626... Sat Apr 19 18:15:49 2008 From: maximvonk at ...626... (MaxVK) Date: Sat, 19 Apr 2008 09:15:49 -0700 (PDT) Subject: [Gambas-user] Highlight Multiple words in TextEdit In-Reply-To: <200804191442.30223.gambas@...1...> References: <16782505.post@...1379...> <200804191442.30223.gambas@...1...> Message-ID: <16784934.post@...1379...> Benoit Minisini wrote: > > Apparently this is not supported by Qt 3. > Regards, > > -- > Benoit Minisini > Hmm, okay, thanks Benoit. Is there perhaps any way to change the default underline so that it can be made into one of those squiggly red lines that are seen in spell checkers? regards Max -- View this message in context: http://www.nabble.com/Highlight-Multiple-words-in-TextEdit-tp16782505p16784934.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Apr 19 19:24:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 19 Apr 2008 19:24:32 +0200 Subject: [Gambas-user] Highlight Multiple words in TextEdit In-Reply-To: <16784934.post@...1379...> References: <16782505.post@...1379...> <200804191442.30223.gambas@...1...> <16784934.post@...1379...> Message-ID: <200804191924.32316.gambas@...1...> On samedi 19 avril 2008, MaxVK wrote: > Benoit Minisini wrote: > > Apparently this is not supported by Qt 3. > > Regards, > > > > -- > > Benoit Minisini > > Hmm, okay, thanks Benoit. Is there perhaps any way to change the default > underline so that it can be made into one of those squiggly red lines that > are seen in spell checkers? > > regards > > Max I have the same answer. What you need is a full text processor control. If only OpenOffice guys have developed such a thing instead of a monolithic application! -- Benoit Minisini From hscast at ...407... Sat Apr 19 19:37:49 2008 From: hscast at ...407... (Scott Castaline) Date: Sat, 19 Apr 2008 13:37:49 -0400 Subject: [Gambas-user] Gambas2-2.5.0 can't find the example projects Message-ID: <480A2DED.8040002@...407...> I have tried everything that I can think of, but I still cannot open any of the example projects in gambas2-2.5.0. I started with rpm files from LDRWEB.net for Fedora 8 (gambas2-2.5.0-1.FC8.ldrweb.i386.tgz). As I am not fluent in Spanish I cannot find out anything about it. I found the site while searching for answers to my problems in installing the earlier version on Fedora 7, which I did get going using the files from this site. I can operate all other features from the starting screen, but will get an error when I click on any of the example projects: This project does not exist. /usr/share/gambas2/examples/category of list/name of project. OK The projects do exist as I can find them where they should be. I duplicated my Fedora 7/Gambas2-2.4.1 setup when I went to Fedora 8/Gambas2-2.5.0. On both I created a group "gambas" putting myself as a member of the group. I then had changed the group ownership of /usr/share/gambas2 from root to gambas using the recursive option so all subdirs would reflect the change. This setup works fine in the Fedora 7/Gambas2-2.4.1 setup. Does anyone know why it doesn't in the Fedora 8/Gambas2-2.5.0? I hate to be a PITA about this but I'm learning basic from scratch and want to use these examples in the process. TIA (PITA) Scott From gambas at ...1... Sat Apr 19 19:45:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 19 Apr 2008 19:45:10 +0200 Subject: [Gambas-user] Gambas2-2.5.0 can't find the example projects In-Reply-To: <480A2DED.8040002@...407...> References: <480A2DED.8040002@...407...> Message-ID: <200804191945.10359.gambas@...1...> On samedi 19 avril 2008, Scott Castaline wrote: > I have tried everything that I can think of, but I still cannot open any > of the example projects in gambas2-2.5.0. I started with rpm files from > LDRWEB.net for Fedora 8 (gambas2-2.5.0-1.FC8.ldrweb.i386.tgz). As I am > not fluent in Spanish I cannot find out anything about it. I found the > site while searching for answers to my problems in installing the > earlier version on Fedora 7, which I did get going using the files from > this site. > > I can operate all other features from the starting screen, but will get > an error when I click on any of the example projects: > > This project does not exist. > /usr/share/gambas2/examples/category of list/name of project. > > OK > > The projects do exist as I can find them where they should be. I > duplicated my Fedora 7/Gambas2-2.4.1 setup when I went to Fedora > 8/Gambas2-2.5.0. On both I created a group "gambas" putting myself as a > member of the group. I then had changed the group ownership of > /usr/share/gambas2 from root to gambas using the recursive option so all > subdirs would reflect the change. This setup works fine in the Fedora > 7/Gambas2-2.4.1 setup. Does anyone know why it doesn't in the Fedora > 8/Gambas2-2.5.0? > > I hate to be a PITA about this but I'm learning basic from scratch and > want to use these examples in the process. > > TIA > (PITA) Scott > The "this project does not exist" message is printer when the IDE cannot read the file ".project" inside the project directory. So check first that the ".project" files of the examples are correctly installed from the RPMs. Regards, -- Benoit Minisini From ronstk at ...239... Sat Apr 19 20:37:52 2008 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 19 Apr 2008 20:37:52 +0200 Subject: [Gambas-user] Wordcount in a TextEdit In-Reply-To: <4809BB1C.9070802@...626...> References: <16757888.post@...1379...> <200804180854.47865.rterry@...1822...> <4809BB1C.9070802@...626...> Message-ID: <200804192037.52763.ronstk@...239...> On Saturday 19 April 2008 11:27, Maximillian Von Kloisterheim wrote: > richard terry wrote: > > Max, did you try just reading it out as plain text, doing something like > > stripping out all ascii 32's and then counting - this would fail if things > > like word , but overall should be ok. > > > > Regards > > > > Richard > > > > Hi Richard, yes, that's what I did, and it does work, but it doesn't > take into consideration double spaces, words with numbers in them and > numbers themselves, to mention but a few. > > The count doesn't have to be deadly accurate, but it needs to be close. > Iv noticed a whole lot of difference between different programs and the > way they count their words, so I don't need to be 100%, just as long as > I know the criteria. > > As it is I'm making do with the bits of code that Ron posted, but I'm > also looking into the possibility of counting words as you type (Just > like the spelling), and I'm seriously thinking of making the time to > create a new editor control that has such functionality built in. > > There is also the possibility of SHELLing out to AWK to get the job > done, but just like the spelling, while this may be accurate, its not > easy to get it to work on a per-word basis as you type. > > Regards > > Max > On Saturday 19 April 2008 11:27, Maximillian Von Kloisterheim wrote: > richard terry wrote: > > Max, did you try just reading it out as plain text, doing something like > > stripping out all ascii 32's and then counting - this would fail if things > > like word , but overall should be ok. > > > > Regards > > > > Richard > > > > Hi Richard, yes, that's what I did, and it does work, but it doesn't > take into consideration double spaces, words with numbers in them and > numbers themselves, to mention but a few. > > The count doesn't have to be deadly accurate, but it needs to be close. > Iv noticed a whole lot of difference between different programs and the > way they count their words, so I don't need to be 100%, just as long as > I know the criteria. > > As it is I'm making do with the bits of code that Ron posted, but I'm > also looking into the possibility of counting words as you type (Just > like the spelling), and I'm seriously thinking of making the time to > create a new editor control that has such functionality built in. > > There is also the possibility of SHELLing out to AWK to get the job > done, but just like the spelling, while this may be accurate, its not > easy to get it to work on a per-word basis as you type. > > Regards > > Max > Hint: keep a mirror buffer with the text. keep count variable keep lastkey variable check for 'space', 'cr', ',' or '.' if key if pressed 'only these makes a word valid after all if newkey <> lastkey then then ' prevent invokes on i.e. double spaces 1) put textbox in tmp buffer the replace cr to space (my replcae example code part) (optional delete all numbers someway in tmp) compare mirror buffer against textbox/tmp buffer if different call 'wc' 'awk' or my bits of code with textbox/tmp as source. if count different store new count copy textbox/tmp to mirror buffer end end 2) put textbox in tmp buffer the replace cr to space (my replcae example code part) (optional delete all numbers someway in tmp) compare mirror buffer against textbox/tmp buffer if different tmpcount=0 split the different on space into array (the code as example code) foreach check for valid word if valid increment tmpcount next if len(mirror) < len(tmp) then count=count + tmpcount end if len(mirror) > len(tmp) then count=count - tmpcount or use full scan with wc/awk/code and store new count end copy tmp to mirror buffer end end ' lastkey<>newkey I think using a mirror buffer and count here for compare against current text will speedup. The way in 2) here does the time consuming check/split on a smaller text/array and for both only when a possible word is given BTW The second way I did use in the past in a assembly program for something like this so this is from very old memory. Ron From ronstk at ...239... Sat Apr 19 20:45:39 2008 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 19 Apr 2008 20:45:39 +0200 Subject: [Gambas-user] Highlight Multiple words in TextEdit In-Reply-To: <200804191924.32316.gambas@...1...> References: <16782505.post@...1379...> <16784934.post@...1379...> <200804191924.32316.gambas@...1...> Message-ID: <200804192045.39556.ronstk@...239...> On Saturday 19 April 2008 19:24, Benoit Minisini wrote: > I have the same answer. What you need is a full text processor control. > > If only OpenOffice guys have developed such a thing instead of a monolithic > application! > One word: Right! Ron From hscast at ...407... Sat Apr 19 21:20:34 2008 From: hscast at ...407... (Scott Castaline) Date: Sat, 19 Apr 2008 15:20:34 -0400 Subject: [Gambas-user] Gambas2-2.5.0 can't find the example projects In-Reply-To: <200804191945.10359.gambas@...1...> References: <480A2DED.8040002@...407...> <200804191945.10359.gambas@...1...> Message-ID: <480A4602.1010000@...407...> Benoit Minisini wrote: > On samedi 19 avril 2008, Scott Castaline wrote: > >> I have tried everything that I can think of, but I still cannot open any >> of the example projects in gambas2-2.5.0. I started with rpm files from >> LDRWEB.net for Fedora 8 (gambas2-2.5.0-1.FC8.ldrweb.i386.tgz). As I am >> not fluent in Spanish I cannot find out anything about it. I found the >> site while searching for answers to my problems in installing the >> earlier version on Fedora 7, which I did get going using the files from >> this site. >> >> I can operate all other features from the starting screen, but will get >> an error when I click on any of the example projects: >> >> This project does not exist. >> /usr/share/gambas2/examples/category of list/name of project. >> >> OK >> >> The projects do exist as I can find them where they should be. I >> duplicated my Fedora 7/Gambas2-2.4.1 setup when I went to Fedora >> 8/Gambas2-2.5.0. On both I created a group "gambas" putting myself as a >> member of the group. I then had changed the group ownership of >> /usr/share/gambas2 from root to gambas using the recursive option so all >> subdirs would reflect the change. This setup works fine in the Fedora >> 7/Gambas2-2.4.1 setup. Does anyone know why it doesn't in the Fedora >> 8/Gambas2-2.5.0? >> >> I hate to be a PITA about this but I'm learning basic from scratch and >> want to use these examples in the process. >> >> TIA >> (PITA) Scott >> >> > > The "this project does not exist" message is printer when the IDE cannot read > the file ".project" inside the project directory. So check first that > the ".project" files of the examples are correctly installed from the RPMs. > > Regards, > > In each project directory there is a projectname.gambas file, should it be projectname.project? From gambas at ...1... Sat Apr 19 21:23:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 19 Apr 2008 21:23:28 +0200 Subject: [Gambas-user] Gambas2-2.5.0 can't find the example projects In-Reply-To: <480A4602.1010000@...407...> References: <480A2DED.8040002@...407...> <200804191945.10359.gambas@...1...> <480A4602.1010000@...407...> Message-ID: <200804192123.28962.gambas@...1...> On samedi 19 avril 2008, Scott Castaline wrote: > Benoit Minisini wrote: > > On samedi 19 avril 2008, Scott Castaline wrote: > >> I have tried everything that I can think of, but I still cannot open any > >> of the example projects in gambas2-2.5.0. I started with rpm files from > >> LDRWEB.net for Fedora 8 (gambas2-2.5.0-1.FC8.ldrweb.i386.tgz). As I am > >> not fluent in Spanish I cannot find out anything about it. I found the > >> site while searching for answers to my problems in installing the > >> earlier version on Fedora 7, which I did get going using the files from > >> this site. > >> > >> I can operate all other features from the starting screen, but will get > >> an error when I click on any of the example projects: > >> > >> This project does not exist. > >> /usr/share/gambas2/examples/category of list/name of project. > >> > >> OK > >> > >> The projects do exist as I can find them where they should be. I > >> duplicated my Fedora 7/Gambas2-2.4.1 setup when I went to Fedora > >> 8/Gambas2-2.5.0. On both I created a group "gambas" putting myself as a > >> member of the group. I then had changed the group ownership of > >> /usr/share/gambas2 from root to gambas using the recursive option so all > >> subdirs would reflect the change. This setup works fine in the Fedora > >> 7/Gambas2-2.4.1 setup. Does anyone know why it doesn't in the Fedora > >> 8/Gambas2-2.5.0? > >> > >> I hate to be a PITA about this but I'm learning basic from scratch and > >> want to use these examples in the process. > >> > >> TIA > >> (PITA) Scott > > > > The "this project does not exist" message is printer when the IDE cannot > > read the file ".project" inside the project directory. So check first > > that the ".project" files of the examples are correctly installed from > > the RPMs. > > > > Regards, > > In each project directory there is a projectname.gambas file, should it > be projectname.project? > No, I'm talking about the ".project" file. If this file is not found, or not readable, you get the "This project does not exist" error message. Otherwise, you don't get it. -- Benoit Minisini From hscast at ...407... Sat Apr 19 21:29:40 2008 From: hscast at ...407... (Scott Castaline) Date: Sat, 19 Apr 2008 15:29:40 -0400 Subject: [Gambas-user] Gambas2-2.5.0 can't find the example projects In-Reply-To: <480A4602.1010000@...407...> References: <480A2DED.8040002@...407...> <200804191945.10359.gambas@...1...> <480A4602.1010000@...407...> Message-ID: <480A4824.2010704@...407...> Scott Castaline wrote: > Benoit Minisini wrote: > >> On samedi 19 avril 2008, Scott Castaline wrote: >> >> >>> I have tried everything that I can think of, but I still cannot open any >>> of the example projects in gambas2-2.5.0. I started with rpm files from >>> LDRWEB.net for Fedora 8 (gambas2-2.5.0-1.FC8.ldrweb.i386.tgz). As I am >>> not fluent in Spanish I cannot find out anything about it. I found the >>> site while searching for answers to my problems in installing the >>> earlier version on Fedora 7, which I did get going using the files from >>> this site. >>> >>> I can operate all other features from the starting screen, but will get >>> an error when I click on any of the example projects: >>> >>> This project does not exist. >>> /usr/share/gambas2/examples/category of list/name of project. >>> >>> OK >>> >>> The projects do exist as I can find them where they should be. I >>> duplicated my Fedora 7/Gambas2-2.4.1 setup when I went to Fedora >>> 8/Gambas2-2.5.0. On both I created a group "gambas" putting myself as a >>> member of the group. I then had changed the group ownership of >>> /usr/share/gambas2 from root to gambas using the recursive option so all >>> subdirs would reflect the change. This setup works fine in the Fedora >>> 7/Gambas2-2.4.1 setup. Does anyone know why it doesn't in the Fedora >>> 8/Gambas2-2.5.0? >>> >>> I hate to be a PITA about this but I'm learning basic from scratch and >>> want to use these examples in the process. >>> >>> TIA >>> (PITA) Scott >>> >>> >>> >> The "this project does not exist" message is printer when the IDE cannot read >> the file ".project" inside the project directory. So check first that >> the ".project" files of the examples are correctly installed from the RPMs. >> >> Regards, >> >> >> > In each project directory there is a projectname.gambas file, should it > be projectname.project? > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > I had forgotten to mention that both old and new installs appear to be the same in the examples subdirs. So then I tried copying from the old to the new all files (eamples subdirs recursively and retaining the attributes from the old) since the old seems to work, but no change. From hscast at ...407... Sat Apr 19 21:35:18 2008 From: hscast at ...407... (Scott Castaline) Date: Sat, 19 Apr 2008 15:35:18 -0400 Subject: [Gambas-user] Gambas2-2.5.0 can't find the example projects In-Reply-To: <200804192123.28962.gambas@...1...> References: <480A2DED.8040002@...407...> <200804191945.10359.gambas@...1...> <480A4602.1010000@...407...> <200804192123.28962.gambas@...1...> Message-ID: <480A4976.5020106@...407...> Benoit Minisini wrote: > On samedi 19 avril 2008, Scott Castaline wrote: > >> Benoit Minisini wrote: >> >>> On samedi 19 avril 2008, Scott Castaline wrote: >>> >>>> I have tried everything that I can think of, but I still cannot open any >>>> of the example projects in gambas2-2.5.0. I started with rpm files from >>>> LDRWEB.net for Fedora 8 (gambas2-2.5.0-1.FC8.ldrweb.i386.tgz). As I am >>>> not fluent in Spanish I cannot find out anything about it. I found the >>>> site while searching for answers to my problems in installing the >>>> earlier version on Fedora 7, which I did get going using the files from >>>> this site. >>>> >>>> I can operate all other features from the starting screen, but will get >>>> an error when I click on any of the example projects: >>>> >>>> This project does not exist. >>>> /usr/share/gambas2/examples/category of list/name of project. >>>> >>>> OK >>>> >>>> The projects do exist as I can find them where they should be. I >>>> duplicated my Fedora 7/Gambas2-2.4.1 setup when I went to Fedora >>>> 8/Gambas2-2.5.0. On both I created a group "gambas" putting myself as a >>>> member of the group. I then had changed the group ownership of >>>> /usr/share/gambas2 from root to gambas using the recursive option so all >>>> subdirs would reflect the change. This setup works fine in the Fedora >>>> 7/Gambas2-2.4.1 setup. Does anyone know why it doesn't in the Fedora >>>> 8/Gambas2-2.5.0? >>>> >>>> I hate to be a PITA about this but I'm learning basic from scratch and >>>> want to use these examples in the process. >>>> >>>> TIA >>>> (PITA) Scott >>>> >>> The "this project does not exist" message is printer when the IDE cannot >>> read the file ".project" inside the project directory. So check first >>> that the ".project" files of the examples are correctly installed from >>> the RPMs. >>> >>> Regards, >>> >> In each project directory there is a projectname.gambas file, should it >> be projectname.project? >> >> > > No, I'm talking about the ".project" file. If this file is not found, or not > readable, you get the "This project does not exist" error message. Otherwise, > you don't get it. > > where is the .project file supposed to be. I can't find it on either the old or new. From gambas at ...1... Sat Apr 19 21:37:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 19 Apr 2008 21:37:46 +0200 Subject: [Gambas-user] Gambas2-2.5.0 can't find the example projects In-Reply-To: <480A4976.5020106@...407...> References: <480A2DED.8040002@...407...> <200804192123.28962.gambas@...1...> <480A4976.5020106@...407...> Message-ID: <200804192137.46488.gambas@...1...> On samedi 19 avril 2008, Scott Castaline wrote: > Benoit Minisini wrote: > > On samedi 19 avril 2008, Scott Castaline wrote: > >> Benoit Minisini wrote: > >>> On samedi 19 avril 2008, Scott Castaline wrote: > >>>> I have tried everything that I can think of, but I still cannot open > >>>> any of the example projects in gambas2-2.5.0. I started with rpm files > >>>> from LDRWEB.net for Fedora 8 (gambas2-2.5.0-1.FC8.ldrweb.i386.tgz). As > >>>> I am not fluent in Spanish I cannot find out anything about it. I > >>>> found the site while searching for answers to my problems in > >>>> installing the earlier version on Fedora 7, which I did get going > >>>> using the files from this site. > >>>> > >>>> I can operate all other features from the starting screen, but will > >>>> get an error when I click on any of the example projects: > >>>> > >>>> This project does not exist. > >>>> /usr/share/gambas2/examples/category of list/name of project. > >>>> > >>>> OK > >>>> > >>>> The projects do exist as I can find them where they should be. I > >>>> duplicated my Fedora 7/Gambas2-2.4.1 setup when I went to Fedora > >>>> 8/Gambas2-2.5.0. On both I created a group "gambas" putting myself as > >>>> a member of the group. I then had changed the group ownership of > >>>> /usr/share/gambas2 from root to gambas using the recursive option so > >>>> all subdirs would reflect the change. This setup works fine in the > >>>> Fedora 7/Gambas2-2.4.1 setup. Does anyone know why it doesn't in the > >>>> Fedora 8/Gambas2-2.5.0? > >>>> > >>>> I hate to be a PITA about this but I'm learning basic from scratch and > >>>> want to use these examples in the process. > >>>> > >>>> TIA > >>>> (PITA) Scott > >>> > >>> The "this project does not exist" message is printer when the IDE > >>> cannot read the file ".project" inside the project directory. So check > >>> first that the ".project" files of the examples are correctly installed > >>> from the RPMs. > >>> > >>> Regards, > >> > >> In each project directory there is a projectname.gambas file, should it > >> be projectname.project? > > > > No, I'm talking about the ".project" file. If this file is not found, or > > not readable, you get the "This project does not exist" error message. > > Otherwise, you don't get it. > > where is the .project file supposed to be. I can't find it on either the > old or new. > As I told you, just inside the project directory. Look in your own projects, you will see it. -- Benoit Minisini From hscast at ...407... Sat Apr 19 22:21:44 2008 From: hscast at ...407... (Scott Castaline) Date: Sat, 19 Apr 2008 16:21:44 -0400 Subject: [Gambas-user] Gambas2-2.5.0 can't find the example projects In-Reply-To: <200804192137.46488.gambas@...1...> References: <480A2DED.8040002@...407...> <200804192123.28962.gambas@...1...> <480A4976.5020106@...407...> <200804192137.46488.gambas@...1...> Message-ID: <480A5458.3050901@...407...> Benoit Minisini wrote: > On samedi 19 avril 2008, Scott Castaline wrote: > >> Benoit Minisini wrote: >> >>> On samedi 19 avril 2008, Scott Castaline wrote: >>> >>>> Benoit Minisini wrote: >>>> >>>>> On samedi 19 avril 2008, Scott Castaline wrote: >>>>> >>>>>> I have tried everything that I can think of, but I still cannot open >>>>>> any of the example projects in gambas2-2.5.0. I started with rpm files >>>>>> from LDRWEB.net for Fedora 8 (gambas2-2.5.0-1.FC8.ldrweb.i386.tgz). As >>>>>> I am not fluent in Spanish I cannot find out anything about it. I >>>>>> found the site while searching for answers to my problems in >>>>>> installing the earlier version on Fedora 7, which I did get going >>>>>> using the files from this site. >>>>>> >>>>>> I can operate all other features from the starting screen, but will >>>>>> get an error when I click on any of the example projects: >>>>>> >>>>>> This project does not exist. >>>>>> /usr/share/gambas2/examples/category of list/name of project. >>>>>> >>>>>> OK >>>>>> >>>>>> The projects do exist as I can find them where they should be. I >>>>>> duplicated my Fedora 7/Gambas2-2.4.1 setup when I went to Fedora >>>>>> 8/Gambas2-2.5.0. On both I created a group "gambas" putting myself as >>>>>> a member of the group. I then had changed the group ownership of >>>>>> /usr/share/gambas2 from root to gambas using the recursive option so >>>>>> all subdirs would reflect the change. This setup works fine in the >>>>>> Fedora 7/Gambas2-2.4.1 setup. Does anyone know why it doesn't in the >>>>>> Fedora 8/Gambas2-2.5.0? >>>>>> >>>>>> I hate to be a PITA about this but I'm learning basic from scratch and >>>>>> want to use these examples in the process. >>>>>> >>>>>> TIA >>>>>> (PITA) Scott >>>>>> >>>>> The "this project does not exist" message is printer when the IDE >>>>> cannot read the file ".project" inside the project directory. So check >>>>> first that the ".project" files of the examples are correctly installed >>>>> from the RPMs. >>>>> >>>>> Regards, >>>>> >>>> In each project directory there is a projectname.gambas file, should it >>>> be projectname.project? >>>> >>> No, I'm talking about the ".project" file. If this file is not found, or >>> not readable, you get the "This project does not exist" error message. >>> Otherwise, you don't get it. >>> >> where is the .project file supposed to be. I can't find it on either the >> old or new. >> >> > > As I told you, just inside the project directory. Look in your own projects, > you will see it. > > Got it, It works now, somewhere copying back and forth I lost the .project files and a couple of others. Blame it on OlTimerZ Disease. Sorry for being a PITA. Thanks for the help. (PITA) Scott From leonardo at ...1237... Sat Apr 19 22:54:47 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 19 Apr 2008 22:54:47 +0200 Subject: [Gambas-user] PDF file sent by gb.net.smtp In-Reply-To: <200804191314.30912.gambas@...1...> References: <480873A9.8050906@...1237...> <4809BC4E.6090209@...1237...> <4809BF4E.7000609@...1237...> <200804191314.30912.gambas@...1...> Message-ID: <480A5C17.4080503@...1237...> Benoit Minisini ha scritto: > This is strange, as I didn't have any problem with KMail... > > Can you send me the mail as text file as you did. Just change the headers you > don't want me to see, but I need that the data be as exact as possible to > track the bug. > > Thanks in advance. > > Regards, > I've send you the email. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From maximvonk at ...626... Sun Apr 20 10:56:23 2008 From: maximvonk at ...626... (MaxVK) Date: Sun, 20 Apr 2008 01:56:23 -0700 (PDT) Subject: [Gambas-user] Wordcount in a TextEdit In-Reply-To: <200804192037.52763.ronstk@...239...> References: <16757888.post@...1379...> <200804180854.47865.rterry@...1822...> <4809BB1C.9070802@...626...> <200804192037.52763.ronstk@...239...> Message-ID: <16790661.post@...1379...> Cheers Ron, yes Iv considered keeping a buffer and working with that. I did try SHELLing out to wc, and that worked very well too, although to be fair it only gave the same results as your own code, so I don't really see the point. I might play with the buffer idea a bit later - I have a few documents that are really quite large and I want to test the comparative speed of wc against the code you suggested, but Iv a feeling that I might as well keep this little bit of housekeeping 'in-house' so to speak. Regards Max Ron Onstenk wrote: > > Hint: > keep a mirror buffer with the text. > keep count variable > keep lastkey variable > > check for 'space', 'cr', ',' or '.' if key if pressed > 'only these makes a word valid after all > > if newkey <> lastkey then then ' prevent invokes on i.e. double spaces > > 1) > put textbox in tmp buffer > the replace cr to space (my replcae example code part) > (optional delete all numbers someway in tmp) > compare mirror buffer against textbox/tmp buffer > if different > call 'wc' 'awk' or my bits of code with textbox/tmp as source. > if count different > store new count > copy textbox/tmp to mirror buffer > end > end > > 2) > put textbox in tmp buffer > the replace cr to space (my replcae example code part) > (optional delete all numbers someway in tmp) > compare mirror buffer against textbox/tmp buffer > > if different > tmpcount=0 > split the different on space into array > (the code as example code) > foreach > check for valid word > if valid increment tmpcount > next > > if len(mirror) < len(tmp) then > count=count + tmpcount > end > > if len(mirror) > len(tmp) then > count=count - tmpcount > or use full scan with wc/awk/code and store new count > end > > copy tmp to mirror buffer > > end > > end ' lastkey<>newkey > > I think using a mirror buffer and count here for compare against > current text will speedup. > The way in 2) here does the time consuming check/split on a smaller > text/array > and for both only when a possible word is given > > BTW > The second way I did use in the past in a assembly program for something > like > this so this is from very old memory. > > > Ron > -- View this message in context: http://www.nabble.com/Wordcount-in-a-TextEdit-tp16757888p16790661.html Sent from the gambas-user mailing list archive at Nabble.com. From maximvonk at ...626... Sun Apr 20 11:00:03 2008 From: maximvonk at ...626... (MaxVK) Date: Sun, 20 Apr 2008 02:00:03 -0700 (PDT) Subject: [Gambas-user] Highlight Multiple words in TextEdit In-Reply-To: <200804191924.32316.gambas@...1...> References: <16782505.post@...1379...> <200804191442.30223.gambas@...1...> <16784934.post@...1379...> <200804191924.32316.gambas@...1...> Message-ID: <16790662.post@...1379...> Benoit Minisini wrote: > > I have the same answer. What you need is a full text processor control. > > If only OpenOffice guys have developed such a thing instead of a > monolithic > application! > > -- > Benoit Minisini > Okay, thanks Benoit, now then, I wonder what the chances are of getting something like the old VB Richtext Editor working? QT must support rtf so perhaps..... Regards Max -- View this message in context: http://www.nabble.com/Highlight-Multiple-words-in-TextEdit-tp16782505p16790662.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Sun Apr 20 09:02:54 2008 From: rterry at ...1822... (richard terry) Date: Sun, 20 Apr 2008 17:02:54 +1000 Subject: [Gambas-user] Major project wipeout (2.99 build 1326) Message-ID: <200804201702.54723.rterry@...1822...> Not sure where to begin with this one but my extensive project is in tatters and nothing will run. Started with the error showing in the attachment, when I'd copied an existing workspace on one form and pasted it onto a blank new form and run the new form. When I re-loaded the project, the subdirectory with all the forms in it was missing from the project (not the disk), so I got my backup tar file and copied that back in > same result. (the actually directory is still on the hard drive). Still nothing would run. Any form which contains a reference to another form, comes up saying this: 'Unknown symbol in class (whatever form the object is on'. If I have a look at the form I'm referencing, the control is definately on the form with the correct name. I then created a blank project and manually copied all the data over, appears in the project ok, but still won't run. Any file not dependant on importing another form will run I'd appreciate some advice how to track this down. So far I have. Removed latest version. Downgraded to 1316 which was working fine. I can't zip and post the project now as the it is so hooked into my postgres database which is around 80MB in size, and I've many many dozens of forms, modules and classes. What should I do, Panic??? Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: unknown_error_20Apr08.png Type: image/png Size: 28184 bytes Desc: not available URL: From rterry at ...1822... Sun Apr 20 01:51:02 2008 From: rterry at ...1822... (richard terry) Date: Sun, 20 Apr 2008 09:51:02 +1000 Subject: [Gambas-user] Textedit ?not rendering under 2.99 Build 1319 Message-ID: <200804200951.02971.rterry@...1822...> Is something broken with texteditor in 3.0 I was just mucking around with the texteditor, and noticed I couldn't extractthe html, so I ran a really old project I'd done when I first started looking at gambas a couple of months ago in 2 and then in 3. Almost looks like the textedit control has been replaced with the editor control! Perhaps I'm doing something wrong. Weird. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: temp_textedit_G2.tar.gz Type: application/x-tgz Size: 8814 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: temp_textedit_G3.tar.gz Type: application/x-tgz Size: 8843 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: project_gambas2_3_IDE.png Type: image/png Size: 45059 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: project_gambas3_3_RUN.png Type: image/png Size: 72942 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: project_gambas2_2_formcode.png Type: image/png Size: 16524 bytes Desc: not available URL: From rterry at ...1822... Sun Apr 20 01:15:31 2008 From: rterry at ...1822... (richard terry) Date: Sun, 20 Apr 2008 09:15:31 +1000 Subject: [Gambas-user] TexEdit controls not visually being renamed in IDE (2.99 Build 1319) Message-ID: <200804200915.31355.rterry@...1822...> I've just noticed that if I add a text edit control to a form and rename it, then the name on the control in IDE mode dosn't update. ie: 1) Add a textedit to a blank form > name showing in the control in IDE is textedit1. 2) Rename this in the properties window to teWhatever 3) Add another textedit control to the form. > name showing in the control in IDE is textedit1. Now the IDE shows two texedit controls ostensibly with the same name as indicated by the IDE. Dosn't affect the functionality, just misleading to the user. Regards Richard T From ahmedinho at ...43... Sun Apr 20 11:15:39 2008 From: ahmedinho at ...43... (Ahmedinho Ahmed) Date: Sun, 20 Apr 2008 02:15:39 -0700 (PDT) Subject: [Gambas-user] defining start-up class. Message-ID: <783291.23721.qm@...1890...> Hi Gambas users. im new to Gambas and im trying to self teach myself. ihave been able to create a simple program that shows No error when i compile. but when i run it, a warning is displayed "you must define a start up class or form." how do i define a start up class or form? Secondly, i recognised there are words that are recognised, are in the lanuage of Gambas i.e. DIM, Message, info, as, to, etc. is there a directory of Gambas having all these words/commands ? Thanks ahmedinho --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. From rterry at ...1822... Sun Apr 20 02:45:50 2008 From: rterry at ...1822... (richard terry) Date: Sun, 20 Apr 2008 10:45:50 +1000 Subject: [Gambas-user] TableView Message-ID: <200804201045.51043.rterry@...1822...> Wondered if any one would have a little mini-project showing how to use tableview. I couldn't see how to save the text after editing a cell, sorry, I'm just hopeless with interpreting documentation, but once I see an example I'm ok. Thanks in hopeful anticipation. Richard From Karl.Reinl at ...9... Sun Apr 20 11:16:18 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 20 Apr 2008 11:16:18 +0200 Subject: [Gambas-user] Major project wipeout (2.99 build 1326) In-Reply-To: <200804201702.54723.rterry@...1822...> References: <200804201702.54723.rterry@...1822...> Message-ID: <1208682978.5881.1.camel@...40...> Am Sonntag, den 20.04.2008, 17:02 +1000 schrieb richard terry: > Not sure where to begin with this one but my extensive project is in tatters > and nothing will run. > > Started with the error showing in the attachment, when I'd copied an existing > workspace on one form and pasted it onto a blank new form and run the new > form. > > When I re-loaded the project, the subdirectory with all the forms in it was > missing from the project (not the disk), so I got my backup tar file and > copied that back in > same result. (the actually directory is still on the > hard drive). > > > Still nothing would run. Any form which contains a reference to another > form, comes up saying this: > > 'Unknown symbol in class (whatever form the object > is on'. If I have a look at the form I'm referencing, the control is > definately on the form with the correct name. > > > I then created a blank project and manually copied all the data over, appears > in the project ok, but still won't run. > > Any file not dependant on importing another form will run > > I'd appreciate some advice how to track this down. > > So far I have. > > Removed latest version. > > Downgraded to 1316 which was working fine. > > I can't zip and post the project now as the it is so hooked into my postgres > database which is around 80MB in size, and I've many many dozens of forms, > modules and classes. > > What should I do, Panic??? > > Regards > > Richard Salut, should that b e the reason ? (see attached Mail) -- Amicalment Charlie -------------- next part -------------- An embedded message was scrubbed... From: Benoit Minisini Subject: [Gambas-devel] New non-compatible changes in /trunk Date: Sat, 19 Apr 2008 01:47:50 +0200 Size: 3219 URL: From maximvonk at ...626... Sun Apr 20 12:36:20 2008 From: maximvonk at ...626... (MaxVK) Date: Sun, 20 Apr 2008 03:36:20 -0700 (PDT) Subject: [Gambas-user] Highlight Multiple words in TextEdit In-Reply-To: <200804191924.32316.gambas@...1...> References: <16782505.post@...1379...> <200804191442.30223.gambas@...1...> <16784934.post@...1379...> <200804191924.32316.gambas@...1...> Message-ID: <16790675.post@...1379...> Benoit Minisini wrote: > > I have the same answer. What you need is a full text processor control. > > If only OpenOffice guys have developed such a thing instead of a > monolithic > application! > > -- > Benoit Minisini > Oh well, it was worth a try! I just tried to inject some HTML code directly into the texteditor code, but while the test worked and the code went where it was meant to go, the texteditor ignored it! I don't suppose by any chance, that there is an alternative to the "background-color" tag is there? cheers Max -- View this message in context: http://www.nabble.com/Highlight-Multiple-words-in-TextEdit-tp16782505p16790675.html Sent from the gambas-user mailing list archive at Nabble.com. From maximvonk at ...626... Sun Apr 20 12:44:07 2008 From: maximvonk at ...626... (Maximillian Von Kloisterheim) Date: Sun, 20 Apr 2008 11:44:07 +0100 Subject: [Gambas-user] defining start-up class. In-Reply-To: <783291.23721.qm@...1890...> References: <783291.23721.qm@...1890...> Message-ID: <480B1E77.2050009@...626...> Ahmedinho Ahmed wrote: > Hi Gambas users. > im new to Gambas and im trying to self teach myself. ihave been able to create a simple program that shows No error when i compile. but when i run it, a warning is displayed "you must define a start up class or form." > how do i define a start up class or form? > > Secondly, i recognised there are words that are recognised, are in the lanuage of Gambas i.e. DIM, Message, info, as, to, etc. is there a directory of Gambas having all these words/commands ? > Thanks > ahmedinho > > > > --------------------------------- > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Hi there. To set the startup class you simply right click on the item in the project tree on the left, and select "Startup Class" As for the keywords, Im not sure about a list, but the documents are found online here http://www.gambasdoc.org/help/ and a copy of them should have installed when you installed Gambas. Try placing the cursor on a keyword and press F2. Regards Max From ahmedinho at ...43... Sun Apr 20 13:35:06 2008 From: ahmedinho at ...43... (Ahmedinho Ahmed) Date: Sun, 20 Apr 2008 04:35:06 -0700 (PDT) Subject: [Gambas-user] defining start-up class. In-Reply-To: <480B1E77.2050009@...626...> Message-ID: <26784.81355.qm@...1874...> Thanks Maximilian problem solved. Maximillian Von Kloisterheim wrote: Ahmedinho Ahmed wrote: > Hi Gambas users. > im new to Gambas and im trying to self teach myself. ihave been able to create a simple program that shows No error when i compile. but when i run it, a warning is displayed "you must define a start up class or form." > how do i define a start up class or form? > > Secondly, i recognised there are words that are recognised, are in the lanuage of Gambas i.e. DIM, Message, info, as, to, etc. is there a directory of Gambas having all these words/commands ? > Thanks > ahmedinho > > > > --------------------------------- > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Hi there. To set the startup class you simply right click on the item in the project tree on the left, and select "Startup Class" As for the keywords, Im not sure about a list, but the documents are found online here http://www.gambasdoc.org/help/ and a copy of them should have installed when you installed Gambas. Try placing the cursor on a keyword and press F2. Regards Max ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. From kaoticus60 at ...151... Sun Apr 20 13:35:03 2008 From: kaoticus60 at ...151... (andy2) Date: Sun, 20 Apr 2008 13:35:03 +0200 Subject: [Gambas-user] Gambas 2.5 on Ubuntu 8.04: dcop server error In-Reply-To: References: Message-ID: <480B2A67.4070104@...151...> Please let me know about this problem: when i run a gambas application i receive a dcop server error (not running..). The problem is not present with Gambas2.5+Ubuntu 7.1. Thanks for all. Andy B From garulfounix at ...626... Sun Apr 20 13:59:03 2008 From: garulfounix at ...626... (GarulfoUnix) Date: Sun, 20 Apr 2008 13:59:03 +0200 Subject: [Gambas-user] Gambas 2.5 on Ubuntu 8.04: dcop server error In-Reply-To: <480B2A67.4070104@...151...> References: <480B2A67.4070104@...151...> Message-ID: <200804201359.03608.garulfounix@...626...> Le Sunday 20 April 2008 13:35:03 andy2, vous avez ?crit?: > Please let me know about this problem: when i run a gambas application i > receive a dcop server error (not running..). > The problem is not present with Gambas2.5+Ubuntu 7.1. Thanks for all. > > Andy B > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java >one _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Did you have upgrade your Ubuntu recently ? How did you install Gambas 2.5 ? Do you have this error for all gambas applications ? The examples provided with Gambas doesn't run ? -- Gambas ? There is less good but it's more expensive ! From rterry at ...1822... Sun Apr 20 22:45:53 2008 From: rterry at ...1822... (richard terry) Date: Mon, 21 Apr 2008 06:45:53 +1000 Subject: [Gambas-user] Another reproducable Signal 11 crash (2.99 build 1327) Message-ID: <200804210645.54113.rterry@...1822...> I was looking to see why my workspaces would show up what was being added, so I did a simple form. I'd mis-typed Form2 instead of Form1 (see the code). To reproduce the bug you must explicitly do this. 1) run the program. program executes and quite rightly dies when it sees form2 dosn't exist in the project. (graphic = signal_11_20Apr08_1.png) 2) Don't click the stop button, but double click over the text 'form1' in the declare section, and you will get error message 2 (the signal 11) (graphic = signal_11_20Apr08_2.png) I've tested this with previous builds back to 1316 and it is the same. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: signal_11_20Apr08_2.png Type: image/png Size: 21794 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signal_11_20Apr08_1.png Type: image/png Size: 20672 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signal11-0.0.1.tar.gz Type: application/x-tgz Size: 7740 bytes Desc: not available URL: From rterry at ...1822... Sun Apr 20 13:58:17 2008 From: rterry at ...1822... (richard terry) Date: Sun, 20 Apr 2008 21:58:17 +1000 Subject: [Gambas-user] How to change orientation of tabstrip of workspace Message-ID: <200804202158.17202.rterry@...1822...> If I do this to put a form on a workspace: Public aForm As frmCarePlanColumns Public Sub Form_Open() aForm = New frmCarePlanColumns Workspace1.Add(aForm) Workspace1.ActiveWindow.Title = "A Title" End How can I access the tabstrip to set the orientation to tabstrip.bottom? Thanks. richard From pinozollo at ...626... Mon Apr 21 02:15:27 2008 From: pinozollo at ...626... (Pino Zollo) Date: Sun, 20 Apr 2008 20:15:27 -0400 Subject: [Gambas-user] GRIDEDITOR Message-ID: <200804202015.30677.pinozollo@...626...> Could anybody download and see the GRIDEDITOR on http://www.gambasforge.net/ ? I get it corrupted. Ciao Pino From kaoticus60 at ...151... Mon Apr 21 07:04:30 2008 From: kaoticus60 at ...151... (andy) Date: Mon, 21 Apr 2008 07:04:30 +0200 Subject: [Gambas-user] Gambas 2.5 on Ubuntu 8.04: dcop server, error In-Reply-To: References: Message-ID: <480C205E.40804@...151...> Solution found with this command: sudo chown -R myusername:myusername /home/myusername/.* From rterry at ...1822... Mon Apr 21 08:55:53 2008 From: rterry at ...1822... (richard terry) Date: Mon, 21 Apr 2008 16:55:53 +1000 Subject: [Gambas-user] Major project wipeout (2.99 build 1326) In-Reply-To: <1208682978.5881.1.camel@...40...> References: <200804201702.54723.rterry@...1822...> <1208682978.5881.1.camel@...40...> Message-ID: <200804211655.53809.rterry@...1822...> On Sun, 20 Apr 2008 07:16:18 pm Charlie Reinl wrote: I wonder if someone could give me a blow by blow description of how to fix this. ie do I have to manually do something to the properties of each form in a text editor, or the ide. Do I have to copy all the gui onto a new form? or what. Sorry, I'm a bit perplexed. Regards Richard > Am Sonntag, den 20.04.2008, 17:02 +1000 schrieb richard terry: > > Not sure where to begin with this one but my extensive project is in > > tatters and nothing will run. > > > > Started with the error showing in the attachment, when I'd copied an > > existing workspace on one form and pasted it onto a blank new form and > > run the new form. > > > > When I re-loaded the project, the subdirectory with all the forms in it > > was missing from the project (not the disk), so I got my backup tar file > > and copied that back in > same result. (the actually directory is still > > on the hard drive). > > > > > > Still nothing would run. Any form which contains a reference to another > > form, comes up saying this: > > > > 'Unknown symbol in class (whatever form the > > object is on'. If I have a look at the form I'm referencing, the control > > is definately on the form with the correct name. > > > > > > I then created a blank project and manually copied all the data over, > > appears in the project ok, but still won't run. > > > > Any file not dependant on importing another form will run > > > > I'd appreciate some advice how to track this down. > > > > So far I have. > > > > Removed latest version. > > > > Downgraded to 1316 which was working fine. > > > > I can't zip and post the project now as the it is so hooked into my > > postgres database which is around 80MB in size, and I've many many dozens > > of forms, modules and classes. > > > > What should I do, Panic??? > > > > Regards > > > > Richard > > Salut, > > should that b e the reason ? > (see attached Mail) From maximvonk at ...626... Mon Apr 21 13:50:29 2008 From: maximvonk at ...626... (MaxVK) Date: Mon, 21 Apr 2008 04:50:29 -0700 (PDT) Subject: [Gambas-user] Highlight Multiple words in TextEdit In-Reply-To: <200804191924.32316.gambas@...1...> References: <16782505.post@...1379...> <200804191442.30223.gambas@...1...> <16784934.post@...1379...> <200804191924.32316.gambas@...1...> Message-ID: <16807470.post@...1379...> Benoit Minisini wrote: > > I have the same answer. What you need is a full text processor control. > > If only OpenOffice guys have developed such a thing instead of a > monolithic > application! > > -- > Benoit Minisini > Hi Benoit, Iv been hunting around for a hack to try and make this work (its great in tables but not too clever if you only want to highlight a single word!) and I found qrichtext.cpp at trolltech. There is a Misspelled property. Is it possible to get this to work in the TextEdit control, or am I way off the mark here? Cheers Max -- View this message in context: http://www.nabble.com/Highlight-Multiple-words-in-TextEdit-tp16782505p16807470.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Apr 21 14:00:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 21 Apr 2008 14:00:57 +0200 Subject: [Gambas-user] Highlight Multiple words in TextEdit In-Reply-To: <16807470.post@...1379...> References: <16782505.post@...1379...> <200804191924.32316.gambas@...1...> <16807470.post@...1379...> Message-ID: <200804211400.57511.gambas@...1...> On lundi 21 avril 2008, MaxVK wrote: > Benoit Minisini wrote: > > I have the same answer. What you need is a full text processor control. > > > > If only OpenOffice guys have developed such a thing instead of a > > monolithic > > application! > > > > -- > > Benoit Minisini > > Hi Benoit, Iv been hunting around for a hack to try and make this work (its > great in tables but not too clever if you only want to highlight a single > word!) and I found qrichtext.cpp at trolltech. There is a Misspelled > property. Is it possible to get this to work in the TextEdit control, or am > I way off the mark here? > > Cheers > > Max I thought about that, but it won't work in gb.gtk TextEdit, so... But in QT4, it is possible to have a background color for each character, so this is not hopeless! -- Benoit Minisini From gambas at ...1... Mon Apr 21 14:18:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 21 Apr 2008 14:18:30 +0200 Subject: [Gambas-user] Textedit ?not rendering under 2.99 Build 1319 In-Reply-To: <200804200951.02971.rterry@...1822...> References: <200804200951.02971.rterry@...1822...> Message-ID: <200804211418.30791.gambas@...1...> On dimanche 20 avril 2008, richard terry wrote: > Is something broken with texteditor in 3.0 > > I was just mucking around with the texteditor, and noticed I couldn't > extractthe html, so I ran a really old project I'd done when I first > started looking at gambas a couple of months ago in 2 and then in 3. > > > Almost looks like the textedit control has been replaced with the editor > control! Perhaps I'm doing something wrong. > > Weird. > > Regards > > Richard There were changes in TextEdit properties in Gambas 3. Now TextEdit has a Text property and a RichText property to make the difference between rich text and displayed text. I suggest you read carefully the subversion commit logs if you use the development version. Regards, -- Benoit Minisini From gambas at ...1... Mon Apr 21 14:19:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 21 Apr 2008 14:19:27 +0200 Subject: [Gambas-user] TableView In-Reply-To: <200804201045.51043.rterry@...1822...> References: <200804201045.51043.rterry@...1822...> Message-ID: <200804211419.27702.gambas@...1...> On dimanche 20 avril 2008, richard terry wrote: > Wondered if any one would have a little mini-project showing how to use > tableview. > > I couldn't see how to save the text after editing a cell, sorry, I'm just > hopeless with interpreting documentation, but once I see an example I'm ok. > > Thanks in hopeful anticipation. > > Richard > > Look at the FPropertyProject form, "Environment" tab, in the IDE source code. Regards, -- Benoit Minisini From gambas at ...1... Mon Apr 21 14:26:15 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 21 Apr 2008 14:26:15 +0200 Subject: [Gambas-user] Major project wipeout (2.99 build 1326) In-Reply-To: <200804211655.53809.rterry@...1822...> References: <200804201702.54723.rterry@...1822...> <1208682978.5881.1.camel@...40...> <200804211655.53809.rterry@...1822...> Message-ID: <200804211426.15104.gambas@...1...> On lundi 21 avril 2008, richard terry wrote: > On Sun, 20 Apr 2008 07:16:18 pm Charlie Reinl wrote: > > I wonder if someone could give me a blow by blow description of how to fix > this. > > ie do I have to manually do something to the properties of each form in a > text editor, or the ide. Do I have to copy all the gui onto a new form? or > what. > > Sorry, I'm a bit perplexed. > > Regards > > Richard > The IDE normally converts the forms automatically when they are loaded and saved back. To force an update of all forms in a project, there is a menu entry in the IDE "tools" menu. Regards, -- Benoit Minisini From gambas at ...1... Mon Apr 21 14:39:43 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 21 Apr 2008 14:39:43 +0200 Subject: [Gambas-user] How to change orientation of tabstrip of workspace In-Reply-To: <200804202158.17202.rterry@...1822...> References: <200804202158.17202.rterry@...1822...> Message-ID: <200804211439.43499.gambas@...1...> On dimanche 20 avril 2008, richard terry wrote: > If I do this to put a form on a workspace: > > Public aForm As frmCarePlanColumns > > > Public Sub Form_Open() > aForm = New frmCarePlanColumns > Workspace1.Add(aForm) > Workspace1.ActiveWindow.Title = "A Title" > > End > > How can I access the tabstrip to set the orientation to tabstrip.bottom? > > Thanks. > > richard > I will add an Orientation property to the Workspace control for that. Regards, -- Benoit Minisini From jedsoftware at ...626... Mon Apr 21 15:16:08 2008 From: jedsoftware at ...626... (John Dizaro) Date: Mon, 21 Apr 2008 10:16:08 -0300 Subject: [Gambas-user] lost focus with gb.gtk bug?? Message-ID: <11c2d5210804210616n17d6f4akdbbd5dfdda0c616a@...627...> I am using gamba 2.5.1 with debian put some textbox and when you press "TAB" from the keybord i do not have the cursor focus in the next textbox but if i use gb.qt it does. what is happing?? -- John Evan Dizaro Software - Fone: (41) 3333-0303 Fone: (41) 9244-4603 Rua: Alferes Poli Curitiba - PR - Brasil From maximvonk at ...626... Mon Apr 21 17:14:20 2008 From: maximvonk at ...626... (Maximillian Von Kloisterheim) Date: Mon, 21 Apr 2008 16:14:20 +0100 Subject: [Gambas-user] Highlight Multiple words in TextEdit In-Reply-To: <200804211400.57511.gambas@...1...> References: <16782505.post@...1379...> <200804191924.32316.gambas@...1...> <16807470.post@...1379...> <200804211400.57511.gambas@...1...> Message-ID: <480CAF4C.3020105@...626...> Benoit Minisini wrote: > I thought about that, but it won't work in gb.gtk TextEdit, so... > > But in QT4, it is possible to have a background color for each character, so > this is not hopeless! > Fair enough, Ill make do and maybe write this in when something becomes available. Thanks Benoit. Regards Max From gambas at ...1... Mon Apr 21 22:10:36 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 21 Apr 2008 22:10:36 +0200 Subject: [Gambas-user] Another reproducable Signal 11 crash (2.99 build 1327) In-Reply-To: <200804210645.54113.rterry@...1822...> References: <200804210645.54113.rterry@...1822...> Message-ID: <200804212210.36145.gambas@...1...> On dimanche 20 avril 2008, richard terry wrote: > I was looking to see why my workspaces would show up what was being added, > so I did a simple form. > > I'd mis-typed Form2 instead of Form1 (see the code). > > To reproduce the bug you must explicitly do this. > > 1) run the program. > > program executes and quite rightly dies when it sees form2 dosn't exist in > the project. (graphic = signal_11_20Apr08_1.png) > > 2) Don't click the stop button, but double click over the text 'form1' in > the declare section, and you will get error message 2 (the signal 11) > (graphic = signal_11_20Apr08_2.png) > > I've tested this with previous builds back to 1316 and it is the same. > > Regards > > Richard This is a bug in the debugger that I will fix in the next commit. Regards, -- Benoit Minisini From gambas at ...1... Mon Apr 21 23:19:12 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 21 Apr 2008 23:19:12 +0200 Subject: [Gambas-user] lost focus with gb.gtk bug?? In-Reply-To: <11c2d5210804210616n17d6f4akdbbd5dfdda0c616a@...627...> References: <11c2d5210804210616n17d6f4akdbbd5dfdda0c616a@...627...> Message-ID: <200804212319.12218.gambas@...1...> On lundi 21 avril 2008, John Dizaro wrote: > I am using gamba 2.5.1 with debian > put some textbox and when you press "TAB" from the keybord i do not have > the cursor focus in the next textbox > but if i use gb.qt it does. > what is happing?? This is fixed in revision 1331. Regards, -- Benoit Minisini From dcamposf at ...626... Tue Apr 22 12:57:11 2008 From: dcamposf at ...626... (Daniel Campos) Date: Tue, 22 Apr 2008 12:57:11 +0200 Subject: [Gambas-user] Ubuntu packages updated Message-ID: <7259b5ae0804220357j1b32e047g93916769ec2812e2@...627...> Hi: I've updated Ubuntu i386 packages for Edgy, Feisty, Gutasy and Hardy to Gamabs 2.5 BTW: The new link for those packages is: http://gambas.gnulinex.org/ubuntu Benoit, could you update your link in your information about distributions? Daniel From kari.laine at ...1400... Tue Apr 22 14:56:20 2008 From: kari.laine at ...1400... (Kari Laine) Date: Tue, 22 Apr 2008 15:56:20 +0300 Subject: [Gambas-user] Gambas Form File 1.0 Message-ID: <480DE074.5010208@...1400...> Hi, after one succesfull project delivered I am learning how gambas works - it is not easy ... I found this statement in gbc_form.c and I think it is old relic - am I wrong ? if (!strncasecmp(line, "Gambas Form File 1.0", len)) THROW("Bad version"); Best Regards Kari Laine From kari.laine at ...1400... Tue Apr 22 15:21:02 2008 From: kari.laine at ...1400... (Kari Laine) Date: Tue, 22 Apr 2008 16:21:02 +0300 Subject: [Gambas-user] Gambas Form File 1.0 In-Reply-To: <480DE074.5010208@...1400...> References: <480DE074.5010208@...1400...> Message-ID: <480DE63E.7070605@...1400...> Kari Laine wrote: > Hi, > > after one succesfull project delivered I am learning how gambas works - > it is not easy ... > > I found this statement in gbc_form.c and I think it is old relic - am I > wrong ? > > if (!strncasecmp(line, "Gambas Form File 1.0", len)) > THROW("Bad version"); > Forget it - stupid me. This simple says that version 1.0 of form is bad. I am not very good with C yet. Kari From wdahn at ...1000... Wed Apr 23 07:58:14 2008 From: wdahn at ...1000... (Werner) Date: Wed, 23 Apr 2008 13:58:14 +0800 Subject: [Gambas-user] Image Fading with gb.image Message-ID: <480ECFF6.8060004@...1000...> I am trying to gradually fade an image. It does work, however there are apparently random artifacts (horizontal white stripes) which spoil the effect. Is there a way to avoid these artifacts? Using gambas 2.4.1 on opensuse 10.3 on 2 different computers. Regards, Werner Dahn -------------- next part -------------- A non-text attachment was scrubbed... Name: fadetest.tar.gz Type: application/x-gzip Size: 24588 bytes Desc: not available URL: From gambas at ...1... Wed Apr 23 11:37:56 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Apr 2008 11:37:56 +0200 Subject: [Gambas-user] Image Fading with gb.image In-Reply-To: <480ECFF6.8060004@...1000...> References: <480ECFF6.8060004@...1000...> Message-ID: <200804231137.56139.gambas@...1...> On mercredi 23 avril 2008, Werner wrote: > I am trying to gradually fade an image. It does work, however there are > apparently random artifacts (horizontal white stripes) which spoil the > effect. > > Is there a way to avoid these artifacts? > > Using gambas 2.4.1 on opensuse 10.3 on 2 different computers. > > Regards, > Werner Dahn You see the background of the PictureBox being drawn before the picture is refreshed. Don't use a PictureBox to display your image, use a DrawingArea instead. Regards, -- Benoit Minisini From gambas at ...1... Wed Apr 23 12:17:08 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Apr 2008 12:17:08 +0200 Subject: [Gambas-user] Image Fading with gb.image In-Reply-To: <200804231137.56139.gambas@...1...> References: <480ECFF6.8060004@...1000...> <200804231137.56139.gambas@...1...> Message-ID: <200804231217.08590.gambas@...1...> On mercredi 23 avril 2008, Benoit Minisini wrote: > On mercredi 23 avril 2008, Werner wrote: > > I am trying to gradually fade an image. It does work, however there are > > apparently random artifacts (horizontal white stripes) which spoil the > > effect. > > > > Is there a way to avoid these artifacts? > > > > Using gambas 2.4.1 on opensuse 10.3 on 2 different computers. > > > > Regards, > > Werner Dahn > > You see the background of the PictureBox being drawn before the picture is > refreshed. Don't use a PictureBox to display your image, use a DrawingArea > instead. > > Regards, I have successfully fixed the PictureBox control so that it does not flicker anymore, so you will be able to keep it in the next version! Regards, -- Benoit Minisini From gareth at ...1689... Wed Apr 23 16:34:17 2008 From: gareth at ...1689... (Gareth Bult) Date: Wed, 23 Apr 2008 15:34:17 +0100 (BST) Subject: [Gambas-user] GRIDEDITOR In-Reply-To: <200804202015.30677.pinozollo@...626...> Message-ID: <18914698.13101208961257308.JavaMail.root@...1834...> Hi, http://encryptec.net/software/gambas-grideditor/ ----- Original Message ----- From: "Pino Zollo" To: gambas-user at lists.sourceforge.net Sent: Monday, April 21, 2008 1:15:27 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: [Gambas-user] GRIDEDITOR Could anybody download and see the GRIDEDITOR on http://www.gambasforge.net/ ? I get it corrupted. Ciao Pino ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From wdahn at ...1000... Wed Apr 23 17:39:15 2008 From: wdahn at ...1000... (Werner) Date: Wed, 23 Apr 2008 23:39:15 +0800 Subject: [Gambas-user] Image Fading with gb.image In-Reply-To: <200804231217.08590.gambas@...1...> References: <480ECFF6.8060004@...1000...> <200804231137.56139.gambas@...1...> <200804231217.08590.gambas@...1...> Message-ID: <480F5823.4010305@...1000...> Benoit Minisini wrote: > On mercredi 23 avril 2008, Benoit Minisini wrote: > >> On mercredi 23 avril 2008, Werner wrote: >> >>> I am trying to gradually fade an image. It does work, however there are >>> apparently random artifacts (horizontal white stripes) which spoil the >>> effect. >>> >>> Is there a way to avoid these artifacts? >>> >>> Using gambas 2.4.1 on opensuse 10.3 on 2 different computers. >>> >>> Regards, >>> Werner Dahn >>> >> You see the background of the PictureBox being drawn before the picture is >> refreshed. Don't use a PictureBox to display your image, use a DrawingArea >> instead. >> >> Regards, >> > > I have successfully fixed the PictureBox control so that it does not flicker > anymore, so you will be able to keep it in the next version! > > Regards, > > I have converted the demo from picturebox to drawingarea and it's MAGNIFIQUE! Then I applied this to the much bigger picture I need this for and it's still perfect (the cpu starts to sweat but that's OK). I'll use the picturebox once it gets backported to 2.x Merci beaucoup Benoit. You have made my day :-) Werner From pinozollo at ...626... Thu Apr 24 00:06:21 2008 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 23 Apr 2008 18:06:21 -0400 Subject: [Gambas-user] GRIDEDITOR In-Reply-To: <18914698.13101208961257308.JavaMail.root@...1834...> References: <18914698.13101208961257308.JavaMail.root@...1834...> Message-ID: <200804231806.25142.pinozollo@...626...> Alle 10:34, mercoled? 23 aprile 2008, hai scritto: > Hi, >Note: I've not actually tested the text area - feedback would be good? Hi Mr. Gareth, It works almost.... I tried on a PostgreSQL database on a table of about 4000 records, using GAMBAS 2.0 . It opens correctly the grid and shows the contents of the table on 4 columns. I made the first column 'text', the second 'auto' and 3rd and 4th 'combo'. A double click on an item of the first columns opens an editor... I can edit well, but, giving an ENTER all get frozen. A double click on the 3rd or 4th column the combo appears but can not be opened clicking on the down arrow. It is possible to edit inside the field of the combo. Giving an ENTER all get frozen again. This is my SUB PUBLIC SUB grid_Edit() DIM Row AS Integer = grid.Table.Row DIM Col AS Integer = grid.Table.Column SELECT Col CASE 1 ' grid.Show ' <<--- what to put here ? CASE 3 grid.ShowCombo(["CW", "SSB", "RTTY", "PSK31"], TRUE) CASE 4 grid.ShowCombo(["10M", "17M", "20M", "30M"], TRUE) END SELECT END Any sugestion ? Best regards Pino From jjmoncar at ...626... Thu Apr 24 01:55:59 2008 From: jjmoncar at ...626... (jjmoncar) Date: Thu, 24 Apr 2008 19:25:59 +1930 Subject: [Gambas-user] GRIDEDITOR In-Reply-To: <18914698.13101208961257308.JavaMail.root@...1834...> References: <200804202015.30677.pinozollo@...626...> <18914698.13101208961257308.JavaMail.root@...1834...> Message-ID: <7522e790804231655u3b9a79b9mf9c9b86b872c6fbd@...627...> hi, all files from http://gambasforge.net are corrupted. iam from venezuela and i need one example fron gb.report... if you can help me.... 2008/4/24 Gareth Bult : > Hi, > > http://encryptec.net/software/gambas-grideditor/ > > > ----- Original Message ----- > From: "Pino Zollo" > To: gambas-user at lists.sourceforge.net > Sent: Monday, April 21, 2008 1:15:27 AM GMT +00:00 GMT Britain, Ireland, > Portugal > Subject: [Gambas-user] GRIDEDITOR > > Could anybody download and see the GRIDEDITOR on > > http://www.gambasforge.net/ ? > > I get it corrupted. > > Ciao > Pino > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Thu Apr 24 22:05:50 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 24 Apr 2008 15:05:50 -0500 Subject: [Gambas-user] what determines an application's resource useage Message-ID: <1f1e8c1b0804241305y7a44c85wb48a64754b40ba1d@...627...> This question has been going around in my head for quite a while and I'd like to get an answer. How can I make sure that my application doesn't consume too much of the system resources? It is my understanding (correct me if I'm wrong) that if I assign a variable in an application, the system will allocate a certain ammount of RAM to that one variable (Ammount depends on the type of variable that is declared) Does that mean that the less ammount of variables used in an application, the less RAM the application will use? Any light in this issue is appreciated. Again, Correct me if I'm wrong From gambas at ...1... Thu Apr 24 22:14:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 24 Apr 2008 22:14:55 +0200 Subject: [Gambas-user] what determines an application's resource useage In-Reply-To: <1f1e8c1b0804241305y7a44c85wb48a64754b40ba1d@...627...> References: <1f1e8c1b0804241305y7a44c85wb48a64754b40ba1d@...627...> Message-ID: <200804242214.55649.gambas@...1...> On jeudi 24 avril 2008, M0E Lnx wrote: > This question has been going around in my head for quite a while and > I'd like to get an answer. > > How can I make sure that my application doesn't consume too much of > the system resources? > It is my understanding (correct me if I'm wrong) that if I assign a > variable in an application, the system will allocate a certain ammount > of RAM to that one variable (Ammount depends on the type of variable > that is declared) No, assigning a variable does not use memory at all. Memory is allocated when: - A class is loaded. - A new object is created. The variables in the stack are allocated at startup. And of course, the libraries used by Gambas allocates memory on their own. Regards, -- Benoit Minisini From m0e.lnx at ...626... Thu Apr 24 22:19:54 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 24 Apr 2008 15:19:54 -0500 Subject: [Gambas-user] Scrolling text ... how to do in gambas In-Reply-To: <200804111631.20700.rospolosco@...152...> References: <1f1e8c1b0804110450q57b220a3l986348eee2650685@...627...> <200804111631.20700.rospolosco@...152...> Message-ID: <1f1e8c1b0804241319k595a71bck2709b62a8057003d@...627...> I'm not sure this does what I need though... In this code you sent, there is a scrollview, and a text label. The timer shifts the scrollview's Y property to do the animation, but still doesn't work for me, because that would be the same as simply using a text label, and moving it's Y property. That I can do with a timer like in your example... but how to determine how tall or wide the text label has to be in order for the text not to get cut off the label? On Fri, Apr 11, 2008 at 9:31 AM, Stefano Palmeri wrote: > Alle 13:50, venerd? 11 aprile 2008, M0E Lnx ha scritto: > > Anyone know how to do scrolling text in gambas? > > > > I'm trying to make a window with a bit of animated text. kind of like > > in the "about gambas" little display from IDE > > > > A little example attached. > > Stefano > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java > >one _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From m0e.lnx at ...626... Thu Apr 24 22:21:11 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 24 Apr 2008 15:21:11 -0500 Subject: [Gambas-user] what determines an application's resource useage In-Reply-To: <200804242214.55649.gambas@...1...> References: <1f1e8c1b0804241305y7a44c85wb48a64754b40ba1d@...627...> <200804242214.55649.gambas@...1...> Message-ID: <1f1e8c1b0804241321x7e673537qe246ac3192176d33@...627...> Thanks for the clarification :) On Thu, Apr 24, 2008 at 3:14 PM, Benoit Minisini wrote: > On jeudi 24 avril 2008, M0E Lnx wrote: > > This question has been going around in my head for quite a while and > > I'd like to get an answer. > > > > How can I make sure that my application doesn't consume too much of > > the system resources? > > It is my understanding (correct me if I'm wrong) that if I assign a > > variable in an application, the system will allocate a certain ammount > > of RAM to that one variable (Ammount depends on the type of variable > > that is declared) > > No, assigning a variable does not use memory at all. > > Memory is allocated when: > > - A class is loaded. > > - A new object is created. > > The variables in the stack are allocated at startup. > > And of course, the libraries used by Gambas allocates memory on their own. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wdahn at ...1000... Fri Apr 25 09:29:16 2008 From: wdahn at ...1000... (Werner) Date: Fri, 25 Apr 2008 15:29:16 +0800 Subject: [Gambas-user] Scrolling text ... how to do in gambas In-Reply-To: <1f1e8c1b0804241319k595a71bck2709b62a8057003d@...627...> References: <1f1e8c1b0804110450q57b220a3l986348eee2650685@...627...> <200804111631.20700.rospolosco@...152...> <1f1e8c1b0804241319k595a71bck2709b62a8057003d@...627...> Message-ID: <4811884C.6020307@...1000...> M0E Lnx wrote: > I'm not sure this does what I need though... > In this code you sent, there is a scrollview, and a text label. > The timer shifts the scrollview's Y property to do the animation, but > still doesn't work for me, because that would be the same as simply > using a text label, and moving it's Y property. > > That I can do with a timer like in your example... but how to > determine how tall or wide the text label has to be in order for the > text not to get cut off the label? > > If I understand the question correctly, you want to know how many pixels wide and high a given text using a particular font on the screen will be. The gb.qt Font class has the answer to that. Example: if the name of your TextLabel is txl then PRINT "The text is " & txl.Font.Width(txl.Text) & " pixel wide and " & txl.Font.Height(txl.Text) & " pixel high." prints the width and the height when using the TextLabel's font. One word of caution: Some fonts designers were a little sloppy in describing their fonts accurately, especially as far as height is concerned. Hope I haven't answered a different question :-) Regards, Werner From ronstk at ...239... Fri Apr 25 10:37:08 2008 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 25 Apr 2008 10:37:08 +0200 Subject: [Gambas-user] what determines an application's resource useage In-Reply-To: <200804242214.55649.gambas@...1...> References: <1f1e8c1b0804241305y7a44c85wb48a64754b40ba1d@...627...> <200804242214.55649.gambas@...1...> Message-ID: <200804251037.08572.ronstk@...239...> On Thursday 24 April 2008 22:14, Benoit Minisini wrote: > On jeudi 24 avril 2008, M0E Lnx wrote: > > This question has been going around in my head for quite a while and > > I'd like to get an answer. > > > > How can I make sure that my application doesn't consume too much of > > the system resources? > > It is my understanding (correct me if I'm wrong) that if I assign a > > variable in an application, the system will allocate a certain ammount > > of RAM to that one variable (Ammount depends on the type of variable > > that is declared) > > No, assigning a variable does not use memory at all. > > Memory is allocated when: > > - A class is loaded. > > - A new object is created. > > The variables in the stack are allocated at startup. > > And of course, the libraries used by Gambas allocates memory on their own. > > Regards, > uuum Variables should use memory. but the difference here is the space is not used in the runtime resident allocated memory space but the stack. However do not put to much on that stack space. It is not size of your free memory (1Gibyte Dram inserted) but a limitted memory stack space. Creating dynamic 100000 variables/objects wil hurt that stack. Stack is also memory so the answer in reality is 'yes' but a more efficent way and the resident (fixed) menory footprint stays small. Ron From eilert-sprachen at ...221... Fri Apr 25 11:00:03 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 25 Apr 2008 11:00:03 +0200 Subject: [Gambas-user] Re-arranging elements in IDE Message-ID: <48119D93.6010406@...221...> I'm just taking up regular work with Gambas 2 and this is my first question: In the IDE, is it possible to re-arrange elements such as placing the tool collection on the left and the tree on the right etc.? Regards Rolf From gareth at ...1689... Fri Apr 25 15:27:29 2008 From: gareth at ...1689... (Gareth Bult) Date: Fri, 25 Apr 2008 14:27:29 +0100 (BST) Subject: [Gambas-user] GRIDEDITOR In-Reply-To: <200804231806.25142.pinozollo@...626...> Message-ID: <7737396.15881209130049938.JavaMail.root@...1834...> Hi, I'm afraid I've never tried using Postfix .. To make combo's editable, I think it's a case if switching TRUE to FALSE on your call... To debug, disable the component in your preferences. Add the component's source to your project under "classes" .. Then run .. You will lose the "design time" display, but you will be able to pause the program inside the grideditor code to see which lines(s) it's having problems with. Can you try it with MySQL, just to rule out the Database? Gareth. ----- Original Message ----- From: "Pino Zollo" To: "Gareth Bult" , gambas-user at lists.sourceforge.net Sent: Wednesday, April 23, 2008 11:06:21 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] GRIDEDITOR Alle 10:34, mercoled? 23 aprile 2008, hai scritto: > Hi, >Note: I've not actually tested the text area - feedback would be good? Hi Mr. Gareth, It works almost.... I tried on a PostgreSQL database on a table of about 4000 records, using GAMBAS 2.0 . It opens correctly the grid and shows the contents of the table on 4 columns. I made the first column 'text', the second 'auto' and 3rd and 4th 'combo'. A double click on an item of the first columns opens an editor... I can edit well, but, giving an ENTER all get frozen. A double click on the 3rd or 4th column the combo appears but can not be opened clicking on the down arrow. It is possible to edit inside the field of the combo. Giving an ENTER all get frozen again. This is my SUB PUBLIC SUB grid_Edit() DIM Row AS Integer = grid.Table.Row DIM Col AS Integer = grid.Table.Column SELECT Col CASE 1 ' grid.Show ' <<--- what to put here ? CASE 3 grid.ShowCombo(["CW", "SSB", "RTTY", "PSK31"], TRUE) CASE 4 grid.ShowCombo(["10M", "17M", "20M", "30M"], TRUE) END SELECT END Any sugestion ? Best regards Pino From gambas.fr at ...626... Fri Apr 25 21:01:49 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 25 Apr 2008 21:01:49 +0200 Subject: [Gambas-user] Re-arranging elements in IDE In-Reply-To: <48119D93.6010406@...221...> References: <48119D93.6010406@...221...> Message-ID: <6324a42a0804251201m4c3b3f4ftcd6acf3e2495b650@...627...> not yet ... but maybe one day ;) 2008/4/25, Rolf-Werner Eilert : > > I'm just taking up regular work with Gambas 2 and this is my first > question: > > In the IDE, is it possible to re-arrange elements such as placing the > tool collection on the left and the tree on the right etc.? > > Regards > > Rolf > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Apr 25 21:13:19 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 25 Apr 2008 21:13:19 +0200 Subject: [Gambas-user] what determines an application's resource useage In-Reply-To: <200804251037.08572.ronstk@...239...> References: <1f1e8c1b0804241305y7a44c85wb48a64754b40ba1d@...627...> <200804242214.55649.gambas@...1...> <200804251037.08572.ronstk@...239...> Message-ID: <200804252113.19727.gambas@...1...> On vendredi 25 avril 2008, Ron Onstenk wrote: > On Thursday 24 April 2008 22:14, Benoit Minisini wrote: > > On jeudi 24 avril 2008, M0E Lnx wrote: > > > This question has been going around in my head for quite a while and > > > I'd like to get an answer. > > > > > > How can I make sure that my application doesn't consume too much of > > > the system resources? > > > It is my understanding (correct me if I'm wrong) that if I assign a > > > variable in an application, the system will allocate a certain ammount > > > of RAM to that one variable (Ammount depends on the type of variable > > > that is declared) > > > > No, assigning a variable does not use memory at all. > > > > Memory is allocated when: > > > > - A class is loaded. > > > > - A new object is created. > > > > The variables in the stack are allocated at startup. > > > > And of course, the libraries used by Gambas allocates memory on their > > own. > > > > Regards, > > uuum > > Variables should use memory. but the difference here is the space is not > used in the runtime resident allocated memory space but the stack. > > However do not put to much on that stack space. It is not size of your free > memory (1Gibyte Dram inserted) but a limitted memory stack space. > Creating dynamic 100000 variables/objects wil hurt that stack. > > Stack is also memory so the answer in reality is 'yes' but a more > efficent way and the resident (fixed) menory footprint stays small. > > Ron > We are not talking about the stack used by the interpreter process, but the Gambas stack used by the interpreted bytecode. This stack is allocated at startup, and cannot grow at the moment. So the number of local variables declared in a function changes nothing about used memory, unless you have recursive functions of course. Regards, -- Benoit Minisini From gambas at ...1... Fri Apr 25 21:13:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 25 Apr 2008 21:13:53 +0200 Subject: [Gambas-user] Re-arranging elements in IDE In-Reply-To: <48119D93.6010406@...221...> References: <48119D93.6010406@...221...> Message-ID: <200804252113.53060.gambas@...1...> On vendredi 25 avril 2008, Rolf-Werner Eilert wrote: > I'm just taking up regular work with Gambas 2 and this is my first > question: > > In the IDE, is it possible to re-arrange elements such as placing the > tool collection on the left and the tree on the right etc.? > > Regards > > Rolf > What sort of layouts do you need? -- Benoit Minisini From pinozollo at ...626... Sat Apr 26 00:09:42 2008 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 25 Apr 2008 18:09:42 -0400 Subject: [Gambas-user] GRIDEDITOR Message-ID: <200804251809.45441.pinozollo@...626...> Alle 09:27, venerd? 25 aprile 2008, hai scritto: > To make combo's editable, I think it's a case if switching TRUE to FALSE on > your call... Hi, I have tried both: TRUE and FALSE but no change at all. Any how I have discovered why at the moment of updating, my program get stuck. See the following trace of the queries produced: DBConnection.Exec.117: SELECT * FROM qso DBConnection.Exec.117: ROLLBACK WARNING: non c'? nessuna transazione in corso DBConnection.Exec.117: BEGIN DBConnection.Exec.117: UPDATE qso SET distance='EM0Uxxxx' WHERE qso_number =873 <---WRONG, must be call='EM0... The error is in the name of the field 'distance': it must be 'call' ...so a string is assigned to a float field. The error is general...it appens also for the other two editable columns, the 3rd and 4th. See the following: ------------------------ DBConnection.Exec.117: SELECT * FROM qso DBConnection.Exec.117: ROLLBACK <--- useless, generates the following worning WARNING: non c'? nessuna transazione in corso DBConnection.Exec.117: BEGIN DBConnection.Exec.117: UPDATE qso SET band='PSK' WHERE qso_number =873 <---WRONG, must be SET mode = 'PSK' DBConnection.Exec.117: UPDATE qso SET call='11m' WHERE qso_number =873 <---WRONG, must be band = '11m' DBConnection.Exec.117: COMMIT DBConnection.Exec.117: SELECT * FROM qso DBConnection.Exec.117: ROLLBACK <-- useless, WARNING: non c'? nessuna transazione in corso DBConnection.Exec.117: BEGIN DBConnection.Exec.117: UPDATE qso SET call='11m' WHERE qso_number =874 <--- WRONG DBConnection.Exec.117: COMMIT DBConnection.Exec.117: SELECT * FROM qso DBConnection.Exec.117: ROLLBACK WARNING: non c'? nessuna transazione in corso DBConnection.Exec.117: BEGIN ------------- It happens that: $resultSet.Fields[Col].Name it gives the wrong name. Here is why: This is the definition of my table made of 53 items: CREATE TABLE qso ( ADDRESS text, DISTANCE real , ARRL_SECT varchar(3), BAND varchar(5) NOT NULL, CALL text NOT NULL, CNTY text, ...... 53 in total DBGridEditor.GridEditor_Update.313: address for Col = 0 DBGridEditor.GridEditor_Update.313: distance for Col = 1 DBGridEditor.GridEditor_Update.314: arrl_sect ........2 DBGridEditor.GridEditor_Update.315: band ........3 DBGridEditor.GridEditor_Update.316: call ........4 DBGridEditor.GridEditor_Update.318: cnty ........5 --> Col is not the column in GridEdit, but the order in the definition of the database. --> There is no garantee that the same order is respected !! --> In my case I have four columns in GridEdit out of 53 in the table in random order. ... So it takes to remember the real names of the columns used for been edited. Regads Pino ------------------------------------------------------- From pinozollo at ...626... Sat Apr 26 01:16:59 2008 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 25 Apr 2008 19:16:59 -0400 Subject: [Gambas-user] GRIDEDITOR In-Reply-To: <7143933.16711209160830029.JavaMail.root@...1834...> References: <7143933.16711209160830029.JavaMail.root@...1834...> Message-ID: <200804251917.03258.pinozollo@...626...> Alle 18:00, venerd? 25 aprile 2008, hai scritto: > Yup, > > In this instance you should really be using "SELECT field1,field2,... " > rather than "SELECT * ..." ... (!) I do not agree... SELECT * ...works fine because the table of four columns I have done shows correctly the right informations: i.e. the column 'call' , which is the 5th of the data base definitions, and the first in my program of GridEditor, contains the correct informations. The problem is generating the query UPDATE. The instruction $resultSet.Fields[Col].Name , otherwise, gets the names in the database table, not the names in the Grid to be edited. 'Col' does not concern the grid to be edited, but the items in the database table. ----- For what concerns the problem of Combo that does not open, I do not understend yet where the parameters in the instruction grid.ShowCombo(["10M", "17M", "20M", "30M"], TRUE) get passed to the GridEdit program; In SELECT editor CASE "combo" actual = NEW String[] ' build up the actual combo list here 'actual' is always empty So it seems that those parameters are not passed. Where shell I check ? Regards Pino From pinozollo at ...626... Sat Apr 26 02:45:42 2008 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 25 Apr 2008 20:45:42 -0400 Subject: [Gambas-user] GRIDEDITOR In-Reply-To: <7143933.16711209160830029.JavaMail.root@...1834...> References: <7143933.16711209160830029.JavaMail.root@...1834...> Message-ID: <200804252045.47150.pinozollo@...626...> Alle 18:00, venerd? 25 aprile 2008, hai scritto: > Yup, > > In this instance you should really be using "SELECT field1,field2,... " > rather than "SELECT * ..." ... (!) sorry...now I have got your point....but should be: SELECT primary_key, field1, field2, ....FROM nametable Note that primary_key must be the first of the list. --------- Combo still does not open. Regards Pino From gareth at ...1689... Sat Apr 26 04:29:01 2008 From: gareth at ...1689... (Gareth Bult) Date: Sat, 26 Apr 2008 03:29:01 +0100 (BST) Subject: [Gambas-user] GRIDEDITOR In-Reply-To: <200804252045.47150.pinozollo@...626...> Message-ID: <1128197.16901209176941853.JavaMail.root@...1834...> Ok, What do you have in the editors property for the field, "auto" or "combo" ..? If you are supplying your own values, it should be auto. In which case, of you try a "combo", does it then work? i.e. try; combo|One|Two|Three|FALSE in the editors property and see what happens ... -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Pino Zollo" To: "Gareth Bult" , gambas-user at lists.sourceforge.net Sent: Saturday, April 26, 2008 1:45:42 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] GRIDEDITOR Alle 18:00, venerd? 25 aprile 2008, hai scritto: > Yup, > > In this instance you should really be using "SELECT field1,field2,... " > rather than "SELECT * ..." ... (!) sorry...now I have got your point....but should be: SELECT primary_key, field1, field2, ....FROM nametable Note that primary_key must be the first of the list. --------- Combo still does not open. Regards Pino From eilert-sprachen at ...221... Sat Apr 26 12:34:22 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Sat, 26 Apr 2008 12:34:22 +0200 Subject: [Gambas-user] Re-arranging elements in IDE In-Reply-To: <200804252113.53060.gambas@...1...> References: <48119D93.6010406@...221...> <200804252113.53060.gambas@...1...> Message-ID: <4813052E.80004@...221...> Benoit Minisini schrieb: > On vendredi 25 avril 2008, Rolf-Werner Eilert wrote: >> I'm just taking up regular work with Gambas 2 and this is my first >> question: >> >> In the IDE, is it possible to re-arrange elements such as placing the >> tool collection on the left and the tree on the right etc.? >> >> Regards >> >> Rolf >> > > What sort of layouts do you need? > Oh, it's just that from Gambas1 I'm used to having the "Tools" palette on left, the tree with modules etc. on the right (top) and the "Properties" window beneath that. That was more practical for me, as I do - rarely need the direct window open - have not so long trees in most of my projects - like to have all tools visible at a time - like to have all properties visible at a time A fixed MDI system just confines me too much, I simply don't like that. But we had this discussion when you started work on Gambas2, and I feel I'm alone here, so maybe it's just a matter of getting used to it and learn the advantages :-) Regards Rolf From gambas.fr at ...626... Sat Apr 26 14:10:15 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 26 Apr 2008 14:10:15 +0200 Subject: [Gambas-user] Re-arranging elements in IDE In-Reply-To: <4813052E.80004@...221...> References: <48119D93.6010406@...221...> <200804252113.53060.gambas@...1...> <4813052E.80004@...221...> Message-ID: <6324a42a0804260510m7511a22fp4e12e7c3326ea634@...627...> there are things that are not perfect too... but it will evoluate ... for the better 2008/4/26 Rolf-Werner Eilert : > Benoit Minisini schrieb: > > > On vendredi 25 avril 2008, Rolf-Werner Eilert wrote: > >> I'm just taking up regular work with Gambas 2 and this is my first > >> question: > >> > >> In the IDE, is it possible to re-arrange elements such as placing the > >> tool collection on the left and the tree on the right etc.? > >> > >> Regards > >> > >> Rolf > >> > > > > What sort of layouts do you need? > > > > > > Oh, it's just that from Gambas1 I'm used to having the "Tools" palette > on left, the tree with modules etc. on the right (top) and the > "Properties" window beneath that. That was more practical for me, as I do > > - rarely need the direct window open > - have not so long trees in most of my projects > - like to have all tools visible at a time > - like to have all properties visible at a time > > A fixed MDI system just confines me too much, I simply don't like that. > But we had this discussion when you started work on Gambas2, and I feel > I'm alone here, so maybe it's just a matter of getting used to it and > learn the advantages :-) > > Regards > > Rolf > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sat Apr 26 16:20:57 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 26 Apr 2008 16:20:57 +0200 Subject: [Gambas-user] Scrolling text ... how to do in gambas In-Reply-To: <4811884C.6020307@...1000...> References: <1f1e8c1b0804110450q57b220a3l986348eee2650685@...627...> <200804111631.20700.rospolosco@...152...> <1f1e8c1b0804241319k595a71bck2709b62a8057003d@...627...> <4811884C.6020307@...1000...> Message-ID: <6324a42a0804260720h7c761e2bgc2c9715071ab280c@...627...> txtl.autoresize = true height = txtl.height i think this will work... not tested yet. And by drawing the text ? Draw.Richtext(text,x,y) ? in a drawing area... Private $iHeight as integer Private $sMyText as String Private $iX, $iY as Integer Public Sub Form_Open() $ix = DrawingArea.ClientH $sMyText = "tiutiut....................istsiutsistist" Draw.Begin(DrawingArea1) $iHeight = Draw.RichTextHeight($sMyText, DrawingArea1.ClientW) Draw.End End Public Sub Timer_Timer() dec $ix if $ix+$iHeight<=0 then $ix = DrawingArea.ClientH DrawingArea.Refresh End Public Sub DrawingArea1_Draw() Draw.RichText($sMyText, ,$ix,$iy,Last.ClientW) end 2008/4/25 Werner : > M0E Lnx wrote: > > I'm not sure this does what I need though... > > In this code you sent, there is a scrollview, and a text label. > > The timer shifts the scrollview's Y property to do the animation, but > > still doesn't work for me, because that would be the same as simply > > using a text label, and moving it's Y property. > > > > That I can do with a timer like in your example... but how to > > determine how tall or wide the text label has to be in order for the > > text not to get cut off the label? > > > > > If I understand the question correctly, you want to know how many pixels > wide and high a given text using a particular font on the screen will be. > > The gb.qt Font class has the answer to that. > > Example: if the name of your TextLabel is txl then > > PRINT "The text is " & txl.Font.Width(txl.Text) & " pixel wide and " & > txl.Font.Height(txl.Text) & " pixel high." > > prints the width and the height when using the TextLabel's font. > > One word of caution: Some fonts designers were a little sloppy in > describing their fonts accurately, especially as far as height is concerned. > > Hope I haven't answered a different question :-) > > Regards, > > Werner > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nisse.ngn at ...626... Sat Apr 26 17:18:05 2008 From: nisse.ngn at ...626... (Nisse Nordlund) Date: Sat, 26 Apr 2008 17:18:05 +0200 Subject: [Gambas-user] clipboard.copy problem Message-ID: <481347AD.4020109@...626...> Hi, I'm new, in gambas and in Linux ubuntu 7.10. And I'm Swedish I post the follow in the forum.stormweb.nu. Topic: Gambas Community > Gambas > General: "Subject: *clipboard.copy problem* Topic: Hi, I'm a swedish 'old' man, 3/4 of my life I have progamming in VB6. Very nice. Now I'm new in gamba looks well, but. There is some thing that confuce me. In my project I have a TextBox that contains Swedish (??????). This line: clipboard.copy(TextBox.text) goes well (No errors). But, when I paste it into a text document i lost the (??????) If I from the TextBox, in the run program, select the text '(??????)' and Ctr+C (copy) and den paste it in to a text document I get my (??????) I'm read that I can set MIME type format for that Clipboard.copy. I try some. But... Can any explain this odd (in compare with VB6 in Windows, their this is no problem) behavior. Please! I use ubuntu 7.10 Not: I find a workaround: Clipboard.copy(Conv(TextBox.Text, "utf-8", "Latin1")) But it is not the right way..." *And I get a reply, from formu user timothy*: "This appears to be a bug with Gambas. IMHO. It might be a good idea to report this on Gambas mailing list. You can sign up for this at *https://lists.sourceforge.net/lists/listinfo/gambas-user* and this page also provides a link where you can view the mailing list archives." I'm now do that. Send a report. Regards! N-G Nordlund From gambas at ...1... Sat Apr 26 18:33:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 26 Apr 2008 18:33:06 +0200 Subject: [Gambas-user] clipboard.copy problem In-Reply-To: <481347AD.4020109@...626...> References: <481347AD.4020109@...626...> Message-ID: <200804261833.06470.gambas@...1...> On samedi 26 avril 2008, Nisse Nordlund wrote: > Hi, > > I'm new, in gambas and in Linux ubuntu 7.10. And I'm Swedish > > I post the follow in the forum.stormweb.nu. Topic: Gambas Community > > Gambas > General: > "Subject: *clipboard.copy problem* > Topic: Hi, > > I'm a swedish 'old' man, 3/4 of my life I have progamming in VB6. Very > nice. > > Now I'm new in gamba looks well, but. There is some thing that confuce me. > > In my project I have a TextBox that contains Swedish (??????). > > This line: clipboard.copy(TextBox.text) > goes well (No errors). > But, when I paste it into a text document i lost the (??????) > > If I from the TextBox, in the run program, select the text '(??????)' > and Ctr+C (copy) and den paste it in to a text document I get my (??????) > > I'm read that I can set MIME type format for that Clipboard.copy. I try > some. But... > > Can any explain this odd (in compare with VB6 in Windows, their this is > no problem) behavior. Please! > > I use ubuntu 7.10 > > Not: I find a workaround: Clipboard.copy(Conv(TextBox.Text, "utf-8", > "Latin1")) > But it is not the right way..." > > > *And I get a reply, from formu user timothy*: > "This appears to be a bug with Gambas. IMHO. > > It might be a good idea to report this on Gambas mailing list. You can > sign up for this at > *https://lists.sourceforge.net/lists/listinfo/gambas-user* and this page > also provides a link where you can view the mailing list archives." > > I'm now do that. Send a report. > > Regards! > > N-G Nordlund Can you tell: What is the value of System.Charset in your program ? Where do you paste the copied text ? Regards, -- Benoit Minisini From nisse.ngn at ...626... Sat Apr 26 19:27:54 2008 From: nisse.ngn at ...626... (Nisse Nordlund) Date: Sat, 26 Apr 2008 19:27:54 +0200 Subject: [Gambas-user] ATT: Benoit Minisini: [Fwd: Re: clipboard.copy problem] Message-ID: <4813661A.9080905@...626...> PS Your sen back email was: gambas at ...1... my mailserver respon that this address not exist on mail.sourceforge.net DS Hi, Benoit: For 'System.Charset' Gamba 1.9.49 Console says (?System.Charset): UTF-8 I paste the text to: gedit 2.20.3 And in that program I have language 'Svenska'. But this should not matter because the whole GNOME should be (is) UTF-8. And 'swedish' is supported in the 'frame' of UTF-8. Regards N-G Nordlund Benoit Minisini skrev: > On samedi 26 avril 2008, Nisse Nordlund wrote: > >> Hi, >> >> I'm new, in gambas and in Linux ubuntu 7.10. And I'm Swedish >> >> I post the follow in the forum.stormweb.nu. Topic: Gambas Community > >> Gambas > General: >> "Subject: *clipboard.copy problem* >> Topic: Hi, >> >> I'm a swedish 'old' man, 3/4 of my life I have progamming in VB6. Very >> nice. >> >> Now I'm new in gamba looks well, but. There is some thing that confuce me. >> >> In my project I have a TextBox that contains Swedish (??????). >> >> This line: clipboard.copy(TextBox.text) >> goes well (No errors). >> But, when I paste it into a text document i lost the (??????) >> >> If I from the TextBox, in the run program, select the text '(??????)' >> and Ctr+C (copy) and den paste it in to a text document I get my (??????) >> >> I'm read that I can set MIME type format for that Clipboard.copy. I try >> some. But... >> >> Can any explain this odd (in compare with VB6 in Windows, their this is >> no problem) behavior. Please! >> >> I use ubuntu 7.10 >> >> Not: I find a workaround: Clipboard.copy(Conv(TextBox.Text, "utf-8", >> "Latin1")) >> But it is not the right way..." >> >> >> *And I get a reply, from formu user timothy*: >> "This appears to be a bug with Gambas. IMHO. >> >> It might be a good idea to report this on Gambas mailing list. You can >> sign up for this at >> *https://lists.sourceforge.net/lists/listinfo/gambas-user* and this page >> also provides a link where you can view the mailing list archives." >> >> I'm now do that. Send a report. >> >> Regards! >> >> N-G Nordlund >> > > Can you tell: > > What is the value of System.Charset in your program ? > Where do you paste the copied text ? > > Regards, > > ?mne: Mail delivery failed: returning message to sender Fr?n: Mail Delivery System Datum: Sat, 26 Apr 2008 18:57:55 +0200 Till: alla at ...1892... This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: gambas at ...1... SMTP error from remote mail server after RCPT TO:: host mail.sourceforge.net [66.35.250.206]: 550-Postmaster verification failed while checking 550-Called: 213.115.231.28 550-Sent: RCPT TO: 550-Response: 550 No Such User Here 550-Several RFCs state that you are required to have a postmaster 550-mailbox for each mail domain. This host does not accept mail 550-from domains whose servers reject the postmaster address. 550 Sender verify failed ------ This is a copy of the message, including all the headers. ------ Return-path: Received: from c83-252-63-95.bredband.comhem.se ([83.252.63.95] helo=[192.168.0.101]) by poseidon.oderland.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1JpniU-00032d-5X for gambas at ...1...; Sat, 26 Apr 2008 18:57:38 +0200 Message-ID: <48135F0B.3010605 at ...1892...> Date: Sat, 26 Apr 2008 18:57:47 +0200 From: "alla at ...1892..." Reply-To: nisse at ...1892... User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: Benoit Minisini Subject: Re: [Gambas-user] clipboard.copy problem References: <481347AD.4020109 at ...626...> <200804261833.06470.gambas at ...1...> In-Reply-To: <200804261833.06470.gambas at ...1...> Content-Type: multipart/alternative; boundary="------------050500050707000700080105" This is a multi-part message in MIME format. --------------050500050707000700080105 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Hi, Benoit: For 'System.Charset' Gamba 1.9.49 Console says (?System.Charset): UTF-8 I paste the text to: gedit 2.20.3 And in that program I have language 'Svenska'. But this should not matter because the whole GNOME should be (is) UTF-8. And 'swedish' is supported in the 'frame' of UTF-8. Regards N-G Nordlund Benoit Minisini skrev: > > On samedi 26 avril 2008, Nisse Nordlund wrote: > > > >> >> Hi, >> >> >> >> I'm new, in gambas and in Linux ubuntu 7.10. And I'm Swedish >> >> >> >> I post the follow in the forum.stormweb.nu. Topic: Gambas Community > >> >> Gambas > General: >> >> "Subject: *clipboard.copy problem* >> >> Topic: Hi, >> >> >> >> I'm a swedish 'old' man, 3/4 of my life I have progamming in VB6. Very >> >> nice. >> >> >> >> Now I'm new in gamba looks well, but. There is some thing that confuce me. >> >> >> >> In my project I have a TextBox that contains Swedish (????f?). >> >> >> >> This line: clipboard.copy(TextBox.text) >> >> goes well (No errors). >> >> But, when I paste it into a text document i lost the (????f?) >> >> >> >> If I from the TextBox, in the run program, select the text '(????f?)' >> >> and Ctr+C (copy) and den paste it in to a text document I get my (????f?) >> >> >> >> I'm read that I can set MIME type format for that Clipboard.copy. I try >> >> some. But... >> >> >> >> Can any explain this odd (in compare with VB6 in Windows, their this is >> >> no problem) behavior. Please! >> >> >> >> I use ubuntu 7.10 >> >> >> >> Not: I find a workaround: Clipboard.copy(Conv(TextBox.Text, "utf-8", >> >> "Latin1")) >> >> But it is not the right way..." >> >> >> >> >> >> *And I get a reply, from formu user timothy*: >> >> "This appears to be a bug with Gambas. IMHO. >> >> >> >> It might be a good idea to report this on Gambas mailing list. You can >> >> sign up for this at >> >> *https://lists.sourceforge.net/lists/listinfo/gambas-user* and this page >> >> also provides a link where you can view the mailing list archives." >> >> >> >> I'm now do that. Send a report. >> >> >> >> Regards! >> >> >> >> N-G Nordlund >> >> >> > > > > Can you tell: > > > > What is the value of System.Charset in your program ? > > Where do you paste the copied text ? > > > > Regards, > > > > > --------------050500050707000700080105 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Hi,

Benoit:

For 'System.Charset' Gamba 1.9.49 Console says (?System.Charset): UTF-8
I paste the text to: gedit 2.20.3

And in that program I have language 'Svenska'.

But this should not matter because the whole GNOME should be (is) UTF-8.

And 'swedish' is supported in the 'frame' of UTF-8.


Regards

N-G Nordlund



Benoit Minisini skrev:
On samedi 26 avril 2008, Nisse Nordlund wrote:
  
Hi,

I'm new, in gambas and in Linux ubuntu 7.10. And I'm Swedish

I post the follow in the forum.stormweb.nu. Topic: Gambas Community >
Gambas > General:
"Subject: *clipboard.copy problem*
Topic: Hi,

I'm a swedish 'old' man, 3/4 of my life I have progamming in VB6. Very
nice.

Now I'm new in gamba looks well, but. There is some thing that confuce me.

In my project I have a TextBox that contains Swedish (åäöÅÄÖ).

This line: clipboard.copy(TextBox.text)
goes well (No errors).
But, when I paste it into a text document i lost the (åäöÅÄÖ)

If I from the TextBox, in the run program, select the text '(åäöÅÄÖ)'
and Ctr+C (copy) and den paste it in to a text document I get my (åäöÅÄÖ)

I'm read that I can set MIME type format for that Clipboard.copy. I try
some. But...

Can any explain this odd (in compare with VB6 in Windows, their this is
no problem) behavior. Please!

I use ubuntu 7.10

Not: I find a workaround: Clipboard.copy(Conv(TextBox.Text, "utf-8",
"Latin1"))
        But it is not the right way..."


*And I get a reply, from formu user timothy*:
"This appears to be a bug with Gambas. IMHO.

It might be a good idea to report this on Gambas mailing list. You can
sign up for this at
*https://lists.sourceforge.net/lists/listinfo/gambas-user* and this page
also provides a link where you can view the mailing list archives."

I'm now do that. Send a report.

Regards!

N-G Nordlund
    

Can you tell:

What is the value of System.Charset in your program ?
Where do you paste the copied text ?

Regards,

  
--------------050500050707000700080105-- [15/2]?(5)?(5)???????????????9???i?? > From pinozollo at ...626... Sat Apr 26 19:44:18 2008 From: pinozollo at ...626... (Pino Zollo) Date: Sat, 26 Apr 2008 13:44:18 -0400 Subject: [Gambas-user] Re-arranging elements in IDE In-Reply-To: References: Message-ID: <200804261344.19842.pinozollo@...626...> Alle 12:33, sabato 26 aprile 2008, gambas-user-request at lists.sourceforge.net ha scritto: > there are things that are not perfect too... but it will evoluate ... > for the better ....like the arrows for Undo and Re-do which are both clockwise ;-) Salut Pino From charles.trois at ...1661... Sun Apr 27 12:41:29 2008 From: charles.trois at ...1661... (Charles Trois) Date: Sun, 27 Apr 2008 12:41:29 +0200 Subject: [Gambas-user] Trouble with ImportVBProject Message-ID: <48145859.50903@...1661...> Hello! I am trying to make use of ImportVBProject, a Gambas program that converts (partially) a Visual Basic project into a Gambas project. I run Kubuntu-7.10 on an Intel iMac. Gambas has been installed by downloading the Gambas2-2.5 source with all the libraries and compiling as per the rules. When I run the program, there is a dialog window with text fields, in which I give the reference of the VB project and the name of the Gambas project to create, and an OK button. What happens is that, when I press this, I get an error message: [43] Access forbidden. FImportProject.?.0 I don't understand this, as I am the only user and have writing rights on all relevant directories and files. Just to be sure, I have changed all permissions to rwxrwxrwx, but this had no effect. It might be worth mentioning that the Import? program opens with a warning that it is a Gambas1 project, and that I use it in Gambas2. Any ideas, anyone? Thanks. Charles From gambas.fr at ...626... Sun Apr 27 12:48:57 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 27 Apr 2008 12:48:57 +0200 Subject: [Gambas-user] Re-arranging elements in IDE In-Reply-To: <200804261344.19842.pinozollo@...626...> References: <200804261344.19842.pinozollo@...626...> Message-ID: <6324a42a0804270348s2a7bad69qdf8e8862777b63ff@...627...> 2008/4/26 Pino Zollo : > Alle 12:33, sabato 26 aprile 2008, gambas-user-request at lists.sourceforge.net > ha scritto: > > > there are things that are not perfect too... but it will evoluate ... > > for the better > > ....like the arrows for Undo and Re-do which are both clockwise ;-) > lol i think there is more important things ... no ? > Salut > Pino > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nisse.ngn at ...626... Sun Apr 27 21:23:34 2008 From: nisse.ngn at ...626... (Nisse Nordlund) Date: Sun, 27 Apr 2008 21:23:34 +0200 Subject: [Gambas-user] User Defined DataTypes and User Defined Enum? Message-ID: <4814D2B6.4000707@...626...> Hi, In VB You can define datatypes 'User Defined Type" and 'User Defined Enum' Type: Syntax in VB (in vb modul), sample: *Private Type *ngnOwnTyp BytVal As Byte StrVal As String IntVal As Integer LngVal As Long SngVal As Single DblVal As Double *End Type* Enum: Syntax i VB (in vb modul), sample: *Private Enum* NGN_DATA_FORMAT m_BYTE = 1 m_STRING = 2 m_SHORT = 3 m_LONG = 4 m_RATIONAL = 5 m_SBYTE = 6 m_UNDEFINED = 7 m_SSHORT = 8 m_SLONG = 9 m_SRATIONAL = 10 m_SINGLE = 11 m_DOUBLE = 12 *End Enum* Is there any solution for this in gambas? Another procedure? A How to? The documentation in this lack. Regards N-G Nordlund From gambas at ...1... Sun Apr 27 21:28:24 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 27 Apr 2008 21:28:24 +0200 Subject: [Gambas-user] ATT: Benoit Minisini: [Fwd: Re: clipboard.copy problem] In-Reply-To: <4813661A.9080905@...626...> References: <4813661A.9080905@...626...> Message-ID: <200804272128.24494.gambas@...1...> On samedi 26 avril 2008, Nisse Nordlund wrote: > PS > Your sen back email was: gambas at ...1... my mailserver > respon that this address not exist on mail.sourceforge.net > DS > > Hi, > > Benoit: > > For 'System.Charset' Gamba 1.9.49 Console says (?System.Charset): UTF-8 > I paste the text to: gedit 2.20.3 > > And in that program I have language 'Svenska'. > > But this should not matter because the whole GNOME should be (is) UTF-8. > > And 'swedish' is supported in the 'frame' of UTF-8. > > > Regards > > N-G Nordlund > Hi, I have correctly received the e-mail you sent to my address. I confirm this is a bug in Clipboard.Copy(). I fixed it in the revision #1342. I forgot to tell Qt that the string coming from Gambas is in UTF-8, so it assumed by default a Latin-1 string. So your fix was a correct workaround. Regards, -- Benoit Minisini From nisse.ngn at ...626... Sun Apr 27 22:29:47 2008 From: nisse.ngn at ...626... (Nisse Nordlund) Date: Sun, 27 Apr 2008 22:29:47 +0200 Subject: [Gambas-user] EXIF-data Message-ID: <4814E23B.3000501@...626...> Hi, it's me, again :) My next question is if there is a way, in gambas, to get EXIF-data from a jpg/JPEG digital image taken by digital camera. If not, is there another way? Still using gambas, I ment. The Gambas component: gb.qt.Image.Data What can that give me? Some sample code? Any? Regards N-G Nordlund From gambas at ...1... Sun Apr 27 22:33:25 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 27 Apr 2008 22:33:25 +0200 Subject: [Gambas-user] EXIF-data In-Reply-To: <4814E23B.3000501@...626...> References: <4814E23B.3000501@...626...> Message-ID: <200804272233.25976.gambas@...1...> On dimanche 27 avril 2008, Nisse Nordlund wrote: > Hi, > > it's me, again :) > > My next question is if there is a way, in gambas, to get EXIF-data from > a jpg/JPEG digital image taken by digital camera. > > If not, is there another way? Still using gambas, I ment. > > The Gambas component: gb.qt.Image.Data > > What can that give me? > > Some sample code? > > Any? > > Regards > > N-G Nordlund > You don't need a component. Just use the "EXIF tools": http://www.sno.phy.queensu.ca/~phil/exiftool/ Regards, -- Benoit Minisini From ronstk at ...239... Sun Apr 27 23:30:46 2008 From: ronstk at ...239... (Ron Onstenk) Date: Sun, 27 Apr 2008 23:30:46 +0200 Subject: [Gambas-user] Re-arranging elements in IDE In-Reply-To: <6324a42a0804270348s2a7bad69qdf8e8862777b63ff@...627...> References: <200804261344.19842.pinozollo@...626...> <6324a42a0804270348s2a7bad69qdf8e8862777b63ff@...627...> Message-ID: <200804272330.47750.ronstk@...239...> On Sunday 27 April 2008 12:48, Fabien Bodard wrote: > 2008/4/26 Pino Zollo : > > Alle 12:33, sabato 26 aprile 2008, gambas-user-request at lists.sourceforge.net ha scritto: > > > > > On vendredi 26 avril 2008, Fabien Bodard wrote: > > > > > > there are things that are not perfect too... but it will evoluate ... > > > for the better > > > > ....like the arrows for Undo and Re-do which are both clockwise ;-) > > > lol i think there is more important things ... no ? > > > Salut > > Pino > > NoLOL Exchange/correct the icons when they are wrong and edit is in progress on the IDE belongs to that _evoluate_ :) From ronstk at ...239... Sun Apr 27 23:54:09 2008 From: ronstk at ...239... (Ron Onstenk) Date: Sun, 27 Apr 2008 23:54:09 +0200 Subject: [Gambas-user] User Defined DataTypes and User Defined Enum? In-Reply-To: <4814D2B6.4000707@...626...> References: <4814D2B6.4000707@...626...> Message-ID: <200804272354.11091.ronstk@...239...> On Sunday 27 April 2008 21:23, Nisse Nordlund wrote: > Hi, > > In VB You can define datatypes 'User Defined Type" and 'User Defined Enum' > > Type: > Syntax in VB (in vb modul), sample: > *Private Type *ngnOwnTyp > BytVal As Byte > StrVal As String > IntVal As Integer > LngVal As Long > SngVal As Single > DblVal As Double > *End Type* > > Enum: > Syntax i VB (in vb modul), sample: > *Private Enum* NGN_DATA_FORMAT > m_BYTE = 1 > m_STRING = 2 > m_SHORT = 3 > m_LONG = 4 > m_RATIONAL = 5 > m_SBYTE = 6 > m_UNDEFINED = 7 > m_SSHORT = 8 > m_SLONG = 9 > m_SRATIONAL = 10 > m_SINGLE = 11 > m_DOUBLE = 12 > *End Enum* > > Is there any solution for this in gambas? > > Another procedure? > > A How to? > > The documentation in this lack. > > Regards > > N-G Nordlund The best one I know is making a class which replace the 'Type' definition. For every variable use you need the full line syntax as PUBLIC YourVarName As WishType and ommit the Private Type' and 'End Type' classfile: ngnOwnTyp.class ---------------------------------- ' *Private Type *ngnOwnTyp PUBLIC BytVal As Byte PUBLIC StrVal As String PUBLIC IntVal As Integer PUBLIC LngVal As Long PUBLIC SngVal As Single PUBLIC DblVal As Double ' *End Type* ---------------------------------- Where you need the User def. variable you can do DIM MyVarType as ngnOwnTyp and MyVarType = New ngnOwnTyp -=-=-=-=- Same can be done with the Enum and for each constant classfile: NGN_DATA_FORMAT.class ---------------------------------- ' *Private Enum* NGN_DATA_FORMAT public m_BYTE As Integer = 1 public m_STRING As Integer = 2 public m_SHORT As Integer = 3 ... ' *End Enum* ---------------------------------- usage as: dim myselection as integer myselection = NGN_DATA_FORMAT.m_SHORT Pro is you can use this enum file in more projects without cut and past from your other code. I did use the enum with a symlink to the file outside the project in the past. (gambas0.xx till 1.9.39) The 'Type' as class is more or less logic while a variable of that type is also a class on his own in VB but internal in the *.cls or *.mod file. Ron From pinozollo at ...626... Mon Apr 28 00:24:23 2008 From: pinozollo at ...626... (Pino Zollo) Date: Sun, 27 Apr 2008 18:24:23 -0400 Subject: [Gambas-user] Re-arranging elements in IDE In-Reply-To: <6324a42a0804270348s2a7bad69qdf8e8862777b63ff@...627...> References: <200804261344.19842.pinozollo@...626...> <6324a42a0804270348s2a7bad69qdf8e8862777b63ff@...627...> Message-ID: <200804271824.25898.pinozollo@...626...> Alle 06:48, domenica 27 aprile 2008, hai scritto: > 2008/4/26 Pino Zollo : > > Alle 12:33, sabato 26 aprile 2008, > > gambas-user-request at lists.sourceforge.net > > > > ha scritto: > > > there are things that are not perfect too... but it will evoluate ... > > > > > > for the better > > > > ....like the arrows for Undo and Re-do which are both clockwise ;-) > > lol i think there is more important things ... no ? > I agree...just to put in the list. It was confusing me in the first day of use of GAMBAS 2 From leemcpherson at ...626... Mon Apr 28 00:34:27 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Sun, 27 Apr 2008 18:34:27 -0400 Subject: [Gambas-user] Embedding Firefox... some problems In-Reply-To: <200804272354.11091.ronstk@...239...> References: <4814D2B6.4000707@...626...> <200804272354.11091.ronstk@...239...> Message-ID: <4814FF73.6060400@...626...> I'm testing the embedder with firefox and I'm finding some weird problems. The main one is that I can't place a cursor into a textbox within firefox after it has been embedded. It will show up fine and I can click on the links, but I can't place a cursor to type. Second... (and this is not really a gambas issue)... can anyone recommend a good way to capture firefox's window? I'm using someone else's class file that will find the key of a new window based on the name in the title, but there's a small problem with it. Firefox puts the name of the page you're on in the title. If a user were to change the homepage, then the window would no longer embed itself, because I'm assuming that title is static in the gambas code. Any ideas? (aside from disabling changing the homepage) Thanks! Lee From sourceforge-raindog2 at ...94... Mon Apr 28 04:52:27 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 27 Apr 2008 22:52:27 -0400 Subject: [Gambas-user] Embedding Firefox... some problems In-Reply-To: <4814FF73.6060400@...626...> References: <4814D2B6.4000707@...626...> <200804272354.11091.ronstk@...239...> <4814FF73.6060400@...626...> Message-ID: <200804272252.28154.sourceforge-raindog2@...94...> On Sunday 27 April 2008 18:34, Lee McPherson wrote: > The main one is that I can't place a cursor into a textbox within > firefox after it has been embedded. It will show up fine and I can > click on the links, but I can't place a cursor to type. Firefox runs in its own process, and merely displaying its window inside a Gambas app using the embedder doesn't give you access to its object model, event loop or any of that stuff. If you have control over the web page that's being displayed, you can use Javascript to place the cursor. Alternatively, you could install the Greasemonkey extension and write a user script to do whatever you want with the focus. You may be able to use the Mozilla remote control mechanism (mozilla-firefox -remote 'openURL(javascript:...)') to run some Javascript against the currently loaded page a la bookmarklets, but I've never tried that with a javascript: URL. Otherwise, I guess you could try Desktop.SendKeys if you're using a recent enough Gambas version. Rob From charles.trois at ...1661... Mon Apr 28 09:50:34 2008 From: charles.trois at ...1661... (Charles Trois) Date: Mon, 28 Apr 2008 09:50:34 +0200 Subject: [Gambas-user] Trouble with ImportVBProject Message-ID: <481581CA.2010801@...1661...> Hello! I am trying to make use of ImportVBProject, a Gambas program that converts (partially) a Visual Basic project into a Gambas project. I run Kubuntu-7.10 on an Intel iMac. Gambas has been installed by downloading the Gambas2-2.5 source with all the libraries and compiling as per the rules. When I run the program, there is a dialog window with text fields, in which I give the reference of the VB project and the name of the Gambas project to create, and an OK button. What happens is that, when I press this, I get an error message: [43] Access forbidden. FImportProject.?.0 I don't understand this, as I am the only user and have writing rights on all relevant directories and files. Just to be sure, I have changed all permissions to rwxrwxrwx, but this had no effect. It might be worth mentioning that the Import? program opens with a warning that it is a Gambas1 project, and that I use it in Gambas2. Any ideas, anyone? Thanks. Charles From robertsonhamish at ...626... Mon Apr 28 10:32:55 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Mon, 28 Apr 2008 15:32:55 +0700 Subject: [Gambas-user] Trouble with ImportVBProject In-Reply-To: <481581CA.2010801@...1661...> References: <481581CA.2010801@...1661...> Message-ID: Have you tried installing gambas from the repos on the gambas page? 2008/4/28 Charles Trois : > Hello! > > I am trying to make use of ImportVBProject, a Gambas program that > converts (partially) a Visual Basic project into a Gambas project. > I run Kubuntu-7.10 on an Intel iMac. Gambas has been installed by > downloading the Gambas2-2.5 source with all the libraries and compiling > as per the rules. > > When I run the program, there is a dialog window with text fields, in > which I give the reference of the VB project and the name of the Gambas > project to create, and an OK button. > > What happens is that, when I press this, I get an error message: > > [43] Access forbidden. FImportProject.?.0 > > I don't understand this, as I am the only user and have writing rights > on all relevant directories and files. Just to be sure, I have changed > all permissions to rwxrwxrwx, but this had no effect. > > It might be worth mentioning that the Import? program opens with a > warning that it is a Gambas1 project, and that I use it in Gambas2. > > Any ideas, anyone? > > Thanks. > > Charles > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wig at ...1809... Mon Apr 28 12:55:11 2008 From: wig at ...1809... (wig) Date: Mon, 28 Apr 2008 12:55:11 +0200 (CEST) Subject: [Gambas-user] gambas in codesearch? Message-ID: <10827.87.66.66.18.1209380111.squirrel@...1810...> I was looking for code via google code search, but there's no mention yet of Gambas in the language dropdown at http://www.google.com/codesearch/advanced_code_search?hl=en I wanted to look up something in the source code of the IDE, hoped that it would be there. (I know I can download the code and search local, but din't want to on this pc) Maybe it also helps promote Gambas ... wim From gambas at ...1... Mon Apr 28 13:06:01 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 28 Apr 2008 13:06:01 +0200 Subject: [Gambas-user] gambas in codesearch? In-Reply-To: <10827.87.66.66.18.1209380111.squirrel@...1810...> References: <10827.87.66.66.18.1209380111.squirrel@...1810...> Message-ID: <200804281306.01920.gambas@...1...> On lundi 28 avril 2008, wig wrote: > I was looking for code via google code search, but there's no mention yet > of Gambas in the language dropdown at > > http://www.google.com/codesearch/advanced_code_search?hl=en > > I wanted to look up something in the source code of the IDE, hoped that it > would be there. > > (I know I can download the code and search local, but din't want to on > this pc) > > Maybe it also helps promote Gambas ... > > wim > How can Gambas be put in code search? -- Benoit Minisini From ron at ...1740... Mon Apr 28 13:47:43 2008 From: ron at ...1740... (Ron) Date: Mon, 28 Apr 2008 13:47:43 +0200 Subject: [Gambas-user] gambas in codesearch? In-Reply-To: <200804281306.01920.gambas@...1...> References: <10827.87.66.66.18.1209380111.squirrel@...1810...> <200804281306.01920.gambas@...1...> Message-ID: <4815B95F.6090900@...1740...> Benoit Minisini schreef: > On lundi 28 avril 2008, wig wrote: > >> I was looking for code via google code search, but there's no mention yet >> of Gambas in the language dropdown at >> >> http://www.google.com/codesearch/advanced_code_search?hl=en >> >> I wanted to look up something in the source code of the IDE, hoped that it >> would be there. >> >> (I know I can download the code and search local, but din't want to on >> this pc) >> >> Maybe it also helps promote Gambas ... >> >> wim >> >> > > How can Gambas be put in code search? > > See http://www.google.com/codesearch/addcode?hl=en Regards, Ron. From gambas at ...1... Mon Apr 28 13:56:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 28 Apr 2008 13:56:16 +0200 Subject: [Gambas-user] gambas in codesearch? In-Reply-To: <4815B95F.6090900@...1740...> References: <10827.87.66.66.18.1209380111.squirrel@...1810...> <200804281306.01920.gambas@...1...> <4815B95F.6090900@...1740...> Message-ID: <200804281356.16386.gambas@...1...> On lundi 28 avril 2008, Ron wrote: > Benoit Minisini schreef: > > On lundi 28 avril 2008, wig wrote: > >> I was looking for code via google code search, but there's no mention > >> yet of Gambas in the language dropdown at > >> > >> http://www.google.com/codesearch/advanced_code_search?hl=en > >> > >> I wanted to look up something in the source code of the IDE, hoped that > >> it would be there. > >> > >> (I know I can download the code and search local, but din't want to on > >> this pc) > >> > >> Maybe it also helps promote Gambas ... > >> > >> wim > > > > How can Gambas be put in code search? > > See http://www.google.com/codesearch/addcode?hl=en > > Regards, > Ron. > Thanks! -- Benoit Minisini From zerkowski at ...395... Mon Apr 28 16:17:36 2008 From: zerkowski at ...395... (zerkowski sur bouquiniste.biz) Date: Mon, 28 Apr 2008 16:17:36 +0200 Subject: [Gambas-user] gambas in codesearch? In-Reply-To: <200804281356.16386.gambas@...1...> References: <10827.87.66.66.18.1209380111.squirrel@...1810...> <200804281306.01920.gambas@...1...> <4815B95F.6090900@...1740...> <200804281356.16386.gambas@...1...> Message-ID: <4815DC80.8000004@...395...> From zerkowski at ...395... Mon Apr 28 16:23:13 2008 From: zerkowski at ...395... (zerkowski sur bouquiniste.biz) Date: Mon, 28 Apr 2008 16:23:13 +0200 Subject: [Gambas-user] gambas in codesearch? In-Reply-To: <4815DC80.8000004@...395...> References: <10827.87.66.66.18.1209380111.squirrel@...1810...> <200804281306.01920.gambas@...1...> <4815B95F.6090900@...1740...> <200804281356.16386.gambas@...1...> <4815DC80.8000004@...395...> Message-ID: <4815DDD1.3080200@...395...> Hello, it could be cool to add links to google code search in the wiki site like, by example the pygame web site where there are buttons -> "search internet source code for example of ..." http://www.pygame.org/docs/ref/mouse.html#pygame.mouse A+ zerkowski sur bouquiniste.biz a ?crit : > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From sourceforge-raindog2 at ...94... Mon Apr 28 16:01:26 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 28 Apr 2008 10:01:26 -0400 Subject: [Gambas-user] Trouble with ImportVBProject In-Reply-To: <481581CA.2010801@...1661...> References: <481581CA.2010801@...1661...> Message-ID: <200804281001.26089.sourceforge-raindog2@...94...> On Monday 28 April 2008 03:50, Charles Trois wrote: > It might be worth mentioning that the Import? program opens with a > warning that it is a Gambas1 project, and that I use it in Gambas2. I wrote the ImportVBProject program, or at least one by the same name, and I'm surprised it even compiles under Gambas2. I'd update it myself, but I haven't had any VB projects to port to Gambas for a couple years now, and the clients who needed me to do that ended up abandoning their Linux desktop plans for the time being. (Too many industry-specific and government-required programs are still Windows-only, it seems.) Rob From pinozollo at ...626... Tue Apr 29 01:03:30 2008 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 28 Apr 2008 19:03:30 -0400 Subject: [Gambas-user] ComboBox does not rise event Message-ID: <200804281903.32195.pinozollo@...626...> Hi, I have just discovered that the ComboBox does not rise the event Change if ReadOnly is set to TRUE. In my application I need this event because the change can be done by the user or by the program itself, and I do not want that the list of values be changed by the user. Saludos Pino From gambas at ...1... Tue Apr 29 02:27:21 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 29 Apr 2008 02:27:21 +0200 Subject: [Gambas-user] ComboBox does not rise event In-Reply-To: <200804281903.32195.pinozollo@...626...> References: <200804281903.32195.pinozollo@...626...> Message-ID: <200804290227.21510.gambas@...1...> On mardi 29 avril 2008, Pino Zollo wrote: > Hi, > > I have just discovered that the ComboBox does not rise the event Change if > ReadOnly is set to TRUE. > > In my application I need this event because the change can be done by the > user or by the program itself, and I do not want that the list of values be > changed by the user. > > Saludos > > Pino > Change is a TextBox event, and when a ComboBox is read-only, it loses its internal TextBox. Use the Click event instead. Regards, -- Benoit Minisini From jaap_cramer at ...67... Tue Apr 29 11:14:39 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Tue, 29 Apr 2008 11:14:39 +0200 Subject: [Gambas-user] context menu Message-ID: Hello I use Ubuntu 8.04 with compiz, and gambas 2.5. When I use a context menu of a non-gambas application, it appears with no effect. When I use a gambas context menu I appears with effect, if it is a application or window. Is it possible to give Gambas-context-menus a property so it is treated like a menu instead of a window? Jaap _________________________________________________________________ Check je Hotmail nu ook op je mobiel! http://windowslivemobile.msn.com/BrowserServiceHotmail.aspx?lang=nl-nl From nisse.ngn at ...626... Tue Apr 29 11:26:08 2008 From: nisse.ngn at ...626... (Nisse Nordlund) Date: Tue, 29 Apr 2008 11:26:08 +0200 Subject: [Gambas-user] How To get EXIFtoll in a gambas2 object or array? Message-ID: <4816E9B0.2050805@...626...> Hi, me again :) still a newbee, in gambas2. I have now write code so i can get EXIF info from my JPG-files (sample): SHELL "exiftool -b -ImageDescription [/filepath/file.JPG]" TO textvariable (The parameter '-b' means that I only get binary data. Just the EXIF value.) This is repeated 10 times. One for each EXIF value, I want. Which is: ImageDescription DateTimeOriginal Flash FocalLength FocalLengthIn35mmFormat ISO ExposureTime FNumber Make Model I suspect that this can be rapid up. I know I can use this EXIFtool command, with SHELL: 'SHELL "exiftool -b -ImageDescription -DateTimeOriginal -Flash -FocalLength -FocalLengthIn35mmFormat -ISO -ExposureTime -FNumber -Make -Model [/filepath/file.JPG]" TO textvariable' This result in one text line (sample): 'SONY DSC 2008:04:23 11:36:22241802701000.0031256.3SONY DSLR-A100' Of course I want this split up, in an array or in an defined object Is there any command I miss in EXIFtool? (I hawe search around a lot on internet...) How do I solve this in gambas2? Regards N-G Nordlund From gambas at ...1... Tue Apr 29 13:34:09 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 29 Apr 2008 13:34:09 +0200 Subject: [Gambas-user] context menu In-Reply-To: References: Message-ID: <200804291334.09736.gambas@...1...> On mardi 29 avril 2008, Jaap Cramer wrote: > Hello > > I use Ubuntu 8.04 with compiz, and gambas 2.5. When I use a context menu of > a non-gambas application, it appears with no effect. When I use a gambas > context menu I appears with effect, if it is a application or window. Is it > possible to give Gambas-context-menus a property so it is treated like a > menu instead of a window? > > Jaap > Which GUI component do you use? -- Benoit Minisini From jaap_cramer at ...67... Tue Apr 29 13:37:41 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Tue, 29 Apr 2008 13:37:41 +0200 Subject: [Gambas-user] context menu In-Reply-To: <200804291334.09736.gambas@...1...> References: <200804291334.09736.gambas@...1...> Message-ID: The QT I found out what caused it, it is no Gambas bug, but a KDE-setting. All KDE/QT applications behave that way. Because I use gnome I cannot find the KDE setting yet. But I don't have to trouble you with my problem anymore :) Jaap > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Tue, 29 Apr 2008 13:34:09 +0200 > Subject: Re: [Gambas-user] context menu > > On mardi 29 avril 2008, Jaap Cramer wrote: > > Hello > > > > I use Ubuntu 8.04 with compiz, and gambas 2.5. When I use a context menu of > > a non-gambas application, it appears with no effect. When I use a gambas > > context menu I appears with effect, if it is a application or window. Is it > > possible to give Gambas-context-menus a property so it is treated like a > > menu instead of a window? > > > > Jaap > > > > Which GUI component do you use? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Jouw nieuws en entertainment, vind je op MSN.nl! http://nl.msn.com/ From pinozollo at ...626... Tue Apr 29 14:39:42 2008 From: pinozollo at ...626... (Pino Zollo) Date: Tue, 29 Apr 2008 08:39:42 -0400 Subject: [Gambas-user] =?iso-8859-1?q?Men=F9_without_submenu?= Message-ID: <200804290839.45669.pinozollo@...626...> Hi, How can I have a Menu in the top bar without Submenues ? I just want to click on the menu title to execute someting, without having to choose into a submenu. I have defined &CC and the SUB mnuCC_Click(), but this does not work. Thanks. Pino From gambas at ...1... Tue Apr 29 14:46:25 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 29 Apr 2008 14:46:25 +0200 Subject: [Gambas-user] =?iso-8859-1?q?Men=F9_without_submenu?= In-Reply-To: <200804290839.45669.pinozollo@...626...> References: <200804290839.45669.pinozollo@...626...> Message-ID: <200804291446.25425.gambas@...1...> On mardi 29 avril 2008, Pino Zollo wrote: > Hi, > How can I have a Menu in the top bar without Submenues ? > I just want to click on the menu title to execute someting, without having > to choose into a submenu. > > I have defined &CC and the SUB mnuCC_Click(), but this does not work. > > Thanks. > > Pino > This is not possible. You are not using VB! :-) -- Benoit Minisini From pinozollo at ...626... Tue Apr 29 15:10:07 2008 From: pinozollo at ...626... (Pino Zollo) Date: Tue, 29 Apr 2008 09:10:07 -0400 Subject: [Gambas-user] How to abort a large loop ? Message-ID: <200804290910.13554.pinozollo@...626...> Hi, In my form I have the button 'GO' which starts a long work made in a loop FOR-NEXT. There is also a button 'ABORT' just in case the user wants to stop the long work. The code is more or less like this: abort_flag = FALSE PUBLIC SUB Go_Click() FOR ....... .....big computation WAIT IF abort_flag THEN BREAK NEXT END PUBLIC SUB Abort_Click() abort_flag=TRUE END But unfortunately it does not work as the button 'ABORT' is frozen until the loop FOR-NEXT ends. The WAIT does not help. Please Help ! Pino From linuxos at ...1896... Tue Apr 29 16:12:29 2008 From: linuxos at ...1896... (Olivier Cruilles) Date: Tue, 29 Apr 2008 16:12:29 +0200 Subject: [Gambas-user] How to abort a large loop ? In-Reply-To: <200804290910.13554.pinozollo@...626...> References: <200804290910.13554.pinozollo@...626...> Message-ID: <794259C9-5B12-43E6-9B9F-F9E77D9B7E59@...1896...> Hello, I think it's because your WAIT is too short. Try with : wait 0,1 or wait 0,5 Olivier Cruilles Mail: linuxos at ...1896... Le 29 avr. 08 ? 15:10, Pino Zollo a ?crit : > Hi, > In my form I have the button 'GO' which starts a long work made in a > loop > FOR-NEXT. > > There is also a button 'ABORT' just in case the user wants to stop > the long > work. > > The code is more or less like this: > > abort_flag = FALSE > PUBLIC SUB Go_Click() > FOR ....... > > .....big computation > > WAIT > IF abort_flag THEN BREAK > NEXT > END > > PUBLIC SUB Abort_Click() > abort_flag=TRUE > END > > But unfortunately it does not work as the button 'ABORT' is frozen > until the > loop FOR-NEXT ends. The WAIT does not help. > Please Help ! > > Pino > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save > $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From pinozollo at ...626... Tue Apr 29 17:21:02 2008 From: pinozollo at ...626... (Pino Zollo) Date: Tue, 29 Apr 2008 11:21:02 -0400 Subject: [Gambas-user] How to abort a large loop ? In-Reply-To: <794259C9-5B12-43E6-9B9F-F9E77D9B7E59@...1896...> References: <200804290910.13554.pinozollo@...626...> <794259C9-5B12-43E6-9B9F-F9E77D9B7E59@...1896...> Message-ID: <200804291121.06528.pinozollo@...626...> Alle 10:12, marted? 29 aprile 2008, hai scritto: > I think it's because your WAIT is too short. > > > Try with : ? wait 0,1 ? ? or wait 0,5 Merci Olivier, It works with 0.1 Pino From Karl.Reinl at ...9... Tue Apr 29 19:13:10 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 29 Apr 2008 19:13:10 +0200 Subject: [Gambas-user] How to abort a large loop ? In-Reply-To: <200804291121.06528.pinozollo@...626...> References: <200804290910.13554.pinozollo@...626...> <794259C9-5B12-43E6-9B9F-F9E77D9B7E59@...1896...> <200804291121.06528.pinozollo@...626...> Message-ID: <1209489191.5475.2.camel@...40...> Am Dienstag, den 29.04.2008, 11:21 -0400 schrieb Pino Zollo: > Alle 10:12, marted? 29 aprile 2008, hai scritto: > > I think it's because your WAIT is too short. > > > > > > Try with : wait 0,1 or wait 0,5 > > Merci Olivier, > > It works with 0.1 > > Pino Salut, no that was not 'WAIT is too short' . Please ref. to the help http://gambasdoc.org/help/lang/wait ' Waits a little, letting the user interacts with the GUI WAIT 0.1 ' Waits, but the user can just watch what happens... WAIT -- Amicalment Charlie From m0e.lnx at ...626... Wed Apr 30 19:07:41 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 30 Apr 2008 12:07:41 -0500 Subject: [Gambas-user] Scrolling text ... how to do in gambas In-Reply-To: <4811884C.6020307@...1000...> References: <1f1e8c1b0804110450q57b220a3l986348eee2650685@...627...> <200804111631.20700.rospolosco@...152...> <1f1e8c1b0804241319k595a71bck2709b62a8057003d@...627...> <4811884C.6020307@...1000...> Message-ID: <1f1e8c1b0804301007h374306a5pae4ab8174ea89666@...627...> On Fri, Apr 25, 2008 at 2:29 AM, Werner wrote: > M0E Lnx wrote: > > I'm not sure this does what I need though... > > In this code you sent, there is a scrollview, and a text label. > > The timer shifts the scrollview's Y property to do the animation, but > > still doesn't work for me, because that would be the same as simply > > using a text label, and moving it's Y property. > > > > That I can do with a timer like in your example... but how to > > determine how tall or wide the text label has to be in order for the > > text not to get cut off the label? > > > > > If I understand the question correctly, you want to know how many pixels > wide and high a given text using a particular font on the screen will be. > > The gb.qt Font class has the answer to that. > > Example: if the name of your TextLabel is txl then > > PRINT "The text is " & txl.Font.Width(txl.Text) & " pixel wide and " & > txl.Font.Height(txl.Text) & " pixel high." > > prints the width and the height when using the TextLabel's font. > > One word of caution: Some fonts designers were a little sloppy in > describing their fonts accurately, especially as far as height is concerned. > > Hope I haven't answered a different question :-) > > Regards, > > Werner > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > This is exactly what I needed... thank you From robane00 at ...67... Wed Apr 30 23:08:08 2008 From: robane00 at ...67... (Robin Thompson) Date: Wed, 30 Apr 2008 21:08:08 +0000 Subject: [Gambas-user] class enumeration help Message-ID: Hi, As part of a project I would like to enumerate symbols of user defined class. code: tst1.class ' Gambas class file PUBLIC aan AS Integer PUBLIC ban AS String PUBLIC can AS Float PUBLIC SUB Main() DIM test1 AS NEW tst1 DIM st AS String test1.aan = 1 test1.ban = "hello" test1.can = 1.1 PRINT #File.out, "aan: " & test1.aan PRINT #File.out, "ban: " & test1.ban PRINT #File.out, "can: " & test1.can WITH Object.Class(test1) FOR EACH st IN .Symbols PRINT #File.out, st & ": " & Object.Class(test1)[st].Value NEXT END WITH END Obviously (hopefully!) the output i would expect is: aan: 1 ban: hello can: 1.1 aan: 1 ban: hello can: 1.1 However i am in fact getting this: aan: 1 ban: hello can: 1.1 aan: ban: can: Where am I going wrong? Thanks for your help, RT _________________________________________________________________ Play the Andrex Hello Softie Game & win great prizes http://www.thehellosoftiegame.co.uk