From john36 at ...1947... Fri Aug 1 09:48:17 2008 From: john36 at ...1947... (John K) Date: Fri, 01 Aug 2008 17:48:17 +1000 Subject: [Gambas-user] Populating a Combobox from a DB Message-ID: <4892BFC1.4090208@...1947...> I have a combobox which is populated on the fly from a sqlite DB when the form opens. Does anyone have any ideas how I can repopulate this box when more items are added to the DB from the same form, without closing the form and re-opening it? Put briefly I have:- Public sub form_open() Populate the combobox from DB End Public sub Button_click() Add items to the DB End It seems to me that I need to somehow refresh the page but I've tried ME.refresh and Form.refresh without any luck. Perhaps I'm putting them in the wrong place. Thanks............... John From ron at ...1740... Fri Aug 1 11:26:50 2008 From: ron at ...1740... (Ron) Date: Fri, 01 Aug 2008 11:26:50 +0200 Subject: [Gambas-user] Populating a Combobox from a DB In-Reply-To: <4892BFC1.4090208@...1947...> References: <4892BFC1.4090208@...1947...> Message-ID: <4892D6DA.5050601@...1740...> > I have a combobox which is populated on the fly from a sqlite DB when > the form opens. > Does anyone have any ideas how I can repopulate this box when more items > are added to the DB from the same form, without closing the form and > re-opening it? Put briefly I have:- > > Public sub form_open() > Populate the combobox from DB > End > > Public sub Button_click() > Add items to the DB > End > > It seems to me that I need to somehow refresh the page but I've tried > ME.refresh and Form.refresh without any luck. Perhaps I'm putting them > in the wrong place. > > Thanks............... > John > > ------------------------------------------------------------------------- > Something like this perhaps: Private sub populate_combo() ' routine to load values end Public sub form_open() populate_combo() End Public sub Button_click() Add items to the DB populate_combo() End Regards, Ron_2nd From charles at ...1784... Fri Aug 1 11:28:30 2008 From: charles at ...1784... (charlesg) Date: Fri, 1 Aug 2008 02:28:30 -0700 (PDT) Subject: [Gambas-user] Populating a Combobox from a DB In-Reply-To: <4892BFC1.4090208@...1947...> References: <4892BFC1.4090208@...1947...> Message-ID: <18770999.post@...1379...> Hi, should be as simple as: cmbName.Add("fred") at the same time you add to the database -- View this message in context: http://www.nabble.com/Populating-a-Combobox-from-a-DB-tp18770377p18770999.html Sent from the gambas-user mailing list archive at Nabble.com. From john36 at ...1947... Fri Aug 1 16:46:12 2008 From: john36 at ...1947... (John K) Date: Sat, 02 Aug 2008 00:46:12 +1000 Subject: [Gambas-user] - Populating a Combobox from a DB Message-ID: <489321B4.3020805@...1947...> Re my earlier e-mail I've solved the problem by repopulating the combobox at the end of the Button_Click() subroutine. However I have another question. If I create a combobox with: DIM hComboBox AS ComboBox hComboBox = NEW ComboBox ( Frame1 ) it doesn't accept any events ie hComboBox_Change() but if I create a comboBox by using the toolbox it will. Why is this or am I doing something stupid (again!) and missing something simple? Thanks............... John From Gambas at ...1950... Fri Aug 1 17:53:38 2008 From: Gambas at ...1950... (Caveat) Date: Fri, 01 Aug 2008 17:53:38 +0200 Subject: [Gambas-user] - Populating a Combobox from a DB In-Reply-To: <489321B4.3020805@...1947...> References: <489321B4.3020805@...1947...> Message-ID: <1217606018.26854.3.camel@...1951...> ?I believe you need to use Object.Attach() If you create the control via the GUI, it's automatically attached to the Form, but when you create the control yourself, you need to tell the Form that you want to capture events from the object. Example: PUBLIC SUB Form_Open() DIM hComboBox AS ComboBox hComboBox = NEW ComboBox(ME) hComboBox.Add("Selection 1") hComboBox.Add("Selection 2") Object.Attach(hComboBox, ME, "hCombo") END PUBLIC SUB hCombo_Click() Message("You clicked, milord?") END On Sat, 2008-08-02 at 00:46 +1000, John K wrote: > Re my earlier e-mail I've solved the problem by repopulating the > combobox at the end of the Button_Click() subroutine. > However I have another question. If I create a combobox with: > DIM hComboBox AS ComboBox > hComboBox = NEW ComboBox ( Frame1 ) > > it doesn't accept any events ie hComboBox_Change() > > but if I create a comboBox by using the toolbox it will. Why is this or > am I doing something stupid (again!) and missing something simple? > > Thanks............... > John > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From doriano.blengino at ...1909... Fri Aug 1 18:43:59 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 01 Aug 2008 18:43:59 +0200 Subject: [Gambas-user] - Populating a Combobox from a DB In-Reply-To: <489321B4.3020805@...1947...> References: <489321B4.3020805@...1947...> Message-ID: <48933D4F.3000303@...1909...> John K ha scritto: > Re my earlier e-mail I've solved the problem by repopulating the > combobox at the end of the Button_Click() subroutine. > However I have another question. If I create a combobox with: > DIM hComboBox AS ComboBox > hComboBox = NEW ComboBox ( Frame1 ) > > it doesn't accept any events ie hComboBox_Change() > You should instanciate it with: hComboBox = NEW ComboBox(Frame1) as "mycmbbox" (note the "as xxxxx"). Then declare: public sub mycmbbox_change() ..... The toolbox works because it does automatically something similar. Ask Benoit, he knows better than me: the interpreter does know nothing about variable names, so if you rely on variable names to manage events, you fail. Regards. From rterry at ...1946... Tue Aug 5 06:59:09 2008 From: rterry at ...1946... (richard terry) Date: Tue, 5 Aug 2008 14:59:09 +1000 Subject: [Gambas-user] test message ignore Message-ID: <200808051459.09899.rterry@...1946...> Havn't received any gambas mail for some days so testing the list to see if it's just me! Richard From timothy.marshal-nichols at ...247... Wed Aug 6 13:17:52 2008 From: timothy.marshal-nichols at ...247... (timothy) Date: Wed, 6 Aug 2008 12:17:52 +0100 Subject: [Gambas-user] test message ignore In-Reply-To: <200808051459.09899.rterry@...1946...> Message-ID: <000001c8f7b6$15764480$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf > Of richard terry > Sent: Tuesday, 05 August 2008 05:59 AM > To: mailing list for gambas users > Subject: [Gambas-user] test message ignore > > > Havn't received any gambas mail for some days so testing the > list to see if > it's just me! > > Richard > > > Sorry Richard, I did not get the above message, and so am unable to reply ;-) Thanks 8-{)} Timothy Marshal-Nichols From ariefbayu at ...626... Wed Aug 6 14:22:23 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Wed, 6 Aug 2008 19:22:23 +0700 Subject: [Gambas-user] test message ignore In-Reply-To: <000001c8f7b6$15764480$6401a8c0@...1587...> References: <200808051459.09899.rterry@...1946...> <000001c8f7b6$15764480$6401a8c0@...1587...> Message-ID: <976ad9050808060522s4a70973ag90f447bf2f985fa2@...627...> On 8/6/08, timothy wrote: > > > Sorry Richard, > > I did not get the above message, and so am unable to reply ;-) > > Thanks Hahahha, That's funny. Anyway, I believe people are busy right now or there's not bug to report and no problem to ask for or... they have summer vacation! Whatever it is, be happy with what you do. -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From m0e.lnx at ...626... Wed Aug 6 18:23:57 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 6 Aug 2008 11:23:57 -0500 Subject: [Gambas-user] scrolling text Message-ID: <1f1e8c1b0808060923n25fb4b6eh55ab6f84355a6060@...627...> I'm trying to do some scrolling text on a window. Does anyone have any idea how to do this>? I've tried to mock the about window in the gambas IDE project, but I need the text to scroll horizontally from lright to left and I can't figure out exactly how to do it Please help Thanks From wdahn at ...1000... Wed Aug 6 18:47:47 2008 From: wdahn at ...1000... (Werner) Date: Thu, 07 Aug 2008 00:47:47 +0800 Subject: [Gambas-user] scrolling text In-Reply-To: <1f1e8c1b0808060923n25fb4b6eh55ab6f84355a6060@...627...> References: <1f1e8c1b0808060923n25fb4b6eh55ab6f84355a6060@...627...> Message-ID: <4899D5B3.40206@...1000...> M0E Lnx wrote: > I'm trying to do some scrolling text on a window. > Does anyone have any idea how to do this>? > > I've tried to mock the about window in the gambas IDE project, but I > need the text to scroll horizontally from lright to left and I can't > figure out exactly how to do it > > Please help > > Thanks > You use a picturebox or drawingarea and a timer that moves the x or y coordinate. I will send you a sample (it is too big to be posted here). Regards Werner From m0e.lnx at ...626... Wed Aug 6 18:54:59 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 6 Aug 2008 11:54:59 -0500 Subject: [Gambas-user] scrolling text In-Reply-To: <4899D5B3.40206@...1000...> References: <1f1e8c1b0808060923n25fb4b6eh55ab6f84355a6060@...627...> <4899D5B3.40206@...1000...> Message-ID: <1f1e8c1b0808060954v1f5d40eby718d51a30404f15f@...627...> Well, I really dont need the picture box... no graphic will be used here Just need the code tha makes the text move Thank you On Wed, Aug 6, 2008 at 11:47 AM, Werner wrote: > M0E Lnx wrote: >> I'm trying to do some scrolling text on a window. >> Does anyone have any idea how to do this>? >> >> I've tried to mock the about window in the gambas IDE project, but I >> need the text to scroll horizontally from lright to left and I can't >> figure out exactly how to do it >> >> Please help >> >> Thanks >> > You use a picturebox or drawingarea and a timer that moves the x or y > coordinate. I will send you a sample (it is too big to be posted here). > > Regards > Werner > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rospolosco at ...152... Wed Aug 6 20:58:22 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 6 Aug 2008 20:58:22 +0200 Subject: [Gambas-user] scrolling text In-Reply-To: <1f1e8c1b0808060954v1f5d40eby718d51a30404f15f@...627...> References: <1f1e8c1b0808060923n25fb4b6eh55ab6f84355a6060@...627...> <4899D5B3.40206@...1000...> <1f1e8c1b0808060954v1f5d40eby718d51a30404f15f@...627...> Message-ID: <200808062058.23009.rospolosco@...152...> Il mercoled? 6 agosto 2008 18:54:59 M0E Lnx ha scritto: > Well, I really dont need the picture box... no graphic will be used here > Just need the code tha makes the text move > > Thank you > I've attached a little example. Just a label with a timer. Stefano > On Wed, Aug 6, 2008 at 11:47 AM, Werner wrote: > > M0E Lnx wrote: > >> I'm trying to do some scrolling text on a window. > >> Does anyone have any idea how to do this>? > >> > >> I've tried to mock the about window in the gambas IDE project, but I > >> need the text to scroll horizontally from lright to left and I can't > >> figure out exactly how to do it > >> > >> Please help > >> > >> Thanks > > > > You use a picturebox or drawingarea and a timer that moves the x or y > > coordinate. I will send you a sample (it is too big to be posted here). > > > > Regards > > Werner > > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge Build the coolest Linux based applications with Moblin SDK & > > win great prizes Grand prize is a trip for two to an Open Source event > > anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > 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 Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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: scrolling-text-0.0.1.tar.gz Type: application/x-tgz Size: 7650 bytes Desc: not available URL: From ariefbayu at ...626... Thu Aug 7 01:16:27 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Thu, 7 Aug 2008 06:16:27 +0700 Subject: [Gambas-user] scrolling text In-Reply-To: <200808062058.23009.rospolosco@...152...> References: <1f1e8c1b0808060923n25fb4b6eh55ab6f84355a6060@...627...> <4899D5B3.40206@...1000...> <1f1e8c1b0808060954v1f5d40eby718d51a30404f15f@...627...> <200808062058.23009.rospolosco@...152...> Message-ID: <976ad9050808061616x451d5494y90c8642d1787ecaf@...627...> Hi Stefano, I enhance your demo a little to add a Left-Right, Right-Left, and Bounce mode. Hope that's ok. On 8/7/08, Stefano Palmeri wrote: > > Il mercoled? 6 agosto 2008 18:54:59 M0E Lnx ha scritto: > > > Well, I really dont need the picture box... no graphic will be used here > > Just need the code tha makes the text move > > > > Thank you > > > > > I've attached a little example. > Just a label with a timer. > > > Stefano > > > > > On Wed, Aug 6, 2008 at 11:47 AM, Werner wrote: > > > M0E Lnx wrote: > > >> I'm trying to do some scrolling text on a window. > > >> Does anyone have any idea how to do this>? > > >> > > >> I've tried to mock the about window in the gambas IDE project, but I > > >> need the text to scroll horizontally from lright to left and I can't > > >> figure out exactly how to do it > > >> > > >> Please help > > >> > > >> Thanks > > > > > > You use a picturebox or drawingarea and a timer that moves the x or y > > > coordinate. I will send you a sample (it is too big to be posted here). > > > > > > Regards > > > Werner > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > > challenge Build the coolest Linux based applications with Moblin SDK & > > > win great prizes Grand prize is a trip for two to an Open Source event > > > anywhere in the world > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > _______________________________________________ > > > 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 Moblin Your Move Developer's > > challenge Build the coolest Linux based applications with Moblin SDK & > win > > great prizes Grand prize is a trip for two to an Open Source event > anywhere > > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > 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 Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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: scrolling-text-0.0.3.tar.gz Type: application/x-gzip Size: 8008 bytes Desc: not available URL: From m0e.lnx at ...626... Thu Aug 7 13:58:51 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 7 Aug 2008 06:58:51 -0500 Subject: [Gambas-user] scrolling text In-Reply-To: <976ad9050808061616x451d5494y90c8642d1787ecaf@...627...> References: <1f1e8c1b0808060923n25fb4b6eh55ab6f84355a6060@...627...> <4899D5B3.40206@...1000...> <1f1e8c1b0808060954v1f5d40eby718d51a30404f15f@...627...> <200808062058.23009.rospolosco@...152...> <976ad9050808061616x451d5494y90c8642d1787ecaf@...627...> Message-ID: <1f1e8c1b0808070458g10870935nce5734dd1d4ecc2c@...627...> Thanks guys... this works On Wed, Aug 6, 2008 at 6:16 PM, Arief Bayu Purwanto wrote: > Hi Stefano, > > I enhance your demo a little to add a Left-Right, Right-Left, and Bounce > mode. > Hope that's ok. > > On 8/7/08, Stefano Palmeri wrote: >> >> Il mercoled? 6 agosto 2008 18:54:59 M0E Lnx ha scritto: >> >> > Well, I really dont need the picture box... no graphic will be used here >> > Just need the code tha makes the text move >> > >> > Thank you >> > >> >> >> I've attached a little example. >> Just a label with a timer. >> >> >> Stefano >> >> >> >> > On Wed, Aug 6, 2008 at 11:47 AM, Werner wrote: >> > > M0E Lnx wrote: >> > >> I'm trying to do some scrolling text on a window. >> > >> Does anyone have any idea how to do this>? >> > >> >> > >> I've tried to mock the about window in the gambas IDE project, but I >> > >> need the text to scroll horizontally from lright to left and I can't >> > >> figure out exactly how to do it >> > >> >> > >> Please help >> > >> >> > >> Thanks >> > > >> > > You use a picturebox or drawingarea and a timer that moves the x or y >> > > coordinate. I will send you a sample (it is too big to be posted here). >> > > >> > > Regards >> > > Werner >> > > >> > > >> > > >> ------------------------------------------------------------------------- >> > > This SF.Net email is sponsored by the Moblin Your Move Developer's >> > > challenge Build the coolest Linux based applications with Moblin SDK & >> > > win great prizes Grand prize is a trip for two to an Open Source event >> > > anywhere in the world >> > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> > > _______________________________________________ >> > > 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 Moblin Your Move Developer's >> > challenge Build the coolest Linux based applications with Moblin SDK & >> win >> > great prizes Grand prize is a trip for two to an Open Source event >> anywhere >> > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> > _______________________________________________ >> > 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 Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> 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/ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From m0e.lnx at ...626... Thu Aug 7 16:56:46 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 7 Aug 2008 09:56:46 -0500 Subject: [Gambas-user] create container with multiple objects on a straight horizontal line Message-ID: <1f1e8c1b0808070756j729f249br4c4f8730de5a6db8@...627...> Hello all, This is what I'm trying to do I need to find a container object to use where I can implement the following features. I need sort of like a listcontainer but I need to see if at all possible to have multiple objects on one horizontal line... like this ------------------------------------- | []Checkbox1 || Button1| | []Checkbox2 || Button2| ----------------------------------- and so on. I've tried using the listcontainer, but every time I add an item to it, it trhows it in a new line. Anyone have any idea how to accomplish this? Thanks in advance From sbungay at ...981... Thu Aug 7 18:47:37 2008 From: sbungay at ...981... (Stephen Bungay) Date: Thu, 07 Aug 2008 12:47:37 -0400 Subject: [Gambas-user] Procedure call stack?? Message-ID: <489B2729.9040901@...981...> I was into VB6 again there for a few months and am just getting back into GAMBAS... wasn't there a 'call stack' in GAMBAS to trace procedure calls back to their source, or am I just confused and my mind has been polluted by VB 6.0. Steve. From m0e.lnx at ...626... Thu Aug 7 23:07:48 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 7 Aug 2008 16:07:48 -0500 Subject: [Gambas-user] creating objects from code into a tabstrip Message-ID: <1f1e8c1b0808071407y143f6e68k65cca0be073b041a@...627...> In a form, I have a tabstrip. The tabstrip's .count property is not defined until some conditions are met After the tabstrip's .count property has been set, I want to fill each tab of the tabstrip with a button, textlabel, textbox etc When i create my objects, how do I tell it which tab to go to? Seems that the only tabstrip itself enherits the container property, but the tabs in it do not. I have already tried something like this bt = new button(tabstrip1[1]) as "button" but that says bad use of virtual class Please help From sbungay at ...981... Thu Aug 7 23:20:53 2008 From: sbungay at ...981... (Stephen Bungay) Date: Thu, 07 Aug 2008 17:20:53 -0400 Subject: [Gambas-user] creating objects from code into a tabstrip In-Reply-To: <1f1e8c1b0808071407y143f6e68k65cca0be073b041a@...627...> References: <1f1e8c1b0808071407y143f6e68k65cca0be073b041a@...627...> Message-ID: <489B6735.5000701@...981...> IN your proc.. DIM hButton1 as Button With Tabstrip1 .Index = 2 hButton1 = NEW Button(TabStrip1) AS "NewButton" end with M0E Lnx wrote: > In a form, I have a tabstrip. > The tabstrip's .count property is not defined until some conditions are met > > After the tabstrip's .count property has been set, I want to fill each > tab of the tabstrip with a button, textlabel, textbox etc > > When i create my objects, how do I tell it which tab to go to? > Seems that the only tabstrip itself enherits the container property, > but the tabs in it do not. > I have already tried something like this > > bt = new button(tabstrip1[1]) as "button" > > but that says bad use of virtual class > > Please help > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Thu Aug 7 23:49:21 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 7 Aug 2008 16:49:21 -0500 Subject: [Gambas-user] creating objects from code into a tabstrip In-Reply-To: <489B6735.5000701@...981...> References: <1f1e8c1b0808071407y143f6e68k65cca0be073b041a@...627...> <489B6735.5000701@...981...> Message-ID: <1f1e8c1b0808071449y2f0dfb91y7af2bd19682bcd0@...627...> Thank you... this works great ;) On Thu, Aug 7, 2008 at 4:20 PM, Stephen Bungay wrote: > IN your proc.. > > DIM hButton1 as Button > > With Tabstrip1 > .Index = 2 > hButton1 = NEW Button(TabStrip1) AS "NewButton" > end with > > M0E Lnx wrote: >> In a form, I have a tabstrip. >> The tabstrip's .count property is not defined until some conditions are met >> >> After the tabstrip's .count property has been set, I want to fill each >> tab of the tabstrip with a button, textlabel, textbox etc >> >> When i create my objects, how do I tell it which tab to go to? >> Seems that the only tabstrip itself enherits the container property, >> but the tabs in it do not. >> I have already tried something like this >> >> bt = new button(tabstrip1[1]) as "button" >> >> but that says bad use of virtual class >> >> Please help >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> 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 Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Fri Aug 8 01:01:30 2008 From: rterry at ...1946... (richard terry) Date: Fri, 8 Aug 2008 09:01:30 +1000 Subject: [Gambas-user] create container with multiple objects on a straight horizontal line In-Reply-To: <1f1e8c1b0808070756j729f249br4c4f8730de5a6db8@...627...> References: <1f1e8c1b0808070756j729f249br4c4f8730de5a6db8@...627...> Message-ID: <200808080901.30213.rterry@...1946...> On Fri, 8 Aug 2008 12:56:46 am M0E Lnx wrote: > Hello all, This is what I'm trying to do > Unless I'm totally misunderstanding you, it should be straightforward using a horizontal box container. You can nest set expand properties on each control if you want one to stay fixed size and the one next to it to expand. You can nest horizontal boxes, so that you could put several controls onto a nested hbox to have their own subset of expansion. I've quickly knocked this up as an example. If I'm totally wide of the mark then the example will be useful to total newbies struggling with expansion properties anyway. Personally I've found gambas brilliant for gui design and resizing - just about anything seems possible limited only by your imagination. Regards Richard > I need to find a container object to use where I can implement the > following features. > > I need sort of like a listcontainer but I need to see if at all > possible to have multiple objects on one horizontal line... like this > ------------------------------------- > > | []Checkbox1 || Button1| > | []Checkbox2 || Button2| > > ----------------------------------- > > and so on. > I've tried using the listcontainer, but every time I add an item to > it, it trhows it in a new line. > Anyone have any idea how to accomplish this? > > Thanks in advance > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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: sample_hbox-0.0.1.tar.gz Type: application/x-tgz Size: 8256 bytes Desc: not available URL: From rterry at ...1946... Sun Aug 10 06:33:50 2008 From: rterry at ...1946... (richard terry) Date: Sun, 10 Aug 2008 14:33:50 +1000 Subject: [Gambas-user] Dim keyword in a KeyPress event Message-ID: <200808101433.50155.rterry@...1946...> I wondered about the use of Dim within a keypress event e.g: Public Sub EditArea_KeyPress() Dim x as integer BLA BLA DO WHATEVER End And whether or not this was bad practice, or if one should use a public variable declared at the top of the program. Regards Richard From rterry at ...1946... Sat Aug 9 12:36:25 2008 From: rterry at ...1946... (richard terry) Date: Sat, 9 Aug 2008 20:36:25 +1000 Subject: [Gambas-user] Passing a Form as a parameter question. Message-ID: <200808092036.25525.rterry@...1946...> I've separated out the code that accesses my databases schemas, into different modules for maintainability purposes, which I append with the letters DBI (which stands for in my terminology - database interface - I'm not using the built-in datacontrols) The module may for example retrieve data which is then is loaded into a popup column view on the calling form as per the attatched png, and return a collection eg In the calling form: Public sub SomeSub() mycollection = modWhateverDBI.WhateverSubRoutine(columnview1) End Works fine as per the piccie Now, in some situations as well as retrieve the list, I want to do multiple things to the calling form on the fly if certain other factors are fullfilled once the data is retrieved, so in this case my calling construct looks like this. Public Sub Whatever() modWhateverDBI.WhateverSubRoutine(Me) End ie, I"m passing a reference to the entire form. So Questions: 1) What exactly are you passing when you reference anything, is it just a memory address? which points to the form? 1) Does this entail any performance overhead, as opposed to passing just a single control, or parameter? Hope this is not to obtuse a question. Thanks in anticipation. Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: temp1.png Type: image/png Size: 33658 bytes Desc: not available URL: From rterry at ...1946... Sun Aug 10 08:25:34 2008 From: rterry at ...1946... (richard terry) Date: Sun, 10 Aug 2008 16:25:34 +1000 Subject: [Gambas-user] listview/columnview key as string question Message-ID: <200808101625.34957.rterry@...1946...> Often wondered 2 things about this. 1) Why in listview the popup prompt the order is key, string, but in column view it is varient, key. 2) Why, when the popup prompt says it wants a string as the key, it will accept integer values. See piccie, in this case my $Result!prodcode is an integer value. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: key_as_string.png Type: image/png Size: 28362 bytes Desc: not available URL: From gambas at ...1... Mon Aug 11 00:22:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 11 Aug 2008 00:22:31 +0200 Subject: [Gambas-user] listview/columnview key as string question In-Reply-To: <200808101625.34957.rterry@...1946...> References: <200808101625.34957.rterry@...1946...> Message-ID: <200808110022.31908.gambas@...1...> On dimanche 10 ao?t 2008, richard terry wrote: > Often wondered 2 things about this. > > 1) Why in listview the popup prompt the order is key, string, but in > column view it is varient, key. Do you have a screenshot for that? > > 2) Why, when the popup prompt says it wants a string as the key, it will > accept integer values. > > See piccie, in this case my $Result!prodcode is an integer value. Because Gambas has automatic conversion between datatypes. Regards, -- Benoit Minisini From gambas at ...1... Mon Aug 11 00:25:15 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 11 Aug 2008 00:25:15 +0200 Subject: [Gambas-user] Passing a Form as a parameter question. In-Reply-To: <200808092036.25525.rterry@...1946...> References: <200808092036.25525.rterry@...1946...> Message-ID: <200808110025.15402.gambas@...1...> On samedi 09 ao?t 2008, richard terry wrote: > I've separated out the code that accesses my databases schemas, into > different modules for maintainability purposes, which I append with the > letters DBI (which stands for in my terminology - database interface - I'm > not using the built-in datacontrols) > > The module may for example retrieve data which is then is loaded into a > popup column view on the calling form as per the attatched png, and return > a collection > > eg In the calling form: > > Public sub SomeSub() > mycollection = modWhateverDBI.WhateverSubRoutine(columnview1) > End > > > Works fine as per the piccie > > Now, in some situations as well as retrieve the list, I want to do multiple > things to the calling form on the fly if certain other factors are > fullfilled once the data is retrieved, so in this case my calling construct > looks like this. > > Public Sub Whatever() > > modWhateverDBI.WhateverSubRoutine(Me) > > End > > ie, I"m passing a reference to the entire form. > > So Questions: > > 1) What exactly are you passing when you reference anything, is it just a > memory address? which points to the form? Yes. > > 1) Does this entail any performance overhead, as opposed to passing just a > single control, or parameter? No, provided that you do not use the anonymous Object datatype, which is slower that a statically defined datatype. Regards, -- Benoit Minisini From rterry at ...1946... Mon Aug 11 01:40:37 2008 From: rterry at ...1946... (richard terry) Date: Mon, 11 Aug 2008 09:40:37 +1000 Subject: [Gambas-user] Sending direct to printer Message-ID: <200808110940.37236.rterry@...1946...> I'm using the webbrowser component to display forms I'm making out of html, and then the print function from this, but of course if pops up the print dialog. I wondered how to send something directly to a user-defined printer? Any help appreciated. thanks Richard From rospolosco at ...152... Mon Aug 11 09:49:51 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 11 Aug 2008 09:49:51 +0200 Subject: [Gambas-user] Sending direct to printer In-Reply-To: <200808110940.37236.rterry@...1946...> References: <200808110940.37236.rterry@...1946...> Message-ID: <200808110949.51569.rospolosco@...152...> Il luned? 11 agosto 2008 01:40:37 richard terry ha scritto: > I'm using the webbrowser component to display forms I'm making out of > html, and then the print function from this, but of course if pops up the > print dialog. > > I wondered how to send something directly to a user-defined printer? > > Any help appreciated. > > thanks > > Richard > SHELL "lp " & file_to_print WAIT man lp for lp options. Stefano > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From doriano.blengino at ...1909... Mon Aug 11 10:09:21 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 11 Aug 2008 10:09:21 +0200 Subject: [Gambas-user] A Gambas odissey Message-ID: <489FF3B1.3030105@...1909...> Hello all... I am writing a file manager, hybrid between FileRunner and a more modern one. I started with a DirView, and soon discovered that it doesn't raise the KeyPress event (but the IDE makes you think that). There were other things missing in DirView, so I wrote my MyDirView the way I wanted. It was easy at first, but then I discovered that it is difficult, or at least not clear, how to move the "Current" cursor. I am not sure why, but it does work by setting the Selected property of an item. I failed, instead, in removing all the children of an item, one by one (there is a clear() method, but I need to delete them one by one). The "for each ... in item.children" does not work; it is not the first time I see similar anomalies, especially while stepping the source. Writing MyDirView revealed another problem. If in a custom control I receive the KeyPress event, I can not re-raise it (stack overflow). So I have to raise another event with a different name. This breaks the consistency of naming - in a row of four controls, each derived from the other, the same event must be called with four different names. I took a look at the FileView control to see what has been done in there. It receives Click events, and raises Click events. What inside? It does not inherit from ListView or similar. Now I understand why it works, but I don't like it. Anyway, I went ahead. I put two FileView on the form. They don't raise KeyPress event. It's getting tiring. I don't want to rewrite MyFileView just now (I will do, because I need more functionalities). I only need to catch Backspace and Enter, so I make a menu voice which has the Backspace key as its shortcut. Now the backspace works, but... how the hell can I tell which control is focused? The only way I found was to catch the GotFocus and LostFocus events, and track the focus by hand. I have only three controls, but what about if I had dozens of them? Grouping them would group all their events, while I am interested in grouping only GotFocus/LostFocus events. To make it short, I succeded in make it work, and passed to the Enter key. The Enter key should invoke the selected file in one of the two FileView's. A menu voice has only one shortcut, but the Enter keys are two (Gambas calls them Enter and Return). Uhm... no way. Then I try to use the Form_Keypress event, but it does not fire - the controls are stealing the keys. So, there is no way to do this thing. If a FileView does not "activate" a file when the user presses Enter, then you can not: 1: inherit a new control which does, because you must rename all its events 2: use a menu voice to do it, because a menu voice has only one shortcut; if you want use more keys, no way 3: use the form KeyPress, which does not fire The only way left is to create a new control, and then instantiate a FileView inside it. This is not inheritance, because you have to replicate all the things you need: events, properties, methods. Coming from Delphi, I must say the following: Delphi forms have a KeyPreview property. If you set it, then *all* the keypresses are first passed to the form. The form then decides wether to ignore the key, or make additional things, to let the key pass, or to stop it. Delphi containers have an ActiveControl property which tells which control has the focus. Moreover, every control has a Focused property which tells if a specific control has the focus or not. The list of things Delphi has and Gambas doesn't is long, but I don't want to criticize. I am really missing keyboard and focus control. It seems that VisualBasic programmers use the mouse a lot, and neglect keyboards, and so do many users, so this could be the reason why Gambas seems to do the same. I don't know Gambas very well, and I could have missed a lot of things. But it is easy to miss things - in the documentation a "See also" section in every topic could really help. Finally, I must say that I think, and *repeat*, I think, the event management is wrong or, at least, it is not as flexible as it could be. Once a control raises event, you can not make it stop. If you group controls, you group all their events. Once you assign a handler to an event, you can no more change it. Probably Gambas is too developed to change things at this point but, for who cares or is courious, I will explain how events work in Delphi. An event in delphi has an associated property which contains the address of a routine to launch. For example, if a control has a Click event, then it has a OnClick property. That property contains the address of the routine to invoke when the control wants to "raise" the Click event. The OnClick property is a procedural type, a thing that does not exist in Gambas. But being a property, the main program can disable that event by setting that property to NIL (NULL), or change the handler by setting the property to another value. It is possible to associate many controls to the same handler, but only the events we want, not *all* the events of *all* the selected controls. In fact, events do not exist in delphi, they are simply procedure calls. Instead of writing: raise KeyPress ' Gambas code which, I suppose, unleashes a textual search for a public subroutine named in some correct way, in Delphi one would write: if OnKeypress<>NIL then OnKeypress(); // procedural call This paradigm is faster, more sure, more flexible, more easy to understand. When deriving controls, the derived one can override the methods of the ancestor, and still call the inherited one. Gambas has an interesting feature which does the opposite: instead of calling the ancestor method on demand, it can stop it on demand. It is quite the same, I think. Happy holidays to everyone. From doriano.blengino at ...1909... Mon Aug 11 10:22:07 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 11 Aug 2008 10:22:07 +0200 Subject: [Gambas-user] Dim keyword in a KeyPress event In-Reply-To: <200808101433.50155.rterry@...1946...> References: <200808101433.50155.rterry@...1946...> Message-ID: <489FF6AF.9060502@...1909...> richard terry ha scritto: > I wondered about the use of Dim within a keypress event > > e.g: > > Public Sub EditArea_KeyPress() > > Dim x as integer > > BLA BLA DO WHATEVER > > End > > And whether or not this was bad practice, or if one should use a public > variable declared at the top of the program. > I personally think it is good practice and, on the other hand, Gambas has nothing wrong with this (i.e., it works well). Maybe a global variable is faster than a local one, maybe not, but anyway this has little importance; if from an event handler you use a global variable, keep in mind that another event handler could come in place and corrupt your variable. I am not very sure if this can happen in gambas, but if you use a WAIT instruction, then surely it can happen. Moreover, it is ugly to declare global variables to be used in localized scopes, because you loose the logical association between the variable and the code that uses it. Some languages require you redeclare global variables if you want to use them in a subroutine; this is added work for the programmer, but has some advantages. So, again, use local variables as much as you can. Cheers, Doriano Blengino. From francescoxavierkm at ...43... Mon Aug 11 12:20:02 2008 From: francescoxavierkm at ...43... (Francesco Cisco) Date: Mon, 11 Aug 2008 03:20:02 -0700 (PDT) Subject: [Gambas-user] how to edit data in table view Message-ID: <306344.29973.qm@...1954...> hello, how to edit data from tableview cell with double click event??? thank you From rterry at ...1946... Tue Aug 12 00:04:56 2008 From: rterry at ...1946... (richard terry) Date: Tue, 12 Aug 2008 08:04:56 +1000 Subject: [Gambas-user] Sending direct to printer In-Reply-To: <200808110949.51569.rospolosco@...152...> References: <200808110940.37236.rterry@...1946...> <200808110949.51569.rospolosco@...152...> Message-ID: <200808120804.57141.rterry@...1946...> On Mon, 11 Aug 2008 05:49:51 pm Stefano Palmeri wrote: > Il luned? 11 agosto 2008 01:40:37 richard terry ha scritto: > > I'm using the webbrowser component to display forms I'm making out of > > html, and then the print function from this, but of course if pops up the > > print dialog. > > > > I wondered how to send something directly to a user-defined printer? > > > > Any help appreciated. > > > > thanks > > > > Richard > > SHELL "lp " & file_to_print WAIT > > man lp for lp options. That only sends the text, I need to send formatted HTML, any other suggestions? > Stefano > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge Build the coolest Linux based applications with Moblin SDK & > > win great prizes Grand prize is a trip for two to an Open Source event > > anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > 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 Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From charles at ...1784... Tue Aug 12 08:20:52 2008 From: charles at ...1784... (charlesg) Date: Mon, 11 Aug 2008 23:20:52 -0700 (PDT) Subject: [Gambas-user] Sending direct to printer In-Reply-To: <200808120804.57141.rterry@...1946...> References: <200808110940.37236.rterry@...1946...> <200808110949.51569.rospolosco@...152...> <200808120804.57141.rterry@...1946...> Message-ID: <18938687.post@...1379...> 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 rgds -- View this message in context: http://www.nabble.com/Sending-direct-to-printer-tp18918275p18938687.html Sent from the gambas-user mailing list archive at Nabble.com. From ronstk at ...239... Tue Aug 12 09:44:21 2008 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 12 Aug 2008 09:44:21 +0200 Subject: [Gambas-user] Sending direct to printer In-Reply-To: <18938687.post@...1379...> References: <200808110940.37236.rterry@...1946...> <200808120804.57141.rterry@...1946...> <18938687.post@...1379...> Message-ID: <200808120944.22133.ronstk@...239...> On Tuesday 12 August 2008, charlesg wrote: > > 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 > > rgds When I do understand it right Richard does not want the dialog for the printer. The method I did use for printing is/was like next code. function printform_click() dim lpgrab as picture 'ar image dim lpimg as pcture ' or image lpgrab = me.grab() ' or use the control on the form you want to print ' check help for result type of grab lpimg = lpgrab.clip(top,left,width,height) ' or the correct method to getthe right part file.save(tempraryfile,lpimg) shell "lp " & temporaryfile" WAIT ' check the right code howto do the shell ' and way the print program end The tip that counts is the .grab() method however this is not idioat proof as I found at that time. Point to be 100% sure to be is 1) NO other object on the screen may overlap the form/contol 2) the form/control part must be complete visible on screen. 3) if the .grab() is done and the form/control size results in space outside the visible screen dimension the memory is still used for the grab(). This result can show parts of previous visited webpage (is happend to me) or other valuable information. Ron From gambas.fr at ...626... Tue Aug 12 12:15:22 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 12 Aug 2008 12:15:22 +0200 Subject: [Gambas-user] A Gambas odissey In-Reply-To: <489FF3B1.3030105@...1909...> References: <489FF3B1.3030105@...1909...> Message-ID: <6324a42a0808120315q427f206av428a43578ce1b041@...627...> hohoooo there is many thing wrong here ! 2008/8/11 Doriano Blengino : > Hello all... > > I am writing a file manager, hybrid between FileRunner and a more > modern one. > > I started with a DirView, and soon discovered that it doesn't raise the > KeyPress event (but the IDE makes you think that). dir view is a top level component you can easily rewrite it > There were other > things missing in DirView, so I wrote my MyDirView the way I wanted. It > was easy at first, but then I discovered that it is difficult, or at > least not clear, how to move the "Current" cursor. I am not sure why, > but it does work by setting the Selected property of an item. I failed, > instead, in removing all the children of an item, one by one (there is a > clear() method, but I need to delete them one by one). The "for each ... > in item.children" does not work; it is not the first time I see similar > anomalies, especially while stepping the source. > > Writing MyDirView revealed another problem. If in a custom control I > receive the KeyPress event, I can not re-raise it (stack overflow). So I > have to raise another event with a different name. This breaks the > consistency of naming - in a row of four controls, each derived from the > other, the same event must be called with four different names. I took a > look at the FileView control to see what has been done in there. It > receives Click events, and raises Click events. What inside? It does not > inherit from ListView or similar. Now I understand why it works, but I > don't like it. it don't have to inherit it's a composed widget..; not an extention. > > Anyway, I went ahead. I put two FileView on the form. They don't raise > KeyPress event. It's getting tiring. I don't want to rewrite MyFileView > just now (I will do, because I need more functionalities). I only need > to catch Backspace and Enter, so I make a menu voice which has the > Backspace key as its shortcut. Now the backspace works, but... how the > hell can I tell which control is focused? The only way I found was to > catch the GotFocus and LostFocus events, and track the focus by hand. I > have only three controls, but what about if I had dozens of them? > Grouping them would group all their events, while I am interested in > grouping only GotFocus/LostFocus events. > > To make it short, I succeded in make it work, and passed to the > Enter key. The Enter key should invoke the selected file in one of the > two FileView's. A menu voice has only one shortcut, but the Enter keys > are two (Gambas calls them Enter and Return). Uhm... no way. Then I try > to use the Form_Keypress event, but it does not fire - the controls are > stealing the keys. So, there is no way to do this thing. If a FileView > does not "activate" a file when the user presses Enter, then you can not: > > 1: inherit a new control which does, because you must rename all its > events what about observer ? > 2: use a menu voice to do it, because a menu voice has only one > shortcut; if you want use more keys, no way ??? > 3: use the form KeyPress, which does not fire > > The only way left is to create a new control, and then instantiate a > FileView inside it. This is not inheritance, because you have to > replicate all the things you need: events, properties, methods. > > Coming from Delphi, I must say the following: > > Delphi forms have a KeyPreview property. If you set it, then *all* the > keypresses are first passed to the form. The form then decides wether to > ignore the key, or make additional things, to let the key pass, or to > stop it. > > Delphi containers have an ActiveControl property which tells which > control has the focus. Moreover, every control has a Focused property > which tells if a specific control has the focus or not. The list of > things Delphi has and Gambas doesn't is long, but I don't want to > criticize. I am really missing keyboard and focus control. It seems that > VisualBasic programmers use the mouse a lot, and neglect keyboards, and > so do many users, so this could be the reason why Gambas seems to do the > same. > > I don't know Gambas very well, and I could have missed a lot of things. many > But it is easy to miss things - in the documentation a "See also" > section in every topic could really help. there is > > Finally, I must say that I think, and *repeat*, I think, the event > management is wrong or, at least, it is not as flexible as it could be. > Once a control raises event, you can not make it stop. not true ... it's STOP EVENT >If you group > controls, you group all their events. yes it's an event handler grouping, not a true group ... to doing a group you need to store objects in an array > Once you assign a handler to an > event, you can no more change it. wrong : Object.attach(Object, parentclass, "handler name") > Probably Gambas is too developed to > change things at this point but, for who cares or is courious, I will > explain how events work in Delphi. An event in delphi has an associated > property which contains the address of a routine to launch. For example, > if a control has a Click event, then it has a OnClick property. That > property contains the address of the routine to invoke when the control > wants to "raise" the Click event. The OnClick property is a procedural > type, a thing that does not exist in Gambas. true ... gambas is a true oriented object language > But being a property, the > main program can disable that event by setting that property to NIL > (NULL), PUBLIC SUB MyList_KeyPress() STOP EVENT END But it's true that we can't turn off an event > or change the handler by setting the property to another value. > It is possible to associate many controls to the same handler, but only > the events we want, not *all* the events of *all* the selected controls. > In fact, events do not exist in delphi, they are simply procedure calls. > Instead of writing: > > raise KeyPress ' Gambas code > > which, I suppose, unleashes a textual search for a public subroutine > named in some correct way, in Delphi one would write: > > if OnKeypress<>NIL then OnKeypress(); // procedural call > > > This paradigm is faster, more sure, more flexible, more easy to > understand. When deriving controls, the derived one can override the > methods of the ancestor, and still call the inherited one. Gambas has an > interesting feature which does the opposite: instead of calling the > ancestor method on demand, it can stop it on demand. It is quite the > same, I think. ok got it in fact > > > Happy holidays to everyone. > to you too Fabien From gambas.fr at ...626... Tue Aug 12 12:53:40 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 12 Aug 2008 12:53:40 +0200 Subject: [Gambas-user] A Gambas odissey In-Reply-To: <6324a42a0808120315q427f206av428a43578ce1b041@...627...> References: <489FF3B1.3030105@...1909...> <6324a42a0808120315q427f206av428a43578ce1b041@...627...> Message-ID: <6324a42a0808120353x1c64de9em2ca73e114ff98663@...627...> is this can help you ? This a simple demo off event management via objerver object that catch the event before object. If you have others question tell me Fabien 2008/8/12 Fabien Bodard : > hohoooo there is many thing wrong here ! > > 2008/8/11 Doriano Blengino : >> Hello all... >> >> I am writing a file manager, hybrid between FileRunner and a more >> modern one. >> >> I started with a DirView, and soon discovered that it doesn't raise the >> KeyPress event (but the IDE makes you think that). > > dir view is a top level component you can easily rewrite it > > >> There were other >> things missing in DirView, so I wrote my MyDirView the way I wanted. It >> was easy at first, but then I discovered that it is difficult, or at >> least not clear, how to move the "Current" cursor. I am not sure why, >> but it does work by setting the Selected property of an item. I failed, >> instead, in removing all the children of an item, one by one (there is a >> clear() method, but I need to delete them one by one). The "for each ... >> in item.children" does not work; it is not the first time I see similar >> anomalies, especially while stepping the source. >> >> Writing MyDirView revealed another problem. If in a custom control I >> receive the KeyPress event, I can not re-raise it (stack overflow). So I >> have to raise another event with a different name. This breaks the >> consistency of naming - in a row of four controls, each derived from the >> other, the same event must be called with four different names. I took a >> look at the FileView control to see what has been done in there. It >> receives Click events, and raises Click events. What inside? It does not >> inherit from ListView or similar. Now I understand why it works, but I >> don't like it. > it don't have to inherit it's a composed widget..; not an extention. >> >> Anyway, I went ahead. I put two FileView on the form. They don't raise >> KeyPress event. It's getting tiring. I don't want to rewrite MyFileView >> just now (I will do, because I need more functionalities). I only need >> to catch Backspace and Enter, so I make a menu voice which has the >> Backspace key as its shortcut. Now the backspace works, but... how the >> hell can I tell which control is focused? The only way I found was to >> catch the GotFocus and LostFocus events, and track the focus by hand. I >> have only three controls, but what about if I had dozens of them? >> Grouping them would group all their events, while I am interested in >> grouping only GotFocus/LostFocus events. >> >> To make it short, I succeded in make it work, and passed to the >> Enter key. The Enter key should invoke the selected file in one of the >> two FileView's. A menu voice has only one shortcut, but the Enter keys >> are two (Gambas calls them Enter and Return). Uhm... no way. Then I try >> to use the Form_Keypress event, but it does not fire - the controls are >> stealing the keys. So, there is no way to do this thing. If a FileView >> does not "activate" a file when the user presses Enter, then you can not: >> >> 1: inherit a new control which does, because you must rename all its >> events > what about observer ? >> 2: use a menu voice to do it, because a menu voice has only one >> shortcut; if you want use more keys, no way > ??? >> 3: use the form KeyPress, which does not fire >> > >> The only way left is to create a new control, and then instantiate a >> FileView inside it. This is not inheritance, because you have to >> replicate all the things you need: events, properties, methods. >> >> Coming from Delphi, I must say the following: >> >> Delphi forms have a KeyPreview property. If you set it, then *all* the >> keypresses are first passed to the form. The form then decides wether to >> ignore the key, or make additional things, to let the key pass, or to >> stop it. >> >> Delphi containers have an ActiveControl property which tells which >> control has the focus. Moreover, every control has a Focused property >> which tells if a specific control has the focus or not. The list of >> things Delphi has and Gambas doesn't is long, but I don't want to >> criticize. I am really missing keyboard and focus control. It seems that >> VisualBasic programmers use the mouse a lot, and neglect keyboards, and >> so do many users, so this could be the reason why Gambas seems to do the >> same. >> >> I don't know Gambas very well, and I could have missed a lot of things. > many >> But it is easy to miss things - in the documentation a "See also" >> section in every topic could really help. > there is >> >> Finally, I must say that I think, and *repeat*, I think, the event >> management is wrong or, at least, it is not as flexible as it could be. >> Once a control raises event, you can not make it stop. > not true ... it's STOP EVENT >>If you group >> controls, you group all their events. > > yes it's an event handler grouping, not a true group ... to doing a > group you need to store objects in an array >> Once you assign a handler to an >> event, you can no more change it. > > wrong : Object.attach(Object, parentclass, "handler name") > >> Probably Gambas is too developed to >> change things at this point but, for who cares or is courious, I will >> explain how events work in Delphi. An event in delphi has an associated >> property which contains the address of a routine to launch. For example, >> if a control has a Click event, then it has a OnClick property. That >> property contains the address of the routine to invoke when the control >> wants to "raise" the Click event. The OnClick property is a procedural >> type, a thing that does not exist in Gambas. > > true ... gambas is a true oriented object language > >> But being a property, the >> main program can disable that event by setting that property to NIL >> (NULL), > > PUBLIC SUB MyList_KeyPress() > STOP EVENT > END > > But it's true that we can't turn off an event > >> or change the handler by setting the property to another value. >> It is possible to associate many controls to the same handler, but only >> the events we want, not *all* the events of *all* the selected controls. >> In fact, events do not exist in delphi, they are simply procedure calls. >> Instead of writing: >> >> raise KeyPress ' Gambas code >> >> which, I suppose, unleashes a textual search for a public subroutine >> named in some correct way, in Delphi one would write: >> >> if OnKeypress<>NIL then OnKeypress(); // procedural call >> >> >> This paradigm is faster, more sure, more flexible, more easy to >> understand. When deriving controls, the derived one can override the >> methods of the ancestor, and still call the inherited one. Gambas has an >> interesting feature which does the opposite: instead of calling the >> ancestor method on demand, it can stop it on demand. It is quite the >> same, I think. > ok got it in fact > > > > >> >> >> Happy holidays to everyone. >> > > to you too > > Fabien > -------------- next part -------------- A non-text attachment was scrubbed... Name: testinherit-0.0.1.tar.gz Type: application/x-gzip Size: 8022 bytes Desc: not available URL: From m0e.lnx at ...626... Tue Aug 12 23:52:42 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 12 Aug 2008 16:52:42 -0500 Subject: [Gambas-user] Still jacking with tabstrips properties and adding tabs Message-ID: <1f1e8c1b0808121452q38f91737gea829a34fdabe1fb@...627...> I'm still having a little problem getting this to work I want to add tabs to a tabs strip, and populate the new tabs as I go along. Here is an example of what I want to do With tabstrip1 .count = .count + 1 ' this works... adds a new tab to the tabstrip .index = .count ' This is where the problem is, it keeps saying bad index End With I want it to add a tab and select it so I can set this new tab's .text property Any ideas or other ways to do it? From rterry at ...1946... Wed Aug 13 00:46:59 2008 From: rterry at ...1946... (richard terry) Date: Wed, 13 Aug 2008 08:46:59 +1000 Subject: [Gambas-user] Still jacking with tabstrips properties and adding tabs In-Reply-To: <1f1e8c1b0808121452q38f91737gea829a34fdabe1fb@...627...> References: <1f1e8c1b0808121452q38f91737gea829a34fdabe1fb@...627...> Message-ID: <200808130846.59526.rterry@...1946...> On Wed, 13 Aug 2008 07:52:42 am M0E Lnx wrote: > I'm still having a little problem getting this to work > > I want to add tabs to a tabs strip, and populate the new tabs as I go > along. Here is an example of what I want to do > > With tabstrip1 > .count = .count + 1 ' this works... adds a new tab to the tabstrip > .index = .count ' This is where the problem is, it keeps saying bad index > End With > I want it to add a tab and select it so I can set this new tab's .text > property > > Any ideas or other ways to do it? Not really sure what you want but I quickly typed this out and it works. Adds tabs, and changes tab name and puts button on some of them. Private tab As TabStrip Private bt As Button Public Sub form_Open() Dim x As Integer tab = New TabStrip(Me) tab.Arrangement = 5 'fill - will make the buttons fill the tab - there is probably a constant somewhere for this) For x = 1 To 5 Inc tab.count tab.text = "tab " & Str$(x) bt = New Button(tab) bt.text = "Button on tab " & Str$(x) Next End > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ronstk at ...239... Wed Aug 13 01:06:31 2008 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 13 Aug 2008 01:06:31 +0200 Subject: [Gambas-user] Still jacking with tabstrips properties and adding tabs In-Reply-To: <1f1e8c1b0808121452q38f91737gea829a34fdabe1fb@...627...> References: <1f1e8c1b0808121452q38f91737gea829a34fdabe1fb@...627...> Message-ID: <200808130106.32120.ronstk@...239...> On Tuesday 12 August 2008, M0E Lnx wrote: > With tabstrip1 > .count = .count + 1 ' this works... adds a new tab to the tabstrip > .index = .count ' This is where the problem is, it keeps saying bad index > End With > If you have 1 tab then count=1 and index=0 Adding a TAB with .count + 1 gives 2 TAB's. tab1 index=0, tab2 index=1 so index is 0 based. the line with the error shoul be .index=.count - 1 hope this help Ron 1st From massenpost at ...1093... Wed Aug 13 00:58:00 2008 From: massenpost at ...1093... (Peter Lang) Date: Wed, 13 Aug 2008 00:58:00 +0200 Subject: [Gambas-user] XMLRpc maybe a Bug Message-ID: <200808130058.00235.massenpost@...1093...> Hi, After investigating the Source of xmlrpc i thought i know how to use it... Everything work so far, but the last Step does not work. The line: myStruc.Value(a) has to return the result, but instead of giving back an int i get an RpcStruct again and again. The sample does not much useful, but when it ends it throws the following Errors to the Console: WARNING: circular references detected RpcStruct (1) WARNING: 9 allocation(s) non freed. Is there any additional Documentation i missed? PUBLIC SUB Main() DIM RpcF AS RpcFunction DIM myStruc AS RpcStruct DIM client AS RpcClient DIM hVar AS NEW Variant[] DIM ret AS Variant DIM a AS Integer DIM name AS String DIM dType AS Integer a = 0 RpcF = NEW RpcFunction("sample.sumAndDifference", [XmlRpc.xInteger, XmlRpc.xInteger], XmlRpc.xStruct) client = NEW RpcClient(RpcF) client.URL = "http://xmlrpc-c.sourceforge.net/api/sample.php" hVar.Add(5) hVar.Add(3) myStruc = client.Call(hVar) DO WHILE a < myStruc.Count name = myStruc.Key(a) dType = myStruc.dataType(a) ret = myStruc.Value(a) INC a LOOP END -- http://www.afaik.de/usenet/faq/zitieren/ BOFH excuse #335: the AA battery in the wallclock sends magnetic interference From doriano.blengino at ...1909... Wed Aug 13 10:49:37 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 13 Aug 2008 10:49:37 +0200 Subject: [Gambas-user] A Gambas odissey In-Reply-To: <6324a42a0808120315q427f206av428a43578ce1b041@...627...> References: <489FF3B1.3030105@...1909...> <6324a42a0808120315q427f206av428a43578ce1b041@...627...> Message-ID: <48A2A021.7020701@...1909...> Fabien Bodard ha scritto: >> things missing in DirView, so I wrote my MyDirView the way I wanted. It >> was easy at first, but then I discovered that it is difficult, or at >> least not clear, how to move the "Current" cursor. I am not sure why, >> but it does work by setting the Selected property of an item. >> I derived MyDirView from TreeView, and wrote a ME_KeyPress event to manage arrow keys and textual search (i.e., you start to write the name of the directory you want to reach, and MyDirView select that directory). There is a SELECT statement that catches arrow keys. The Left key, for example, should move the Current item to its parent (the parent directory). After using ME.MoveParent, I need a: ME.item.Selected = TRUE because otherwise nothing happens. Later in the same routine I develop the textual search which, after finding the correct item using MoveFirst and several MoveBelow, simply returns. And it works! Without setting any Selected property. While I am writing I realize that in the first case I STOP the event, while in the second one I do not. If I STOP in the second case, it does not work. So, the event handler of TreeView is doing something: if I stop it, I need to set the Selected property, if I do not stop it, it perhaps does something similar. Anyway the question is: how to move the Current item? I mean, the item the user sees as current? >> other, the same event must be called with four different names. I took a >> look at the FileView control to see what has been done in there. It >> receives Click events, and raises Click events. What inside? It does not >> inherit from ListView or similar. Now I understand why it works, but I >> don't like it. >> > it don't have to inherit it's a composed widget..; not an extention. > What is an extension? I suppose a composed widget is one built from several other widgets. And so? If had to write a MyFileView, I would inherit from ColumnView, which already have many things I need. But, apparently, the Gambas mind is different from mine... >> 1: inherit a new control which does, because you must rename all its >> events >> > what about observer ? > I tried that; I didn't succed. May be I missed something, because I was facing an unexpected problem and tried several ways, in a crescendo of confusion and frustration. I think, indeed, that an Observer can catch events that are effectively raised. If an event does not rise, no Observers can catch it... >> 2: use a menu voice to do it, because a menu voice has only one >> shortcut; if you want use more keys, no way >> > ??? > Think: if a control does not raise a KeyPress event, how can I catch keys? A menu catches shortcuts, which are keys. So you put a menu voice (a menu item) somewhere, and it will catch a single key (I wanted to catch the Tab, Enter and Return). Problem is a menu only catch one key, but I can use three different menu voices, perhaps hidden... >> Finally, I must say that I think, and *repeat*, I think, the event >> management is wrong or, at least, it is not as flexible as it could be. >> Once a control raises event, you can not make it stop. >> > not true ... it's STOP EVENT > Yes, but where should you write your "STOP EVENT" statement? In a event handler... By doing so, you don't really keep the control from raising events; instead you stop them to be processed, which is different. In a message some time ago Benoit told me that "events are a cost, so they should be used only in specialized controls and not for other purposes...". This is the reason why "events are a cost". They keep to fire, even if nobody (no code) is interested in them. I have seen some gambas distribution source code; sometimes a boolean flag is used to temporarily prevent an event to rise: public sub TreeView_Expand() if $bDontRaise then return ' process... end If TreeView had a OnExpand property, which tells what subroutine to invoke on expanding, instead of declaring a $bDontRaise and setting it to true one could write TreeView.OnExpand=NULL >> Once you assign a handler to an >> event, you can no more change it. >> > > wrong : Object.attach(Object, parentclass, "handler name") > Right. I was forgetting this. >> wants to "raise" the Click event. The OnClick property is a procedural >> type, a thing that does not exist in Gambas. >> true ... gambas is a true oriented object language >> ??? Does it mean that a "true object oriented language" should not have procedural types? Delphi (or Kylix, or freepascal, or C++) are true object oriented language, and they have procedural types. Well. Now I am going to see that code you courtly sent to me, and then I will reply. Last question: what about focus management? How can I know what control has the input focus? Thank you - have a nice day. From doriano.blengino at ...1909... Wed Aug 13 11:05:22 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 13 Aug 2008 11:05:22 +0200 Subject: [Gambas-user] A Gambas odissey In-Reply-To: <6324a42a0808120353x1c64de9em2ca73e114ff98663@...627...> References: <489FF3B1.3030105@...1909...> <6324a42a0808120315q427f206av428a43578ce1b041@...627...> <6324a42a0808120353x1c64de9em2ca73e114ff98663@...627...> Message-ID: <48A2A3D2.6010709@...1909...> I send the file manager I am writing, for anybody could be interested in. For now, navigation is almost complete. It misses a mean to delete bookmarks, because I wanted to delete them by right-clicking on the menu voice, but this is not possible (the mouse right button it is not discerned). Now I can not decide about how to do it. File association seems to work, even if the code is awful. Deleting files works - do it at your own risk... Everything else is under construction. Happy coding to everyone. -------------- next part -------------- A non-text attachment was scrubbed... Name: tuxfm-0.0.18.tar.gz Type: application/x-gzip Size: 30112 bytes Desc: not available URL: From gambas at ...1... Wed Aug 13 12:36:18 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 13 Aug 2008 12:36:18 +0200 Subject: [Gambas-user] A Gambas odissey In-Reply-To: <489FF3B1.3030105@...1909...> References: <489FF3B1.3030105@...1909...> Message-ID: <200808131236.18879.gambas@...1...> On lundi 11 ao?t 2008, Doriano Blengino wrote: > Hello all... > > I am writing a file manager, hybrid between FileRunner and a more > modern one. > > I started with a DirView, and soon discovered that it doesn't raise the > KeyPress event (but the IDE makes you think that). There were other > things missing in DirView, so I wrote my MyDirView the way I wanted. It > was easy at first, but then I discovered that it is difficult, or at > least not clear, how to move the "Current" cursor. The Current property is not writable at the moment in TreeView, ListView and ColumnView. I don't remember if there is a specific reason for that. If not, I will make it writable in Gambas 3. > I am not sure why, > but it does work by setting the Selected property of an item. I failed, > instead, in removing all the children of an item, one by one (there is a > clear() method, but I need to delete them one by one). The "for each ... > in item.children" does not work; it is not the first time I see similar > anomalies, especially while stepping the source. Items are not enumerable, because they are not true objects. Instead, you must use the Move* methods that move an internal cursor. Use the TreeView.Item property to get the item pointed by that internal cursor. > > Writing MyDirView revealed another problem. If in a custom control I > receive the KeyPress event, I can not re-raise it (stack overflow). If "you" (I think "you" mean "an object A") receives an event from an object "B", raising it "again" does not mean anything. Only the object "B" can raise the event again. If you mean that the object A is its own event observer, why would it need to send itself an event? > So I > have to raise another event with a different name. This breaks the > consistency of naming - in a row of four controls, each derived from the > other, the same event must be called with four different names. I took a > look at the FileView control to see what has been done in there. It > receives Click events, and raises Click events. What inside? It does not > inherit from ListView or similar. Now I understand why it works, but I > don't like it. I think you are confusing the sender and the receiver. These Click events are not all the same. > > Anyway, I went ahead. I put two FileView on the form. They don't raise > KeyPress event. It's getting tiring. FileView and DirView are compound controls, they do not inherit TreeView or whatever directly. This is mandatory for the FileView control, as it has actually two different views inside: a ListView and an IconView. You don't see KeyPress event sent by the inside views, for the same reason a Container does not see the KeyPress events sent by its children. I admit this seems a bit stupid from the outside. > I don't want to rewrite MyFileView > just now (I will do, because I need more functionalities). I only need > to catch Backspace and Enter, so I make a menu voice A menu "voice"? What's that? > which has the > Backspace key as its shortcut. Now the backspace works, but... how the > hell can I tell which control is focused? Application.ActiveControl will tell you. > The only way I found was to > catch the GotFocus and LostFocus events, and track the focus by hand. I > have only three controls, but what about if I had dozens of them? > Grouping them would group all their events, while I am interested in > grouping only GotFocus/LostFocus events. > > To make it short, I succeded in make it work, and passed to the > Enter key. The Enter key should invoke the selected file in one of the > two FileView's. A menu voice has only one shortcut, but the Enter keys > are two (Gambas calls them Enter and Return). Uhm... no way. Then I try > to use the Form_Keypress event, but it does not fire - the controls are > stealing the keys. So, there is no way to do this thing. If a FileView > does not "activate" a file when the user presses Enter, then you can not: > > 1: inherit a new control which does, because you must rename all its > events > 2: use a menu voice to do it, because a menu voice has only one > shortcut; if you want use more keys, no way > 3: use the form KeyPress, which does not fire > > The only way left is to create a new control, and then instantiate a > FileView inside it. This is not inheritance, because you have to > replicate all the things you need: events, properties, methods. KeyPress (and other) events emitted by a control are for its event observer(s), not for itself. To catch them, you need to create an Observer object on the control. You can catch the event before it is raised, or just after. If you catch the event before it is raised (it is the default), then you can stop it if you want. For the FileView control, it is more complex as you have to observe the view, which is the child control of FileView. And that view can change. > > Coming from Delphi, I must say the following: > > Delphi forms have a KeyPreview property. If you set it, then *all* the > keypresses are first passed to the form. The form then decides wether to > ignore the key, or make additional things, to let the key pass, or to > stop it. I think this is possible to implement. > > Delphi containers have an ActiveControl property which tells which > control has the focus. See below. > Moreover, every control has a Focused property > which tells if a specific control has the focus or not. I can implement that too. Maybe I will call it "HasFocus" instead. > The list of > things Delphi has and Gambas doesn't is long, but I don't want to > criticize. You are welcome, as I don't know Delphi at all. > I am really missing keyboard and focus control. It seems that > VisualBasic programmers use the mouse a lot, and neglect keyboards, and > so do many users, so this could be the reason why Gambas seems to do the > same. I admit I personnaly neglicted the keyboard when implementing the DirView and FileView controls, but I don't think so in Gambas itself. > > I don't know Gambas very well, and I could have missed a lot of things. > But it is easy to miss things - in the documentation a "See also" > section in every topic could really help. > > Finally, I must say that I think, and *repeat*, I think, the event > management is wrong or, at least, it is not as flexible as it could be. > Once a control raises event, you can not make it stop. If you group > controls, you group all their events. Once you assign a handler to an > event, you can no more change it. Mmm. Not really. Maybe you should first understand that it works differently in Gambas than in Delphi. I suggest you read the three following documentation pages: http://gambasdoc.org/help/doc/object-model http://gambasdoc.org/help/cat/event http://gambasdoc.org/help/comp/gb/observer > Probably Gambas is too developed to > change things at this point but, for who cares or is courious, I will > explain how events work in Delphi. An event in delphi has an associated > property which contains the address of a routine to launch. For example, > if a control has a Click event, then it has a OnClick property. That > property contains the address of the routine to invoke when the control > wants to "raise" the Click event. The OnClick property is a procedural > type, a thing that does not exist in Gambas. But being a property, the > main program can disable that event by setting that property to NIL > (NULL), or change the handler by setting the property to another value. > It is possible to associate many controls to the same handler, but only > the events we want, not *all* the events of *all* the selected controls. > In fact, events do not exist in delphi, they are simply procedure calls. > Instead of writing: > > raise KeyPress ' Gambas code > > which, I suppose, unleashes a textual search for a public subroutine > named in some correct way, in Delphi one would write: > > if OnKeypress<>NIL then OnKeypress(); // procedural call > > > This paradigm is faster, more sure, more flexible, more easy to > understand. When deriving controls, the derived one can override the > methods of the ancestor, and still call the inherited one. Gambas internally almost does the same thing, except that all methods must be members of a same object, the event observer. You are mixing again the object that raises the event with the object that receives it. Apparently, this concept does not exist in Delphi, or it is not clearly visible. Not really object-oriented... :-) Note that you can make an event observer whose class inherits another one and that reimplements the event handler, and that calls the event handler of its inherited class with the SUPER keyword. And note that the textual search for public event handlers is done when the object is attached only. > Gambas has an > interesting feature which does the opposite: instead of calling the > ancestor method on demand, it can stop it on demand. It is quite the > same, I think. The event propagation has nothing to do with inheritance tree. It is just sent to the "Before" observer objects, the event observer, and then the "After" observer objects. The STOP EVENT instruction immediately stops this algorithm. Regards, -- Benoit Minisini From gambas at ...1... Wed Aug 13 12:39:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 13 Aug 2008 12:39:28 +0200 Subject: [Gambas-user] A Gambas odissey In-Reply-To: <48A2A021.7020701@...1909...> References: <489FF3B1.3030105@...1909...> <6324a42a0808120315q427f206av428a43578ce1b041@...627...> <48A2A021.7020701@...1909...> Message-ID: <200808131239.28663.gambas@...1...> On mercredi 13 ao?t 2008, Doriano Blengino wrote: > Fabien Bodard ha scritto: > >> things missing in DirView, so I wrote my MyDirView the way I wanted. It > >> was easy at first, but then I discovered that it is difficult, or at > >> least not clear, how to move the "Current" cursor. I am not sure why, > >> but it does work by setting the Selected property of an item. > > I derived MyDirView from TreeView, and wrote a ME_KeyPress event to > manage arrow keys and textual search (i.e., you start to write the name > of the directory you want to reach, and MyDirView select that > directory). Beware that your textual search only works in ASCII. You must use UTF-8 String class to deal with the UTF-8 string returned by Key.Text. -- Benoit Minisini From doriano.blengino at ...1909... Wed Aug 13 12:36:21 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 13 Aug 2008 12:36:21 +0200 Subject: [Gambas-user] A Gambas odissey In-Reply-To: <6324a42a0808120353x1c64de9em2ca73e114ff98663@...627...> References: <489FF3B1.3030105@...1909...> <6324a42a0808120315q427f206av428a43578ce1b041@...627...> <6324a42a0808120353x1c64de9em2ca73e114ff98663@...627...> Message-ID: <48A2B925.8020704@...1909...> Fabien Bodard ha scritto: > is this can help you ? > > This a simple demo off event management via objerver object that catch > the event before object. > Ok, it works. But, as you can see in my previous message and the attached source, it was not that my problem. In fact, I already did the same in MyDirView (I suppose this is the only way to enrich events). I have several problems with gambas but, nevertheless, I like it. As far as I have seen until now, it is the only functioning true RAD tool in linux, and it has several nice things in it. For example, the settings[] class is amusing, and there are many other good things. Unfortunately it is still in development, so some features are missing or buggy, like the GTK system; but this is only question of time. Documentation is hermetic sometimes, but it can grow and improve. The only real problem comes from the inheritance from visual basic, I suppose, which, as many other micro$oft products, is tailored to suit a market, and not to do things the right way. This is very dangerous, because a similar product invades the market, cutting away other, perhaps better, competitors. Then it shapes the mind of the users (programmers), so the general culture is polluted too. In this respect, it is a point of distinction that Gambas claims to be "not a clone of visual basic" and, in fact, it is not a clone. But... I could be wrong, I don't know visual basic enough, perhaps it should be better I didn't talk... well, I think event management is wrong. I suppose this is an inheritance from visual basic, like several others. Many of them could be good and, if you don't like them, simply you can avoid them. But others cannot be avoided, and event management is one of them. I am afraid to see gambas collapse because of a inherent flaw. In this very case, I have simply the problem that DirView does not raise the KeyPress event. The first thing you replied to me was "you can rewrite it". Multiply this reply for every control a user wants to use, but also wants to improve, and see where all we will go. To be sure, I just made a test with delphi. I derived a TMyListBox from TListBox, and overrided the KeyPress event: TMyListbox = class(TListBox) procedure keypress(var key: char); override; end; procedure TMyListBox.keypress(var key: char); begin if key=#13 then begin addItem('A item', NIL); exit; end; inherited keypress(key); end; This code snippet creates a widget class, TMyListBox, which is a ListBox that adds an item to the list if the user presses enter (key #13). All the rest is untouched, all the events (Click, DoubleClick, Resize, and so on) function like before. Don't pay too much attention to the verbosity of pascal: it comes from the fact that pascal does not require to have a different file for every different class you want to declare, so every declaration (the keypress procedure, for example) has to be associated to its class. In gambas this example could be something like: ' gambas class file inherits ListBox public sub ME_KeyPress() if key.code=key.enter then me.add("A item") return endif inherited KeyPress ' or "Raise KeyPress", or whatever... end This is the crucial point. In gambas this is not possible. I wanted to derive MyDirView from DirView and only add a couple of things, all the rest was pretty ok. But I was left with two options: 1 - inherit from DirView, and replicate all its events with a different name 2 - inherit from TreeView, rewrite all the file related stuff, and replicate all its events with different names I chose the second option, because I wanted to modify several things, but the real problem is events. If they were transparently raised, unless overridden, the circle would be complete. It would be a quick and trivial job to create personalized controls to suite every need. I know what happended to DirView. The programmer created it from TreeView, and thinked nobody was interested in KeyPress, Expand, and other events from TreeView. On the other hand, implement them would have required writing them one by one, with a different name; certainly this was not appealing... Dear Fabien, I am sorry to write this kind of flaming: someone could interpret it as a complaint. But I think this is an important point to make gambas a much better than it is now. I don't know if Benoit would read this message thread, and I know, as said before, that perhaps gambas is too developed to make this kind of modification. But I would pray the gambas developers to pay attention, and then decide. If I am wrong, I am sorry. I will never raise this argument again. Good day to everybody, and long life to Gambas. From m0e.lnx at ...626... Wed Aug 13 15:06:09 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 13 Aug 2008 08:06:09 -0500 Subject: [Gambas-user] Still jacking with tabstrips properties and adding tabs In-Reply-To: <200808130106.32120.ronstk@...239...> References: <1f1e8c1b0808121452q38f91737gea829a34fdabe1fb@...627...> <200808130106.32120.ronstk@...239...> Message-ID: <1f1e8c1b0808130606y1d88d59s7251bc9d7748207b@...627...> Thanks... i found a way to fix this by declaring an additional integer variable and assigning it's value before the WITH statement. goes like this for i = 0 to array.count - 1 idx = tabstrip1.count - 1 with tabstrip1 .count = .count + 1 .index = idx .text = "New Tab" end with On Tue, Aug 12, 2008 at 6:06 PM, Ron Onstenk wrote: > On Tuesday 12 August 2008, M0E Lnx wrote: >> With tabstrip1 >> .count = .count + 1 ' this works... adds a new tab to the tabstrip >> .index = .count ' This is where the problem is, it keeps saying bad index >> End With >> > > > If you have 1 tab then count=1 and index=0 > > Adding a TAB with .count + 1 gives 2 TAB's. > tab1 index=0, tab2 index=1 so index is 0 based. > the line with the error shoul be .index=.count - 1 > hope this help > > Ron 1st > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Wed Aug 13 17:33:56 2008 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 13 Aug 2008 17:33:56 +0200 Subject: [Gambas-user] Still jacking with tabstrips properties and adding tabs In-Reply-To: <1f1e8c1b0808130606y1d88d59s7251bc9d7748207b@...627...> References: <1f1e8c1b0808121452q38f91737gea829a34fdabe1fb@...627...> <200808130106.32120.ronstk@...239...> <1f1e8c1b0808130606y1d88d59s7251bc9d7748207b@...627...> Message-ID: <200808131733.56527.ronstk@...239...> On Wednesday 13 August 2008, M0E Lnx wrote: > Thanks... i found a way to fix this by declaring an additional integer > variable and assigning it's value before the WITH statement. > > goes like this > > for i = 0 to array.count - 1 > idx = tabstrip1.count - 1 > > with tabstrip1 > .count = .count + 1 > .index = idx > .text = "New Tab" > end with > > > > > On Tue, Aug 12, 2008 at 6:06 PM, Ron Onstenk wrote: > > On Tuesday 12 August 2008, M0E Lnx wrote: > >> With tabstrip1 > >> .count = .count + 1 ' this works... adds a new tab to the tabstrip > >> .index = .count ' This is where the problem is, it keeps saying bad index > >> End With > >> > > > > No need for extra variable or for/next loops. In your first example where you got 'bad index' its just that .count gives the total tabs, the index of the last one equals simple .count-1 Your second example say .index = idx and above that one you said idx = tabstrip1.count - 1. You see it is effective the same? So the only change you had to do was: with tabstrip1 .count = .count + 1 .index = .count - 1 ' <---just adding - 1 .text = "New Tab" end with Ron 1st From doriano.blengino at ...1909... Wed Aug 13 17:40:26 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 13 Aug 2008 17:40:26 +0200 Subject: [Gambas-user] A Gambas odissey In-Reply-To: <200808131236.18879.gambas@...1...> References: <489FF3B1.3030105@...1909...> <200808131236.18879.gambas@...1...> Message-ID: <48A3006A.3080209@...1909...> Benoit Minisini ha scritto: >> I failed, >> instead, in removing all the children of an item, one by one (there is a >> clear() method, but I need to delete them one by one). The "for each ... >> in item.children" does not work; it is not the first time I see similar >> anomalies, especially while stepping the source. >> > > Items are not enumerable, because they are not true objects. > > Instead, you must use the Move* methods that move an internal cursor. Use the > TreeView.Item property to get the item pointed by that internal cursor. > Sorry - it was my mistake. Actually I didn't use "for each", but this: ME.MoveTo(path) DO IF ME.movechild() THEN BREAK ME.Item.Delete ME.MoveTo(path) LOOP The idea is to delete children of Path, one by one. It is this example that does not work, it even dirties the string variable Path. I noticed that stepping the source sometimes has unwanted side effects, which disappear when the program is run normally. And, I see now that it can be written as: DO ME.MoveTo(path) IF ME.movechild() THEN BREAK ME.Item.Delete LOOP >> Writing MyDirView revealed another problem. If in a custom control I >> receive the KeyPress event, I can not re-raise it (stack overflow). >> > If "you" (I think "you" mean "an object A") receives an event from an > object "B", raising it "again" does not mean anything. Only the object "B" > can raise the event again. > > If you mean that the object A is its own event observer, why would it need to > send itself an event? > When writing code, I project myself into the code and think as I was the CPU... :-)) So, "I raise an event" should mean "the object we are talking of raises an event"... And about sending events to itself... why not? Often I set up a timer only to posticipate an action (note: *not* to delay it, only to get out the event handler). For example, I had a problem with deleting a TabStrip from a Button inside it. The TabStrip refused to Delete() because it was not empty; so in the event handler of the Button I set up a timer which, in the next event loop, deletes the TabStrip. The purpose of the timer is not to delay things, but to posticipate them. It is a mean to send an event to itself. > FileView and DirView are compound controls, they do not inherit TreeView or > whatever directly. This is mandatory for the FileView control, as it has > actually two different views inside: a ListView and an IconView. > > You don't see KeyPress event sent by the inside views, for the same reason a > Container does not see the KeyPress events sent by its children. > > I admit this seems a bit stupid from the outside. > I don't understand why DirView does not inherit from TreeView. I looked at the source, and there is nothing that prevents that. A DirView is no less than a TreeView; simply, its items are directory names. A routine to read directory names from file system and put them in the tree could be the only different thing. Look at my file manager application, in the MyDirView class. The only routine which has to do with files is populate(). All the rest is there because of missing things in TreeView, or because I am not a good programmer, or because I am not a good documentation reader. >> I don't want to rewrite MyFileView >> just now (I will do, because I need more functionalities). I only need >> to catch Backspace and Enter, so I make a menu voice >> > > A menu "voice"? What's that? > A menu item, an object of type Menu, which has a Name, a Caption, a Shortcut. Sorry for my naming confusion. > Application.ActiveControl will tell you. > Aaahhhh! Look at http://gambasdoc.org/help/comp/gb/application Just speaking of Delphi, the Oracle of Delphi would help in such cases... if you can not find something in the docs, ask the Oracle... Just joking... >> Delphi forms have a KeyPreview property. If you set it, then *all* the >> keypresses are first passed to the form. The form then decides wether to >> ignore the key, or make additional things, to let the key pass, or to >> stop it. >> > I think this is possible to implement. > There are situations where it can help. >> Moreover, every control has a Focused property >> which tells if a specific control has the focus or not. >> > I can implement that too. Maybe I will call it "HasFocus" instead. > To avoid to write duplicates, could be better think twice. Having Application.ActiveControl already covers this case, perhaps: if Application.ActiveControl = ControlToTestForFocus then ... >> Finally, I must say that I think, and *repeat*, I think, the event >> management is wrong or, at least, it is not as flexible as it could be. >> Once a control raises event, you can not make it stop. If you group >> controls, you group all their events. Once you assign a handler to an >> event, you can no more change it. >> > Mmm. Not really. Maybe you should first understand that it works differently > in Gambas than in Delphi. > > http://gambasdoc.org/help/doc/object-model > http://gambasdoc.org/help/cat/event > http://gambasdoc.org/help/comp/gb/observer > Ok, I read them. The docs do not go deep enough for the speaking we are making now. I learned that, with Object.lock(), you can stop a control to send events. I did not know. Problem is, you disable *all* its events. With Object.Attach() you can change the event names of a control (all the events), not a single event handler. A group of controls can share events - yes: all the events or none of them. You see, and please take this with friendship, this is not what I call "flexible". Looking at DirView source, I see: $bNoEvent = TRUE $hTreeView.Clear ... TreeView_Expand $bNoEvent = FALSE This is a clear symptom of lack of flexibility. You have to circumvent the normal event processing, because it is not flexible enough. To solve this problem, you had: - to declare a variable ($bNoEvent) somewhere in the outer scope - to set/reset that variable (and this is required, because in some point you want to stop the events) - to modify the relevant event handler and make it test $bNoEvent In delphi, the same thing would have reduced to set/reset the TreeView.OnSelect property, i.e., exactly the only thing we wanted. Anyway, this particular case is not important - I solved already similar cases as you did in DirView. But, please, don't tell me I say this because I am used to delphi and not to Gambas. This is true only in part... > You are mixing again the object that raises the event with the object that > receives it. Apparently, this concept does not exist in Delphi, or it is not > clearly visible. Not really object-oriented... :-) > Ah ah ah... Please, please, please... give delphi a try, so you will speak knowing what you are saying. In this discussion, I win 1,5 to 1, because I know delphi and a little gambas, you keep saying you don't know delphi. It is true that you know gambas better than me (and better than everyone else, right?), so may be I win only 1,5 to 1,4... Objects and events are two concepts totally unrelated. Tcl/Tk has event management, and it is not an object language. Turbo pascal was a true object language, and had no events. You say half the truth in saying that the event concept is not clearly visible in delphi. This comes from the fact that delphi is strictly bound to the windows world, where events are called "messages". Delphi manages them perfectly, but they are not the best. The power of delphi is such it can hide this awful thing behind "standard", strong-type checked, parametrized function calls. Excuse me if this is not enough. Messages in windows are records (structs in C), having 4 integers in them. The first integer says what kind of message is, all the rest depends on what type of message you look at. Those integers can contain coordinates, key codes, or be pointers to some string in memory, or even point to some complicated structure (which possibly you have to free, once used...). These integers sometime are break in words, just for fun. These messages are sent to the main procedure of a program, directed to a window handle (in windows, everything is a window). This "WindowProc" parses that record, and dispatches them to the appropriate window. So, for a MouseDown event you receive a wonderful: procedure TForm1.ListBox1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); which has in the header all the information you need, without going to see key.xxx, mouse.xxx (external, unrelated variables). You can not get the "no event data error", in delphi. The LAST variable used in gambas, here is named Sender (the name is more appropriate). Beside the fact that this method is cleaner than in gambas, there is another advantage: you can call/invoke event handlers as they were normal subroutines (and they are in fact). You can not do it in gambas, because the global variables LAST, Key, Mouse are undefined. This also means that you don't need to raise events - you can invoke directly the event handler, if you want. But, for the sake of completeness, I must say that, if you want, you can send messages, and you can send them in two different ways - normal way, or "post" them, which means they are queued and processed in the next event loop. There is also an Idle event, which is missing in gambas (apropos: how about to implement it?). This event is raised when the application is idle - useful for background processing. Delphi is a true object/class language. Gambas is not. How about method overriding, virtual methods, protected methods, default properties, published properties, and the list could continue... but probably this things are unknown for a visual basic programmer (fortunately you know also C++. How events work in C++?). Back on your half truth. Events, as known in gambas, do not exist in delphi. They are simply not needed but, if you want to interface directly with that monster called windows, then you can use messages (which are events). Want to know? Gambas events could be better if they had an associated property to set. Grouping, disabling, intercepting, all this things could be done. Gambas events could be better if they carried event informations along: the pressed key for a keypress, the coordinates, button and shift state for mousedown, and so on. Why gambas does it not? Please tell me. Ok, I am making all the people waste time. I love gambas, and could love it more. This is all I have to say. Nice day to everybody. From m0e.lnx at ...626... Wed Aug 13 18:01:59 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 13 Aug 2008 11:01:59 -0500 Subject: [Gambas-user] Still jacking with tabstrips properties and adding tabs In-Reply-To: <200808131733.56527.ronstk@...239...> References: <1f1e8c1b0808121452q38f91737gea829a34fdabe1fb@...627...> <200808130106.32120.ronstk@...239...> <1f1e8c1b0808130606y1d88d59s7251bc9d7748207b@...627...> <200808131733.56527.ronstk@...239...> Message-ID: <1f1e8c1b0808130901j64427912k24830d5bd42e8785@...627...> I tried that, and for some reason it doesnt work here In my head it always made sense like that, keeps giving me an new tab but sets the .text ("New Tab") property to the one before the last I still dont understand why it does that On Wed, Aug 13, 2008 at 10:33 AM, Ron Onstenk wrote: > On Wednesday 13 August 2008, M0E Lnx wrote: >> Thanks... i found a way to fix this by declaring an additional integer >> variable and assigning it's value before the WITH statement. >> >> goes like this >> >> for i = 0 to array.count - 1 >> idx = tabstrip1.count - 1 >> >> with tabstrip1 >> .count = .count + 1 >> .index = idx >> .text = "New Tab" >> end with >> >> >> >> >> On Tue, Aug 12, 2008 at 6:06 PM, Ron Onstenk wrote: >> > On Tuesday 12 August 2008, M0E Lnx wrote: >> >> With tabstrip1 >> >> .count = .count + 1 ' this works... adds a new tab to the tabstrip >> >> .index = .count ' This is where the problem is, it keeps saying bad index >> >> End With >> >> >> > >> > > > No need for extra variable or for/next loops. > > In your first example where you got 'bad index' its > just that .count gives the total tabs, the index of > the last one equals simple .count-1 > > Your second example say .index = idx and above that one you said > idx = tabstrip1.count - 1. You see it is effective the same? > So the only change you had to do was: > > with tabstrip1 > .count = .count + 1 > .index = .count - 1 ' <---just adding - 1 > .text = "New Tab" > end with > > > Ron 1st > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Aug 13 18:11:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 13 Aug 2008 18:11:13 +0200 Subject: [Gambas-user] A Gambas odissey In-Reply-To: <48A3006A.3080209@...1909...> References: <489FF3B1.3030105@...1909...> <200808131236.18879.gambas@...1...> <48A3006A.3080209@...1909...> Message-ID: <200808131811.13220.gambas@...1...> On mercredi 13 ao?t 2008, Doriano Blengino wrote: > Benoit Minisini ha scritto: > >> I failed, > >> instead, in removing all the children of an item, one by one (there is a > >> clear() method, but I need to delete them one by one). The "for each ... > >> in item.children" does not work; it is not the first time I see similar > >> anomalies, especially while stepping the source. > > > > Items are not enumerable, because they are not true objects. > > > > Instead, you must use the Move* methods that move an internal cursor. Use > > the TreeView.Item property to get the item pointed by that internal > > cursor. > > Sorry - it was my mistake. Actually I didn't use "for each", but this: > > ME.MoveTo(path) > DO > IF ME.movechild() THEN BREAK > ME.Item.Delete > ME.MoveTo(path) > LOOP > > The idea is to delete children of Path, one by one. It is this example > that does not work, it even dirties the string variable Path. I noticed > that stepping the source sometimes has unwanted side effects, which > disappear when the program is run normally. You should elaborate, as these are clearly bugs: stepping the source should always have no side effects (effect for things that depends on time or window activation/deactivation). > And, I see now that it can > be written as: > > DO > ME.MoveTo(path) > IF ME.movechild() THEN BREAK > ME.Item.Delete > LOOP > > >> Writing MyDirView revealed another problem. If in a custom control I > >> receive the KeyPress event, I can not re-raise it (stack overflow). > > > > If "you" (I think "you" mean "an object A") receives an event from an > > object "B", raising it "again" does not mean anything. Only the object > > "B" can raise the event again. > > > > If you mean that the object A is its own event observer, why would it > > need to send itself an event? > > When writing code, I project myself into the code and think as I was the > CPU... :-)) > So, "I raise an event" should mean "the object we are talking of raises > an event"... > > And about sending events to itself... why not? Often I set up a timer > only to posticipate an action (note: *not* to delay it, only to get out > the event handler). For example, I had a problem with deleting a > TabStrip from a Button inside it. The TabStrip refused to Delete() > because it was not empty; so in the event handler of the Button I set up > a timer which, in the next event loop, deletes the TabStrip. > The purpose of the timer is not to delay things, but to posticipate > them. It is a mean to send an event to itself. OK, but "you" are not sending event to "yourself". The event is sent by the timer. > > > FileView and DirView are compound controls, they do not inherit TreeView > > or whatever directly. This is mandatory for the FileView control, as it > > has actually two different views inside: a ListView and an IconView. > > > > You don't see KeyPress event sent by the inside views, for the same > > reason a Container does not see the KeyPress events sent by its children. > > > > I admit this seems a bit stupid from the outside. > > I don't understand why DirView does not inherit from TreeView. I looked > at the source, and there is nothing that prevents that. No. But when DirView was created, (a few years ago!), Observer didn't exist, and it was one of the first control written in Gambas, and was used for debugging the UserControl control. > A DirView is no less than a TreeView; simply, its items are directory > names. A routine to read directory names from file system and put them > in the tree could be the only different thing. > Look at my file manager application, in the MyDirView class. The only > routine which has to do with files is populate(). All the rest is there > because of missing things in TreeView, or because I am not a good > programmer, or because I am not a good documentation reader. > > >> I don't want to rewrite MyFileView > >> just now (I will do, because I need more functionalities). I only need > >> to catch Backspace and Enter, so I make a menu voice > > > > A menu "voice"? What's that? > > A menu item, an object of type Menu, which has a Name, a Caption, a > Shortcut. > Sorry for my naming confusion. > > > Application.ActiveControl will tell you. > > Aaahhhh! Look at http://gambasdoc.org/help/comp/gb/application Application.ActiveControl is implemented in gb.qt, so you are not looking at the right page. A component can reimplement an already existing class by adding methods, properties... This is like inheritance, but by keeping the same name. > > Just speaking of Delphi, the Oracle of Delphi would help in such > cases... if you can not find something in the docs, ask the Oracle... > Just joking... > > >> Delphi forms have a KeyPreview property. If you set it, then *all* the > >> keypresses are first passed to the form. The form then decides wether to > >> ignore the key, or make additional things, to let the key pass, or to > >> stop it. > > > > I think this is possible to implement. > > There are situations where it can help. > > >> Moreover, every control has a Focused property > >> which tells if a specific control has the focus or not. > > > > I can implement that too. Maybe I will call it "HasFocus" instead. > > To avoid to write duplicates, could be better think twice. Having > Application.ActiveControl already covers this case, perhaps: > > if Application.ActiveControl = ControlToTestForFocus then ... > > >> Finally, I must say that I think, and *repeat*, I think, the event > >> management is wrong or, at least, it is not as flexible as it could be. > >> Once a control raises event, you can not make it stop. If you group > >> controls, you group all their events. Once you assign a handler to an > >> event, you can no more change it. > > > > Mmm. Not really. Maybe you should first understand that it works > > differently in Gambas than in Delphi. > > > > http://gambasdoc.org/help/doc/object-model > > http://gambasdoc.org/help/cat/event > > http://gambasdoc.org/help/comp/gb/observer > > Ok, I read them. The docs do not go deep enough for the speaking we are > making now. > I learned that, with Object.lock(), you can stop a control to send > events. I did not know. Problem is, you disable *all* its events. > With Object.Attach() you can change the event names of a control (all > the events), not a single event handler. > A group of controls can share events - yes: all the events or none of them. > You see, and please take this with friendship, this is not what I call > "flexible". It is less flexible than the Delphi way, but I yet think it is enough. > Looking at DirView source, I see: > > $bNoEvent = TRUE > $hTreeView.Clear > ... > TreeView_Expand > $bNoEvent = FALSE > > This is a clear symptom of lack of flexibility. You have to circumvent > the normal event processing, because it is not flexible enough. > To solve this problem, you had: > > - to declare a variable ($bNoEvent) somewhere in the outer scope > - to set/reset that variable (and this is required, because in some > point you want to stop the events) > - to modify the relevant event handler and make it test $bNoEvent > > In delphi, the same thing would have reduced to set/reset the > TreeView.OnSelect property, i.e., exactly the only thing we wanted. OK. But implementing events the same way as Delphi has a cost that is higher than the management of these specific case that are not very common. > Anyway, this particular case is not important - I solved already similar > cases as you did in DirView. > But, please, don't tell me I say this because I am used to delphi and > not to Gambas. This is true only in part... > > > You are mixing again the object that raises the event with the object > > that receives it. Apparently, this concept does not exist in Delphi, or > > it is not clearly visible. Not really object-oriented... :-) > > Ah ah ah... > Please, please, please... give delphi a try, so you will speak knowing > what you are saying. I didn't say that Delphi is not object-oriented. I just said that the concept of event observer is more object-oriented. :-) > In this discussion, I win 1,5 to 1, because I know delphi and a little > gambas, you keep saying you don't know delphi. It is true that you know > gambas better than me (and better than everyone else, right?), so may be > I win only 1,5 to 1,4... > Objects and events are two concepts totally unrelated. Tcl/Tk has event > management, and it is not an object language. Turbo pascal was a true > object language, and had no events. > You say half the truth in saying that the event concept is not clearly > visible in delphi. This comes from the fact that delphi is strictly > bound to the windows world, where events are called "messages". Delphi > manages them perfectly, but they are not the best. The power of delphi > is such it can hide this awful thing behind "standard", strong-type > checked, parametrized function calls. Excuse me if this is not enough. > Messages in windows are records (structs in C), having 4 integers in > them. The first integer says what kind of message is, all the rest > depends on what type of message you look at. Those integers can contain > coordinates, key codes, or be pointers to some string in memory, or even > point to some complicated structure (which possibly you have to free, > once used...). These integers sometime are break in words, just for fun. > These messages are sent to the main procedure of a program, directed to > a window handle (in windows, everything is a window). This "WindowProc" > parses that record, and dispatches them to the appropriate window. So, > for a MouseDown event you receive a wonderful: > > procedure TForm1.ListBox1MouseDown(Sender: TObject; Button: > TMouseButton; Shift: TShiftState; X, Y: Integer); > > which has in the header all the information you need, without going to > see key.xxx, mouse.xxx (external, unrelated variables). > You can not get the "no event data error", in delphi. > The LAST variable used in gambas, here is named Sender (the name is more > appropriate). > Beside the fact that this method is cleaner than in gambas, there is > another advantage: you can call/invoke event handlers as they were > normal subroutines (and they are in fact). You can not do it in gambas, > because the global variables LAST, Key, Mouse are undefined. > This also means that you don't need to raise events - you can invoke > directly the event handler, if you want. This is true for these special events that use static values only. Otherwise event handlers are public methods like any other public methods, and you can call them from anywhere. > But, for the sake of > completeness, I must say that, if you want, you can send messages, and > you can send them in two different ways - normal way, or "post" them, > which means they are queued and processed in the next event loop. There > is also an Idle event, which is missing in gambas (apropos: how about to > implement it?). This event is raised when the application is idle - > useful for background processing. GTK+ has that, but not QT, so I don't think I can do that. > Delphi is a true object/class language. Gambas is not. How about method > overriding, virtual methods, protected methods, default properties, > published properties, and the list could continue... but probably this > things are unknown for a visual basic programmer (fortunately you know > also C++. How events work in C++?). Maybe you should *really* read the documentation pages I told you. Especially this one: http://gambasdoc.org/help/doc/object-model Gambas has method / property overriding, virtual methods. There is no protected method (what for?), and no default property. But there is a default method, enumerators, array accessors... And class overriding: a Gambas component can reimplement and/or extend an already existing class declared in another component. You can even do that in your own project, by using the EXPORT keyword. For example, if you add a class named TextBox in your project, adds the EXPORT keyword to it, this TextBox class will extend and replace the TextBox control. > Back on your half truth. Events, as known in gambas, do not exist in > delphi. They are simply not needed but, if you want to interface > directly with that monster called windows, then you can use messages > (which are events). Gambas events have nothing to do with X11 events, QT events, GTK+ events or Windows events. There are Gambas events. Some of the Gambas events are raised from a internal GUI event (keyboard, mouse, focus), but not all. > Want to know? Gambas events could be better if they had an associated > property to set. Grouping, disabling, intercepting, all this things > could be done. Gambas events could be better if they carried event > informations along: the pressed key for a keypress, the coordinates, > button and shift state for mousedown, and so on. Why gambas does it not? > Please tell me. I admit that Keyboard and Mouse events accessing global structures is not very beautiful. I did that because it was simpler for the programmer, and because I never meet the need for explicitely calling a mouse or keyboard event handler, unless for doing bad things. :-) > > Ok, I am making all the people waste time. > > I love gambas, and could love it more. This is all I have to say. > > Nice day to everybody. > Regards, -- Benoit Minisini From gambas.fr at ...626... Wed Aug 13 18:15:46 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 13 Aug 2008 18:15:46 +0200 Subject: [Gambas-user] A Gambas odissey In-Reply-To: <48A2B925.8020704@...1909...> References: <489FF3B1.3030105@...1909...> <6324a42a0808120315q427f206av428a43578ce1b041@...627...> <6324a42a0808120353x1c64de9em2ca73e114ff98663@...627...> <48A2B925.8020704@...1909...> Message-ID: <6324a42a0808130915q1e0bd926pe69c08d12d6527fb@...627...> 2008/8/13 Doriano Blengino : > Fabien Bodard ha scritto: >> is this can help you ? >> >> This a simple demo off event management via objerver object that catch >> the event before object. >> > > Ok, it works. But, as you can see in my previous message and the > attached source, it was not that my problem. In fact, I already did the > same in MyDirView (I suppose this is the only way to enrich events). > > I have several problems with gambas but, nevertheless, I like it. As far > as I have seen until now, it is the only functioning true RAD tool in > linux, and it has several nice things in it. For example, the settings[] > class is amusing, and there are many other good things. Unfortunately it > is still in development, so some features are missing or buggy, like the > GTK system; but this is only question of time. Documentation is > hermetic sometimes, but it can grow and improve. > > The only real problem comes from the inheritance from visual basic, I > suppose, which, as many other micro$oft products, is tailored to suit a > market, and not to do things the right way. This is very dangerous, > because a similar product invades the market, cutting away other, > perhaps better, competitors. Then it shapes the mind of the users > (programmers), so the general culture is polluted too. > > In this respect, it is a point of distinction that Gambas claims to be > "not a clone of visual basic" and, in fact, it is not a clone. But... I > could be wrong, I don't know visual basic enough, perhaps it should be > better I didn't talk... well, I think event management is wrong. I > suppose this is an inheritance from visual basic, like several others. > Many of them could be good and, if you don't like them, simply you can > avoid them. But others cannot be avoided, and event management is one of > them. I am afraid to see gambas collapse because of a inherent flaw. In > this very case, I have simply the problem that DirView does not raise > the KeyPress event. The first thing you replied to me was "you can > rewrite it". Multiply this reply for every control a user wants to use, > but also wants to improve, and see where all we will go. > > To be sure, I just made a test with delphi. I derived a TMyListBox from > TListBox, and overrided the KeyPress event: > > TMyListbox = class(TListBox) > procedure keypress(var key: char); override; > end; > > procedure TMyListBox.keypress(var key: char); > begin > if key=#13 then begin > addItem('A item', NIL); > exit; > end; > inherited keypress(key); > end; > > This code snippet creates a widget class, TMyListBox, which is a ListBox > that adds an item to the list if the user presses enter (key #13). All > the rest is untouched, all the events (Click, DoubleClick, Resize, and > so on) function like before. Don't pay too much attention to the > verbosity of pascal: it comes from the fact that pascal does not require > to have a different file for every different class you want to declare, > so every declaration (the keypress procedure, for example) has to be > associated to its class. In gambas this example could be something like: > > ' gambas class file > inherits ListBox > > public sub ME_KeyPress() > if key.code=key.enter then > me.add("A item") > return > endif > inherited KeyPress ' or "Raise KeyPress", or whatever... > end > ... :-) You are not listening me ... too closed in your mind ? look : ' gambas class file inherits ListBox Private lstObserver as New observer(ME) as "ME" public sub ME_KeyPress() if key.code=key.enter then me.add("A item") return endif 'not needed >inherited KeyPress ' or "Raise KeyPress", or whatever... in fact this happen before the handler event so by default event is raised 'But you steel can stop it by STOP EVENT keyword :) end > This is the crucial point. In gambas this is not possible. I wanted to > derive MyDirView from DirView and only add a couple of things, all the > rest was pretty ok. But I was left with two options: > > 1 - inherit from DirView, and replicate all its events with a > different name > 2 - inherit from TreeView, rewrite all the file related stuff, and > replicate all its events with different names > > I chose the second option, because I wanted to modify several things, > but the real problem is events. If they were transparently raised, > unless overridden, the circle would be complete. It would be a quick and > trivial job to create personalized controls to suite every need. > > I know what happended to DirView. The programmer created it from > TreeView, and thinked nobody was interested in KeyPress, Expand, and > other events from TreeView. On the other hand, implement them would have > required writing them one by one, with a different name; certainly this > was not appealing... > > Dear Fabien, > I am sorry to write this kind of flaming: someone could interpret it as > a complaint. But I think this is an important point to make gambas a > much better than it is now. I don't know if Benoit would read this > message thread, and I know, as said before, that perhaps gambas is too > developed to make this kind of modification. But I would pray the gambas > developers to pay attention, and then decide. If I am wrong, I am sorry. > I will never raise this argument again. > > Good day to everybody, and long life to Gambas. > > I think you need to learn Object Oriented Language ... delphi like vb is a pseudo OO language. Then learn Gambas better... And for information ... Benoit Minisini know the gambas language better than all of us ..; because he is the creator of it ! So ... listen before repeat the same wrong cristisime (sorry for my english and my not technical language ..; but i'm just a poor french vinegrower.. Regards, Fabien Bodard > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Aug 13 19:10:05 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 13 Aug 2008 19:10:05 +0200 Subject: [Gambas-user] how to edit data in table view In-Reply-To: <306344.29973.qm@...1954...> References: <306344.29973.qm@...1954...> Message-ID: <6324a42a0808131010k1ce00df3lbefa3e07a7a55224@...627...> this way :) I've mad this short exemple for you... and others. But i think i need to make a complete tutorial on gridview and table view. Regards, Fabien Bodard 2008/8/11 Francesco Cisco : > hello, > > how to edit data from tableview cell with double click event??? > > thank you > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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: demotableview-0.0.2.tar.gz Type: application/x-gzip Size: 8771 bytes Desc: not available URL: From doriano.blengino at ...1909... Wed Aug 13 20:02:54 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 13 Aug 2008 20:02:54 +0200 Subject: [Gambas-user] A Gambas odissey In-Reply-To: <200808131811.13220.gambas@...1...> References: <489FF3B1.3030105@...1909...> <200808131236.18879.gambas@...1...> <48A3006A.3080209@...1909...> <200808131811.13220.gambas@...1...> Message-ID: <48A321CE.2010103@...1909...> Benoit Minisini ha scritto: >> ME.MoveTo(path) >> DO >> IF ME.movechild() THEN BREAK >> ME.Item.Delete >> ME.MoveTo(path) >> LOOP >> >> You should elaborate, as these are clearly bugs: stepping the source should >> always have no side effects (effect for things that depends on time or window >> activation/deactivation). >> I tried again the code and it works, even when stepping the source. Sorry for that - may be it was a GTK bug, or may be I did not recreate the same situation. If it happens again, I will elaborate. >> The TabStrip refused to Delete() >> because it was not empty; so in the event handler of the Button I set up >> a timer which, in the next event loop, deletes the TabStrip. >> The purpose of the timer is not to delay things, but to posticipate >> them. It is a mean to send an event to itself. >> > OK, but "you" are not sending event to "yourself". The event is sent by the > timer. > I did not say that by using a timer I send an event to myself, I said this is a workaround for sending an event to myself. And I talked about this situation in response to your statement "it is useless for an object to send events to itself". >> Aaahhhh! Look at http://gambasdoc.org/help/comp/gb/application >> > Application.ActiveControl is implemented in gb.qt, so you are not looking at > the right page. > Touche?. Sorry. > A component can reimplement an already existing class by adding methods, > properties... This is like inheritance, but by keeping the same name. > Again, sorry. May be, then, that gambas lacks classic inheritance? :-) >> I learned that, with Object.lock(), you can stop a control to send >> events. I did not know. Problem is, you disable *all* its events. >> With Object.Attach() you can change the event names of a control (all >> the events), not a single event handler. >> A group of controls can share events - yes: all the events or none of them. >> You see, and please take this with friendship, this is not what I call >> "flexible". >> > It is less flexible than the Delphi way, but I yet think it is enough. > May be, may be. Clearly, if I am used to do certain things, soon or later I find they are missing, if they lack. I take this occasion to say that I messed up things when talking about events, and the impossibility to derive a control from another and simply add what it is missing. These things in gambas work - I just made them in my MyDirView... >> $bNoEvent = TRUE >> $hTreeView.Clear >> ... >> TreeView_Expand >> $bNoEvent = FALSE >> >> In delphi, the same thing would have reduced to set/reset the >> TreeView.OnSelect property, i.e., exactly the only thing we wanted. >> > OK. But implementing events the same way as Delphi has a cost that is higher > than the management of these specific case that are not very common. > Perhaps this is specular to what said before. You find that this situation is not very common, because you don't "search" for it, while I do. About the cost... who can say? I don't see why Delphi should have a higher cost, and you don't see why Gambas should have the higher one. A final trial is impossible, I think; but I also think this is of scarce importance. > I didn't say that Delphi is not object-oriented. I just said that the concept > of event observer is more object-oriented. :-) > I cannot catch the point. Because you use C++, and I do not, you know C++ better than me. Can you briefly explain to me how are events managed in C++? Very briefly? >> because the global variables LAST, Key, Mouse are undefined. >> This also means that you don't need to raise events - you can invoke >> directly the event handler, if you want. >> > This is true for these special events that use static values only. Otherwise > event handlers are public methods like any other public methods, and you can > call them from anywhere. > I will try now to explain how a true event management could be implemented. As far as I know, no "normal" language implements them in this way, but someone could citate Erlang, or Python, or other less procedural languages. I could be wrong, may be there exists a true imperative language that does. I don't know. Let's start with an event handler. If the event handler receives all the parameters it needs, it is perfect, because it does not depend on anything outside its scope. Now, how to pass parameters to an event handler? It is easy to call it directly, like Delphi does. It is simply matter of PUSHing all the values to the stack, and then CALL a subroutine. But also, it is not a true event, because true events have to be queueable. So, if we want to "post" an event, we must construct a record (a struct), containing all the parameters the handler expects, and append that stuff somewhere. At some time later, these data are pushed onto the stack and the handler is called. This is what windows does with its messages, but those messages have all the same image - it is up to the handler to decode them and access correctly the single values. This is awful - a true high level language should not permit this. And, in fact, Delphi does not permit this. It hides this awful thing behind pascal syntax. But, with this syntax, you can not enqueue an event. And, as far as I know, nor gambas can. >> There >> is also an Idle event, which is missing in gambas (apropos: how about to >> implement it?). This event is raised when the application is idle - >> useful for background processing. >> > GTK+ has that, but not QT, so I don't think I can do that. > Perhaps this event could be generated by gambas itself, at the end of the event loop, if it was an "empty" loop (i.e., there were no events, no timers to fire, no repaints...). Note that this Idle event is in some respect in contrast to an event-driven application... especially if the application uses threads. I mean - you need background processing? Then use a thread... but threads are complicated (and, yes, Delphi has true threads, just in case you wonder. And, yes, they are object - again, just in case... :-)). >> Delphi is a true object/class language. Gambas is not. How about method >> overriding, virtual methods, protected methods, default properties, >> published properties, and the list could continue... but probably this >> things are unknown for a visual basic programmer (fortunately you know >> also C++. How events work in C++?). >> > Maybe you should *really* read the documentation pages I told you. Especially > this one: http://gambasdoc.org/help/doc/object-model > Well, I went there again. My compliments for the great simplicity used to implement such a complicated matter. This is one of the things for which gambas can be appreciated. But the documentation is simplified too: no mention of the SUPER keyword (I did a textual search). I found its description using the google search function inside the page. > I admit that Keyboard and Mouse events accessing global structures is not very > beautiful. I did that because it was simpler for the programmer, and because > I never meet the need for explicitely calling a mouse or keyboard event > handler, unless for doing bad things. :-) > Uhm... bad things... may be... In regard to "simpler for the programmer"... again... may be... Best salutations to everybody. From gambas at ...1... Wed Aug 13 21:31:29 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 13 Aug 2008 21:31:29 +0200 Subject: [Gambas-user] Gambas JSON Component In-Reply-To: <976ad9050807280610i576e2980rf320a457bea93448@...627...> References: <976ad9050807280610i576e2980rf320a457bea93448@...627...> Message-ID: <200808132131.29516.gambas@...1...> On lundi 28 juillet 2008, Arief Bayu Purwanto wrote: > Hello, > > I would like to ask, is there someone who has a gambas JSON component? Mmm, no. Do you want to make one? :-) -- Benoit Minisini From ronstk at ...239... Thu Aug 14 02:05:06 2008 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 14 Aug 2008 02:05:06 +0200 Subject: [Gambas-user] Still jacking with tabstrips properties and adding tabs In-Reply-To: <1f1e8c1b0808130901j64427912k24830d5bd42e8785@...627...> References: <1f1e8c1b0808121452q38f91737gea829a34fdabe1fb@...627...> <200808131733.56527.ronstk@...239...> <1f1e8c1b0808130901j64427912k24830d5bd42e8785@...627...> Message-ID: <200808140205.07166.ronstk@...239...> On Wednesday 13 August 2008, M0E Lnx wrote: > I tried that, and for some reason it doesnt work here > In my head it always made sense like that, keeps giving me an new tab > but sets the .text ("New Tab") property to the one before the last > > I still dont understand why it does that > > > > On Wed, Aug 13, 2008 at 10:33 AM, Ron Onstenk wrote: > > On Wednesday 13 August 2008, M0E Lnx wrote: > >> Thanks... i found a way to fix this by declaring an additional integer > >> variable and assigning it's value before the WITH statement. > >> > >> goes like this > >> > >> for i = 0 to array.count - 1 > >> idx = tabstrip1.count - 1 > >> > >> with tabstrip1 > >> .count = .count + 1 > >> .index = idx > >> .text = "New Tab" > >> end with > >> > >> > Very, very strange. Lets asume we have 4 tabs and want to add a 5'th tabstrip1.count should be 4 now idx = tabstrip1.count - 1 ' idx will be set to 3 here with tabstrip1 .count = .count + 1 ' increase 4 to 5 .index = idx ' idx is 3 .text = "New Tab" ' is this on the 4'th tab instead the 5'th ? end with idx should be 3 here, and you do increase the .count for the 5'th tab then the .index for it should be 4 (0 based). Try to add the print instruction idx = tabstrip1.count - 1 ' idx will be set to 3 here with tabstrip1 .count = .count + 1 ' increase 4 to 5 print .count ' i'm currious what you see, should be 5 .index = idx ' idx is 3 but should be 4 (the new last tab index) .text = "New Tab" ' is this on the 4' tab instead the new 5' ? end with If the print .count is wrong (not 5 but other) then the _WITH tabstrip1_ does something strange/wrong. I do suggest to try without the beautifull _WITH_, just once for test ' with tabstrip1 tabstrip1.count = tabstrip1.count + 1 ' from 4 to 5 print tabstrip1.count tabstrip1.index = tabstrip1.count - 1 ' 5 - 1 = 4 tabstrip1.text = "New Tab" ' end with If this works then you may have found a bug in WITH for the handling the properties. Ron 1st From doriano.blengino at ...1909... Thu Aug 14 10:30:13 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 14 Aug 2008 10:30:13 +0200 Subject: [Gambas-user] To Fabien (A Gambas odissey) In-Reply-To: <6324a42a0808130915q1e0bd926pe69c08d12d6527fb@...627...> References: <489FF3B1.3030105@...1909...> <6324a42a0808120315q427f206av428a43578ce1b041@...627...> <6324a42a0808120353x1c64de9em2ca73e114ff98663@...627...> <48A2B925.8020704@...1909...> <6324a42a0808130915q1e0bd926pe69c08d12d6527fb@...627...> Message-ID: <48A3ED15.2080603@...1909...> Fabien Bodard ha scritto: > 2008/8/13 Doriano Blengino : > >> Fabien Bodard ha scritto: >> >>> is this can help you ? >>> >>> This a simple demo off event management via objerver object that catch >>> the event before object. > ... :-) You are not listening me ... too closed in your mind ? > > look : > > > ' gambas class file > inherits ListBox > Private lstObserver as New observer(ME) as "ME" > Sorry Fabien, I really made a lot of mistakes. It's ironic that I made something very similar to your code, a few month ago, in order to test this kind of inheritance. Then I sended the source to Benoit, which commented "I should have used an Observer...". But I used an observer... This is the same case. You sended to me a working example, and I did not notice. You can see the source, if you want. Now that I test it again, it does something strange. It should print in the TextArea "\nClass - enter Try me\nForm Enter Try me", showing that an event traverses first its class, then its parent. Running the program, it only shows the "\nForm Enter Try me", but stepping the source it correctly passes through the two cascading event handlers. It seems that there are two different FMain.taMessages. Surely my fault... > I think you need to learn Object Oriented Language ... delphi like vb > is a pseudo OO language. > Then learn Gambas better... > I sure need to learn. But can you explain to me why delphi is "pseudo OO"? > And for information ... Benoit Minisini know the gambas language > better than all of us ..; because he is the creator of it ! So ... > listen before repeat the same wrong cristisime (sorry for my english > I feel the need to ask to be forgiven again, because I wrote a lot of wrong things (and some truth). It was not criticism, anyway - I told you. I tried to explain what, in my opinion, could have been better for gambas. Then I got totally confused about things I already knew... may be I am getting too old... Anyway, it has been a useful discussion, at least for me... kind of concurrent documentation... :-) Cheers to everybody, Doriano Blengino. -------------- next part -------------- A non-text attachment was scrubbed... Name: newbutton-0.0.2.tar.gz Type: application/gzip Size: 9392 bytes Desc: not available URL: From m0e.lnx at ...626... Thu Aug 14 14:59:07 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 14 Aug 2008 07:59:07 -0500 Subject: [Gambas-user] Still jacking with tabstrips properties and adding tabs In-Reply-To: <200808140205.07166.ronstk@...239...> References: <1f1e8c1b0808121452q38f91737gea829a34fdabe1fb@...627...> <200808131733.56527.ronstk@...239...> <1f1e8c1b0808130901j64427912k24830d5bd42e8785@...627...> <200808140205.07166.ronstk@...239...> Message-ID: <1f1e8c1b0808140559o19072d7ew57d5c1c4f9d233a6@...627...> Here is the code snipplet that I have where the tabs get added to the tabstrip (additional to the existing tabs) http://pastebin.com/m15deb6a5 and this is the complete module (in case that doesn't make sense) http://vinstall-ng.googlecode.com/svn/branches/iVL/MdlLiloOsList.module The method I have now works, but I still dont understand why in the WITH statement if I increate the .count and try to set the index to .count -1 doesn't work.. If a tabstrip has 5 tabs, the last index on there will be 4 do If I add one more, the count will increase to 6 and the total index will increase to 5 I should be able to do .Count - 1 (should always be total tabs - 1). On Wed, Aug 13, 2008 at 7:05 PM, Ron Onstenk wrote: > On Wednesday 13 August 2008, M0E Lnx wrote: >> I tried that, and for some reason it doesnt work here >> In my head it always made sense like that, keeps giving me an new tab >> but sets the .text ("New Tab") property to the one before the last >> >> I still dont understand why it does that >> >> >> >> On Wed, Aug 13, 2008 at 10:33 AM, Ron Onstenk wrote: >> > On Wednesday 13 August 2008, M0E Lnx wrote: >> >> Thanks... i found a way to fix this by declaring an additional integer >> >> variable and assigning it's value before the WITH statement. >> >> >> >> goes like this >> >> >> >> for i = 0 to array.count - 1 >> >> idx = tabstrip1.count - 1 >> >> >> >> with tabstrip1 >> >> .count = .count + 1 >> >> .index = idx >> >> .text = "New Tab" >> >> end with >> >> >> >> >> > > Very, very strange. > Lets asume we have 4 tabs and want to add a 5'th > > tabstrip1.count should be 4 now > > idx = tabstrip1.count - 1 ' idx will be set to 3 here > with tabstrip1 > .count = .count + 1 ' increase 4 to 5 > .index = idx ' idx is 3 > .text = "New Tab" ' is this on the 4'th tab instead the 5'th ? > end with > > idx should be 3 here, and you do increase the .count for the 5'th tab > then the .index for it should be 4 (0 based). > > Try to add the print instruction > > idx = tabstrip1.count - 1 ' idx will be set to 3 here > with tabstrip1 > .count = .count + 1 ' increase 4 to 5 > print .count ' i'm currious what you see, should be 5 > .index = idx ' idx is 3 but should be 4 (the new last tab index) > .text = "New Tab" ' is this on the 4' tab instead the new 5' ? > end with > > If the print .count is wrong (not 5 but other) then the _WITH tabstrip1_ > does something strange/wrong. > > I do suggest to try without the beautifull _WITH_, just once for test > > ' with tabstrip1 > tabstrip1.count = tabstrip1.count + 1 ' from 4 to 5 > print tabstrip1.count > tabstrip1.index = tabstrip1.count - 1 ' 5 - 1 = 4 > tabstrip1.text = "New Tab" > ' end with > > If this works then you may have found a bug in WITH for the handling the properties. > > > Ron 1st > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From francescokm at ...626... Thu Aug 14 16:31:53 2008 From: francescokm at ...626... (Francesco Xavier Kolly Mally) Date: Thu, 14 Aug 2008 10:31:53 -0400 Subject: [Gambas-user] packages for mandriva 2007 Message-ID: <367b4cf70808140731w6e0de7f7nd6a2b4814660c1e5@...627...> to mr. Rob Kudla do you make gambas urpmi packages for mandriva 2007.0.i586 ???? thank you From sourceforge-raindog2 at ...94... Thu Aug 14 17:06:18 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 14 Aug 2008 11:06:18 -0400 Subject: [Gambas-user] packages for mandriva 2007 In-Reply-To: <367b4cf70808140731w6e0de7f7nd6a2b4814660c1e5@...627...> References: <367b4cf70808140731w6e0de7f7nd6a2b4814660c1e5@...627...> Message-ID: <200808141106.18630.sourceforge-raindog2@...94...> On Thursday 14 August 2008 10:31, Francesco Xavier Kolly Mally wrote: > to mr. Rob Kudla > do you make gambas urpmi packages for mandriva 2007.0.i586 ???? I do have a Mandriva 2007.0 machine still kicking around (it'll be wiped and replaced with Ubuntu Hardy in the next few weeks if all goes according to plan) but the newest Gambas I've built for it is something like 1.9.49. I'll try to build a current one and see what happens. Rob From ronstk at ...239... Thu Aug 14 22:45:01 2008 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 14 Aug 2008 22:45:01 +0200 Subject: [Gambas-user] Still jacking with tabstrips properties and adding tabs In-Reply-To: <1f1e8c1b0808140559o19072d7ew57d5c1c4f9d233a6@...627...> References: <1f1e8c1b0808121452q38f91737gea829a34fdabe1fb@...627...> <200808140205.07166.ronstk@...239...> <1f1e8c1b0808140559o19072d7ew57d5c1c4f9d233a6@...627...> Message-ID: <200808142245.01298.ronstk@...239...> On Thursday 14 August 2008, M0E Lnx wrote: > Here is the code snipplet that I have where the tabs get added to the > tabstrip (additional to the existing tabs) > http://pastebin.com/m15deb6a5 > and this is the complete module (in case that doesn't make sense) > http://vinstall-ng.googlecode.com/svn/branches/iVL/MdlLiloOsList.module > Your code snip at pastebin looks good to me. > The method I have now works, but I still dont understand why in the > WITH statement if I increate the .count and try to set the index to > .count -1 doesn't work.. > > If a tabstrip has 5 tabs, the last index on there will be 4 > do If I add one more, the count will increase to 6 and the total index > will increase to 5 > I should be able to do .Count - 1 (should always be total tabs - 1). > This is in my opinion also correct. Why not is to answer by Benoit I think. One question did you try the print .count and was the value correct ? The only thing I do not understand is the line with 'idx = tabstrip1.count - 1' Let asume we call this sub the first time and ther are no tabs. Then count=0 so idx will be -1. Setting in the WITH section the .index=idx should fail because the index never can be negtive. Sorry but I can't help you more then with the suggested code parts, As I understand it does work now but not in the expected logical way. Ron 1st From ronstk at ...239... Thu Aug 14 22:49:05 2008 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 14 Aug 2008 22:49:05 +0200 Subject: [Gambas-user] packages for mandriva 2007 In-Reply-To: <200808141106.18630.sourceforge-raindog2@...94...> References: <367b4cf70808140731w6e0de7f7nd6a2b4814660c1e5@...627...> <200808141106.18630.sourceforge-raindog2@...94...> Message-ID: <200808142249.05294.ronstk@...239...> On Thursday 14 August 2008, Rob wrote: > On Thursday 14 August 2008 10:31, Francesco Xavier Kolly Mally wrote: > > to mr. Rob Kudla > > do you make gambas urpmi packages for mandriva 2007.0.i586 ???? > > I do have a Mandriva 2007.0 machine still kicking around (it'll be > wiped and replaced with Ubuntu Hardy in the next few weeks if all > goes according to plan) but the newest Gambas I've built for it is > something like 1.9.49. I'll try to build a current one and see what > happens. > > Rob > LOL I did play with PClinuxOS-2007 on the work place to teach students. One of the things I like was the hardware manager (network special). I do have now dual boot at home between kubuntu hardy and mandriva 2008.0 Just the oposite :) :) Ron 1st From m0e.lnx at ...626... Thu Aug 14 22:55:49 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 14 Aug 2008 15:55:49 -0500 Subject: [Gambas-user] Still jacking with tabstrips properties and adding tabs In-Reply-To: <200808142245.01298.ronstk@...239...> References: <1f1e8c1b0808121452q38f91737gea829a34fdabe1fb@...627...> <200808140205.07166.ronstk@...239...> <1f1e8c1b0808140559o19072d7ew57d5c1c4f9d233a6@...627...> <200808142245.01298.ronstk@...239...> Message-ID: <1f1e8c1b0808141355o45d1c9ado93989ac7ff34689d@...627...> Well, the code I have now works... I guess as long as it works, but at any rate since the tabstrip is drawn into the form, it always has a .count = > 1 so that should not be a problem anyway but thanks for you help anyway. On Thu, Aug 14, 2008 at 3:45 PM, Ron Onstenk wrote: > On Thursday 14 August 2008, M0E Lnx wrote: >> Here is the code snipplet that I have where the tabs get added to the >> tabstrip (additional to the existing tabs) >> http://pastebin.com/m15deb6a5 >> and this is the complete module (in case that doesn't make sense) >> http://vinstall-ng.googlecode.com/svn/branches/iVL/MdlLiloOsList.module >> > Your code snip at pastebin looks good to me. > >> The method I have now works, but I still dont understand why in the >> WITH statement if I increate the .count and try to set the index to >> .count -1 doesn't work.. >> >> If a tabstrip has 5 tabs, the last index on there will be 4 >> do If I add one more, the count will increase to 6 and the total index >> will increase to 5 >> I should be able to do .Count - 1 (should always be total tabs - 1). >> > This is in my opinion also correct. > > Why not is to answer by Benoit I think. > > One question did you try the print .count and was the value correct ? > > > The only thing I do not understand is the line with 'idx = tabstrip1.count - 1' > Let asume we call this sub the first time and ther are no tabs. > Then count=0 so idx will be -1. > Setting in the WITH section the .index=idx should fail because the index > never can be negtive. > > Sorry but I can't help you more then with the suggested code parts, > As I understand it does work now but not in the expected logical way. > > Ron 1st > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Thu Aug 14 22:57:48 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 14 Aug 2008 16:57:48 -0400 Subject: [Gambas-user] packages for mandriva 2007 In-Reply-To: <200808142249.05294.ronstk@...239...> References: <367b4cf70808140731w6e0de7f7nd6a2b4814660c1e5@...627...> <200808141106.18630.sourceforge-raindog2@...94...> <200808142249.05294.ronstk@...239...> Message-ID: <200808141657.49208.sourceforge-raindog2@...94...> On Thursday 14 August 2008 16:49, Ron Onstenk wrote: > I did play with PClinuxOS-2007 on the work place to teach students. > One of the things I like was the hardware manager (network > special). I do have now dual boot at home between kubuntu hardy and > mandriva 2008.0 Well, I have other machines too (running Mandriva 2007.1, Kubuntu Gutsy, and Mandriva 2008) but he was just asking about the 2007.0 box. It's a stupid thing, but it was my late partner's workstation and I just feel kind of funny about turning it into something else. Since someone still needs packages built it's a good thing I haven't had the nerve yet, I guess. Rob From ariefbayu at ...626... Fri Aug 15 11:57:44 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Fri, 15 Aug 2008 16:57:44 +0700 Subject: [Gambas-user] Next Release of 2.8 Message-ID: <976ad9050808150257m55fa095fr7e70e832c911ab48@...627...> Dear Benoit, I would like to ask when will you release the next update of gambas2? I want to release a new version of my project[1] with Tray Icon support. But the current runtime (2.7) still has a bug. Thank you. Note: No need to rush, I just want to know if there's a scheduled date. If it's still incomplete we can't release it, right? ;) [1]http://code.google.com/p/gplurk/ -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From gambas at ...1... Fri Aug 15 12:00:37 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 15 Aug 2008 12:00:37 +0200 Subject: [Gambas-user] Next Release of 2.8 In-Reply-To: <976ad9050808150257m55fa095fr7e70e832c911ab48@...627...> References: <976ad9050808150257m55fa095fr7e70e832c911ab48@...627...> Message-ID: <200808151200.37594.gambas@...1...> On vendredi 15 ao?t 2008, Arief Bayu Purwanto wrote: > Dear Benoit, > > I would like to ask when will you release the next update of gambas2? > I want to release a new version of my project[1] with Tray Icon support. > But the current runtime (2.7) still has a bug. > > Thank you. > > Note: No need to rush, I just want to know if there's a scheduled date. If > it's still incomplete we can't release it, right? ;) > [1]http://code.google.com/p/gplurk/ I will do it today or tomorrow. Regards, -- Benoit Minisini From gambas at ...1... Fri Aug 15 16:57:11 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 15 Aug 2008 16:57:11 +0200 Subject: [Gambas-user] Release of Gambas 2.8 Message-ID: <200808151657.11898.gambas@...1...> Hi, Finally I got the time to release Gambas 2.8. This version was needed, as Gambas 2.7 crashes when compiled with gcc 4.3. The other important changes are: - When displaying a method signature, the current argument is underlined. - Spanish, French and Russian translations were updated. - IDE shortcuts of different menus should not interfere anymore. - The GTK+ component can deal with font underline and strikeout in many places. - The QT component tray icons are now visible inside Gnome or XFCE. Here is the full ChangeLog: ------------------------------------------------------------------------------- [CONFIGURATION] * BUG: Compiles optimized files in a clean way, so that ./configure --disable-optimization effectively disables optimizations on these files. [DEVELOPMENT ENVIRONMENT] * BUG: Disable the console popup menu when the console editor loses the focus, so that the menu shortcuts do not interfer with the main editor shortcuts. * BUG: Shift+Delete now works correctly in the editor. It does not cut an extra character anymore. * BUG: Disable editor popup-menu as soon as it loses focus. That prevents conflicts between shortcuts. * BUG: Correctly refresh the form editor title when the form is locked. * BUG: Renaming a directory in the project tree now works correctly. * BUG: Fix the title of the search list window. * BUG: Enhance and fix the behaviour of the ESCAPE key. * BUG: Renamed controls like DataControl are correctly refreshed inside the form editor. * BUG: GridView, TableView, TextEdit and Editor are correctly refreshed in the form editor when they are renamed. * BUG: The signature deals correctly with methods having a variable number of arguments. * BUG: Commenting and uncommenting now do not forget the last line if the text was selected from bottom to top. * BUG: Do not abort if you try to open a dead symbolic link. * BUG: When making a package, ignore the charset translation errors while printing the commands output. * NEW: Added a ToolButton in FCommit to clear the editor contents. * NEW: Spanish and French translations updated. * NEW: Russian translation updated. * NEW: Arabic translation updated. * NEW: Add support for DESTDIR variable in autotools packages. See http://www.gnu.org/prep/standards/html_node/DESTDIR.html * NEW: Draw project details in gray. * NEW: Support for hebrew translations. * NEW: Display subversion revision in the About dialog. * NEW: Support for macedonian and albanian translations. * NEW: Enhance the behaviour of the console text search. * NEW: Replaced the '[Modified]' text in the title of a modified form or class by a star. * NEW: The signature popup displays the current argument underlined. * NEW: Support for the Khmer language. [EXAMPLES] * NEW: The AnalogWatch example now displays the time. [INTERPRETER] * BUG: Dir() and RDir() do not leak memory anymore when there is a charset conversion error during the directory parsing. * BUG: Fix the management of standard input, standard output and standard error streams. * BUG: Do not free the classes before the _free() special methods are executed. * BUG: RInStr() third argument is now correctly taken into account in all cases. * BUG: Fix a bug in inheritance with classes written in Gambas overriding symbols whose name begins with 'P', 'R' or 'M'. * BUG: The order of class variables in memory is the same as in class declaration both in 32 bits and 64 bits mode. This is needed if you want to use class as data structures sent to an extern function. * BUG: Observers don't raise events anymore if their parent is invalid, like other objects do. * BUG: Fix base object structure size when compiling with gcc 4.3 on a 64 bits system. * BUG: Fix the interpreter for gcc 4.3. * BUG: Fix the initialization of standard input/output streams. * NEW: Do not warn against circular references when the program aborts because of an error. * NEW: Prints the gcc version used for compiling the interpreter when running 'gbx2 -h'. [COMPILER] * BUG: Fix a compilation warning on FILE_set_chown. * NEW: The error message displayed when you try to return a value in a procedure is more explicit now. [INFORMER] * BUG: The informer now can be run without argument from anywhere. * NEW: When creating all information files in one shot, child processes are used instead of loading all components in the same process. [GB.DB.FORM] * BUG: Define the default size of DataControl and DataCombo controls. [GB.DB.MYSQL] * BUG: Fix a possible crash when reading information on a date field. [GB.DRAW] * BUG: Draw.Begin() now correctly raises an error if the device is a static class that is not drawable. This bug was fixed by using "Draw" for the interface name of drawable objects and "StaticDraw" for the interface name of drawable classes like Printer. [GB.FORM] * BUG: Fix the Expander default event so that clicking twice on it in the form editor does not crash the IDE. * NEW: File dialogs now remember the last used directories in the directory combo-box. * NEW: FileView now display image preview if the image size is up to 64 Kb. * NEW: The ListContainer refreshes itself before raising the Click event. [GB.FORM.MDI] * BUG: When a MDI child window is activated, the focus is set on it unless one of its child control already has the focus. [GB.GTK] * BUG: The Form.Load() method works correctly now. * BUG: Draw.Begin() and DrawingArea Draw event correctly initialize the background and foreground colors now. * BUG: Fix Application.Busy when forms are embedded. * BUG: ComboBox does not raise the Click event anymore when its Text property changes. * BUG: Fix the management of Window Activate and Deactivate events. * BUG: Fix the management of GotFocus and LostFocus events. * BUG: SetFocus is correctly honored when used inside the Open event handler of an embedded form. * BUG: Redesigned the management of Font properties. * BUG: GridView item Font property works correctly now. * BUG: Font Underline and StrikeOut properties were implemented for Label controls, Button controls, GridView cells, and the Draw class. * BUG: Fix the management of the Dialog.Font property. * BUG: Fix the fake transparency of tray icons. * BUG: Initialize correctly the gControl class. * BUG: Draw.Tile now works correctly. * BUG: Fix the vertical alignment management. * BUG: The alignment of a GridView cell with a picture only is correct now. [GB.NET.CURL] * BUG: Fix some bad uses of interpreter API. [GB.NET.SMTP] * BUG: Fix some bugs in quoted-printable encoding and the sending of body data. * BUG: Apparently, a point at the beginning of a quoted-printable line is not allowed. So encode the point in that specific case. [GB.QT] * BUG: DrawingArea whose Background property has been changed does not flicker anymore. * BUG: SetFocus is correctly honored when used inside the Open event handler of an embedded form. * BUG: GridView.Clear now correctly refreshes the GridView. * BUG: Wow! Finally fix TrayIcons so that they are visible inside Gnome and XFCE notification area. * BUG: Menu shortcuts are automatically enabled when the menu is shown. * BUG: Choose the right moc executable when both QT3 and QT4 are installed on the system. * BUG: Fix the system tray icons for KDE 3.5.10. :-) * BUG: The alignment of a GridView cell with a picture only is correct now. [GB.QT.EXT] * BUG: Uses "StaticDraw" to specify the drawing interface of the Printer class. * BUG: Blended procedure separation is now correctly refreshed when the font size changes. * NEW: When the focus is set on an Editor, the cursor is ensured to be visible. [GB.SDL] * BUG: Removed linking against libGL, as libSDL is already linked with it. This fixed gbi segfault on Laurent Carlier's box. ------------------------------------------------------------------------------- Enjoy it! -- Benoit Minisini From gbv at ...1076... Fri Aug 15 20:48:38 2008 From: gbv at ...1076... (Guillermo Ballester Valor) Date: Fri, 15 Aug 2008 18:48:38 +0000 Subject: [Gambas-user] Release of Gambas 2.8 In-Reply-To: <200808151657.11898.gambas@...1...> References: <200808151657.11898.gambas@...1...> Message-ID: <200808151848.39115.gbv@...1076...> El Friday 15 August 2008 14:57:11 Benoit Minisini escribi?: > Hi, > > Finally I got the time to release Gambas 2.8. This version was needed, as > Gambas 2.7 crashes when compiled with gcc 4.3. > > The other important changes are: > > - When displaying a method signature, the current argument is underlined. > > - Spanish, French and Russian translations were updated. > > - IDE shortcuts of different menus should not interfere anymore. > > - The GTK+ component can deal with font underline and strikeout in many > places. > > - The QT component tray icons are now visible inside Gnome or XFCE. > Hi Benoit, Just now I've built the openSUSE 2.8.0 rpms in OpenSUSE Build Service without serious problems. http://download.opensuse.org/repositories/home:/gbvalor/ The only problem still remains is I can't build examples rpm for openSUSE >= 11.0 because of the presence of rpm buildroot path in some files. rpmlint doesn't like this :( . Thanks for your superb job. Guillermo -- Guillermo Ballester Valor gbv at ...1076... http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN From jshackney at ...626... Sat Aug 16 02:04:17 2008 From: jshackney at ...626... (Jason Hackney) Date: Fri, 15 Aug 2008 20:04:17 -0400 Subject: [Gambas-user] Stack Overflow In-Reply-To: <799be1690808151636s4adb5c33lcdc6ce8cd74e8756@...627...> References: <799be1690808151636s4adb5c33lcdc6ce8cd74e8756@...627...> Message-ID: <799be1690808151704x2f9622besf73d56675fbdf322@...627...> > I'm getting a stack overflow error when running the attached application. > I'm not sure how to resolve this. > > Basically, uncomment the code in question (a quick search for "baggage" > will find the section), then on the form that runs, attempt to change the > Baggage text field. What I don't understand is that I basically copied and > pasted Seat 1, ... Seat 8, Baggage. Why am I not getting the problem with > the other fields? > > By the way, I've got Gambas 2.5 (ubuntu) and I'm hoping it's just a problem > with an out-of-date compile. > > Thanks! > -------------- next part -------------- A non-text attachment was scrubbed... Name: gb_project.tar.gz Type: application/x-gzip Size: 23355 bytes Desc: not available URL: From pmd.lotr.gandalf at ...626... Sat Aug 16 11:48:23 2008 From: pmd.lotr.gandalf at ...626... (Pramod Dematagoda) Date: Sat, 16 Aug 2008 15:18:23 +0530 Subject: [Gambas-user] Using flat files in Gambas? Message-ID: <1218880103.21692.5.camel@...1955...> Hello there, I am a new user to both BASIC and GAMBAS, although I did use to use BASIC through Visual Basic before, I've found that interface to be almost nothing compared to GAMBAS. However, I've faced a problem, I need to use flat files for this program I am creating, however the instructions on the web and what I've seen seem to be only for Visual Basic and not for GAMBAS. So what I need to know is, how do I create a flat file for GAMBAS(does it need anything special?), how do I open a flat file using GAMBAS, and how do I read the records in a flat file through GAMBAS and then put that data into labels and input boxes in the program. I hope I was clear:). Regards, Pramod Dematagoda From joshiggins at ...1601... Sat Aug 16 14:25:39 2008 From: joshiggins at ...1601... (joshiggins) Date: Sat, 16 Aug 2008 05:25:39 -0700 (PDT) Subject: [Gambas-user] Embed xfce4 panel into gambas application Message-ID: <19009766.post@...1379...> hi all I'm trying to embed an xfce4 panel into my gambas application but cannot figure out how to do it. I looked at the application embedder example but I do not know what the title of the xfce4 panel window is. any ideas? thanks. -- View this message in context: http://www.nabble.com/Embed-xfce4-panel-into-gambas-application-tp19009766p19009766.html Sent from the gambas-user mailing list archive at Nabble.com. From francescokm at ...626... Sat Aug 16 15:47:19 2008 From: francescokm at ...626... (Francesco Xavier Kolly Mally) Date: Sat, 16 Aug 2008 09:47:19 -0400 Subject: [Gambas-user] ERROR: #49: Message-ID: <367b4cf70808160647me5adb4br13affadd70f4bca0@...627...> can anyone help me with this error??? ERROR: #49: Not a directory: /usr/local/bin/gambas2/.project I use mandriva 2007 and try to install gambas2-2.7.0 thank you From klaine8 at ...626... Sat Aug 16 18:37:00 2008 From: klaine8 at ...626... (Kari Laine) Date: Sat, 16 Aug 2008 19:37:00 +0300 Subject: [Gambas-user] Stack Overflow In-Reply-To: <799be1690808151704x2f9622besf73d56675fbdf322@...627...> References: <799be1690808151636s4adb5c33lcdc6ce8cd74e8756@...627...> <799be1690808151704x2f9622besf73d56675fbdf322@...627...> Message-ID: <61452b690808160937v18367ad4j5a2acc4566ea173d@...627...> Hi, I tested project in Gambas 2.7 SUSE 10.3 x86 and I did not get stack error or any others. Can you be more spesific in what situation the error occurs. I can test it but not fix as I am a humble user :-) Best Regards Kari Laine On Sat, Aug 16, 2008 at 3:04 AM, Jason Hackney wrote: > > I'm getting a stack overflow error when running the attached application. > > I'm not sure how to resolve this. > > > > Basically, uncomment the code in question (a quick search for "baggage" > > will find the section), then on the form that runs, attempt to change the > > Baggage text field. What I don't understand is that I basically copied > and > > pasted Seat 1, ... Seat 8, Baggage. Why am I not getting the problem with > > the other fields? > > > > By the way, I've got Gambas 2.5 (ubuntu) and I'm hoping it's just a > problem > > with an out-of-date compile. > > > > Thanks! > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jshackney at ...626... Sat Aug 16 19:05:05 2008 From: jshackney at ...626... (Jason Hackney) Date: Sat, 16 Aug 2008 13:05:05 -0400 Subject: [Gambas-user] Stack Overflow In-Reply-To: <61452b690808160937v18367ad4j5a2acc4566ea173d@...627...> References: <799be1690808151636s4adb5c33lcdc6ce8cd74e8756@...627...> <799be1690808151704x2f9622besf73d56675fbdf322@...627...> <61452b690808160937v18367ad4j5a2acc4566ea173d@...627...> Message-ID: <799be1690808161005v6c8bdf7y78d4119bd8436e56@...627...> I am a most humble user as well :-) I do appreciate the input from testing however, it can lead me in the right direction. On Sat, Aug 16, 2008 at 12:37 PM, Kari Laine wrote: > Hi, > > I tested project in Gambas 2.7 SUSE 10.3 x86 and I did not get stack error > or any others. Can you be more specific in what situation the error occurs. > I can test it but not fix as I am a humble user :-) > > Best Regards > Kari Laine This is how it breaks: 1) Uncomment the code block dealing with the baggage weight. It starts with: "PUBLIC SUB txtBaggageWeight_Change()" 2) Either compile or run from IDE. 3) On the form that appears, you can tab to the Baggage field or double-click it (select it somehow) and start typing a number (I haven't implemented much error-checking yet, so don't type an alpha character--that will make my application angry :) 4) Gaze in awe at "Stack Overflow". 5) Repeat until the euphoria wears off. I'd really like to know if this works on 2.5, but I have a feeling I'm the last one using 2.5 right now :) Like I mentioned before, the code for Baggage is essentially the same as the 9 fields above it on the form with the appropriate corrections for variable names. So, I think there may be a few problems: 1) Poor code/technique (I am trying to learn this thing after all), which has a very high probability. 2) Some bug in 2.5 that has been squashed by 2.7 (I think this is also very likely) 3) Gremlins. If it's meaningful, my setup is x86, kubuntu, and gb 2.5. I am trying to compile 2.7, but the kde, qt, and odbc libraries are giving me a headache. So I've suspended that plan for now. Cheers! From joshiggins at ...1601... Sat Aug 16 19:13:58 2008 From: joshiggins at ...1601... (joshiggins) Date: Sat, 16 Aug 2008 10:13:58 -0700 (PDT) Subject: [Gambas-user] execute shell command then exit Message-ID: <19013217.post@...1379...> Hello, I need my gambas program to execute another program then close itself, leaving the other program running. Using the SHELL command then Me.Close in the startup form doesnt work, my gambas app keeps on running. I have also tried using EXEC to the same effect. How can this be achieved? Thanks. -- View this message in context: http://www.nabble.com/execute-shell-command-then-exit-tp19013217p19013217.html Sent from the gambas-user mailing list archive at Nabble.com. From david_villalobos_c at ...43... Sat Aug 16 19:14:59 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Sat, 16 Aug 2008 10:14:59 -0700 (PDT) Subject: [Gambas-user] Changes in GB.DB.MYSQL Message-ID: <780453.21766.qm@...1781...> Hi all, As some of you know there will be a new component for MySQL in Gambas 3, I don't know if some of you are using that component right now. But any way I just upload some mayor changes to the component, almost rewrite the entire component, so maybe your projects will not work with the new version, because I change almost all order in parameters, I mean, all the functions names are the same, but the order of the parameters has changed. And I add basic support to triggers. Just to be clear, this mail is for people that is using Gambas 3 and gb.db.msyql. Any comment or questions are welcome. Documentation will be ready soon ( I hope :-) ) Best regards David From gambas at ...1... Sat Aug 16 19:20:44 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 16 Aug 2008 19:20:44 +0200 Subject: [Gambas-user] execute shell command then exit In-Reply-To: <19013217.post@...1379...> References: <19013217.post@...1379...> Message-ID: <200808161920.44462.gambas@...1...> On samedi 16 ao?t 2008, joshiggins wrote: > Hello, > > I need my gambas program to execute another program then close itself, > leaving the other program running. Using the SHELL command then Me.Close in > the startup form doesnt work, my gambas app keeps on running. I have also > tried using EXEC to the same effect. How can this be achieved? > > Thanks. Actually in Unix a parent process should always wait for the termination of its child processes. So by default Gambas programs do that. Moreover, child processes are running in the environment of their parent, so they share things. How is it a problem for you? -- Benoit Minisini From joshiggins at ...1601... Sat Aug 16 19:26:28 2008 From: joshiggins at ...1601... (joshiggins) Date: Sat, 16 Aug 2008 10:26:28 -0700 (PDT) Subject: [Gambas-user] execute shell command then exit In-Reply-To: <200808161920.44462.gambas@...1...> References: <19013217.post@...1379...> <200808161920.44462.gambas@...1...> Message-ID: <19013317.post@...1379...> I'm making a menu replacement which I will call from a launcher on the xfce panel, and if it doesnt exit after starting the selected program it will still be running, then pressing the launcher again will make two menu processes, but only 1 will be visible to the user. This is my problem. My gambas program strangely doesnt exit when the process it started exits. Is this normal behaviour? Benoit Minisini wrote: > > On samedi 16 ao?t 2008, joshiggins wrote: >> Hello, >> >> I need my gambas program to execute another program then close itself, >> leaving the other program running. Using the SHELL command then Me.Close >> in >> the startup form doesnt work, my gambas app keeps on running. I have also >> tried using EXEC to the same effect. How can this be achieved? >> >> Thanks. > > Actually in Unix a parent process should always wait for the termination > of > its child processes. > > So by default Gambas programs do that. > > Moreover, child processes are running in the environment of their parent, > so > they share things. > > How is it a problem for you? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/execute-shell-command-then-exit-tp19013217p19013317.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Aug 16 19:30:41 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 16 Aug 2008 19:30:41 +0200 Subject: [Gambas-user] execute shell command then exit In-Reply-To: <19013317.post@...1379...> References: <19013217.post@...1379...> <200808161920.44462.gambas@...1...> <19013317.post@...1379...> Message-ID: <200808161930.41279.gambas@...1...> On samedi 16 ao?t 2008, joshiggins wrote: > I'm making a menu replacement which I will call from a launcher on the xfce > panel, and if it doesnt exit after starting the selected program it will > still be running, then pressing the launcher again will make two menu > processes, but only 1 will be visible to the user. This is my problem. > > My gambas program strangely doesnt exit when the process it started exits. > Is this normal behaviour? > It depends. As I explained, your launcher is the parent process of the started programs, so it is waiting for the end of its children. When all its children have terminated, the parent will end. Otherwise, it means than some watched file descriptor (a process, a pipe) or a window is already opened in your program. -- Benoit Minisini From klaine8 at ...626... Sat Aug 16 19:58:27 2008 From: klaine8 at ...626... (Kari Laine) Date: Sat, 16 Aug 2008 20:58:27 +0300 Subject: [Gambas-user] Stack Overflow In-Reply-To: <799be1690808161005v6c8bdf7y78d4119bd8436e56@...627...> References: <799be1690808151636s4adb5c33lcdc6ce8cd74e8756@...627...> <799be1690808151704x2f9622besf73d56675fbdf322@...627...> <61452b690808160937v18367ad4j5a2acc4566ea173d@...627...> <799be1690808161005v6c8bdf7y78d4119bd8436e56@...627...> Message-ID: <61452b690808161058w5bfd3496tfa486e5a3fc53065@...627...> On Sat, Aug 16, 2008 at 8:05 PM, Jason Hackney wrote: > I am a most humble user as well :-) I do appreciate the input from testing > however, it can lead me in the right direction. > > > This is how it breaks: > > 1) Uncomment the code block dealing with the baggage weight. It starts > with: > "PUBLIC SUB txtBaggageWeight_Change()" > 2) Either compile or run from IDE. > 3) On the form that appears, you can tab to the Baggage field or > double-click it (select it somehow) and start typing a number (I haven't > implemented much error-checking yet, so don't type an alpha character--that > will make my application angry :) > 4) Gaze in awe at "Stack Overflow". > 5) Repeat until the euphoria wears off. > > I'd really like to know if this works on 2.5, but I have a feeling I'm the > last one using 2.5 right now :) > > Like I mentioned before, the code for Baggage is essentially the same as > the > 9 fields above it on the form with the appropriate corrections for variable > names. > > So, I think there may be a few problems: > > 1) Poor code/technique (I am trying to learn this thing after all), which > has a very high probability. > 2) Some bug in 2.5 that has been squashed by 2.7 (I think this is also very > likely) > 3) Gremlins. > > If it's meaningful, my setup is x86, kubuntu, and gb 2.5. > > I am trying to compile 2.7, but the kde, qt, and odbc libraries are giving > me a headache. So I've suspended that plan for now. > Sorry to confirm that I get also "Stack overflow" with Gambas 2.7 x86 on Suse 10.3. Best Regards Kari Laine From klaine8 at ...626... Sat Aug 16 20:10:27 2008 From: klaine8 at ...626... (Kari Laine) Date: Sat, 16 Aug 2008 21:10:27 +0300 Subject: [Gambas-user] Stack Overflow In-Reply-To: <61452b690808161058w5bfd3496tfa486e5a3fc53065@...627...> References: <799be1690808151636s4adb5c33lcdc6ce8cd74e8756@...627...> <799be1690808151704x2f9622besf73d56675fbdf322@...627...> <61452b690808160937v18367ad4j5a2acc4566ea173d@...627...> <799be1690808161005v6c8bdf7y78d4119bd8436e56@...627...> <61452b690808161058w5bfd3496tfa486e5a3fc53065@...627...> Message-ID: <61452b690808161110u114d4085h61ff0a5b717d23ea@...627...> Hi Jason, I found the problem. It is yours not Benoit's :-) txtBaggageWeight is stored wrong value. The propably right sub is following. PUBLIC SUB txtBaggageWeight_Change() update_weight() txtBaggageWeight.text = hBaggageWeight txtBaggageMoment.text = (hBaggageWeight * Val(lblBaggageArm.text)) / 1000 IF hBaggageWeight > 0 THEN butBaggage.background = Color.RGB(0, 255, 0) ELSE butBaggage.background = Color.RGB(234, 234, 234) ENDIF END Best Regards Kari Laine From kazutaka802 at ...1907... Sat Aug 16 20:54:31 2008 From: kazutaka802 at ...1907... (HARADA Kazutaka) Date: Sun, 17 Aug 2008 03:54:31 +0900 Subject: [Gambas-user] No tray icons displayed with gb.gtk Message-ID: <48A72267.4080007@...1907...> Hi, After upgrading to gambas2-2.8.0, My project coundn't show tray icons in notification area with gb.gtk. It still works fine with gb.qt. I'm using gnome-2.22.3 with gtk2-2.12.11. # Anything changed??? -- -------------------------------------- Kazutaka HARADA e-mail:kazutaka802 at ...1907... -------------------------------------- From joshiggins at ...1601... Sat Aug 16 23:07:45 2008 From: joshiggins at ...1601... (joshiggins) Date: Sat, 16 Aug 2008 14:07:45 -0700 (PDT) Subject: [Gambas-user] load contents of a TreeView from a file Message-ID: <19015149.post@...1379...> Hello. I'm just starting out with gambas and need some help. I have a file formatted as follows: itemkey [SPACE] itemname [SPACE] path/to/icon itemkey1 [SPACE] itemname [SPACE] path/to/icon etc...etc... I need to load this data from a file into a treeview. I figure that I need to load the file and for each line split it up into the 3 parts and add an item to the treeview, then do the same for the next line, and the next etc. I'm completely lost on where to start. The LINE INPUT page on the wiki only inputs the first line. Any suggestions? -- View this message in context: http://www.nabble.com/load-contents-of-a-TreeView-from-a-file-tp19015149p19015149.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Aug 16 23:27:47 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 16 Aug 2008 23:27:47 +0200 Subject: [Gambas-user] No tray icons displayed with gb.gtk In-Reply-To: <48A72267.4080007@...1907...> References: <48A72267.4080007@...1907...> Message-ID: <200808162327.47371.gambas@...1...> On samedi 16 ao?t 2008, HARADA Kazutaka wrote: > Hi, > > After upgrading to gambas2-2.8.0, My project coundn't show > tray icons in notification area with gb.gtk. > > It still works fine with gb.qt. > > I'm using gnome-2.22.3 with gtk2-2.12.11. > > # Anything changed??? Arg. Yes... Did you read the changelog? :-) Which desktop do you use? -- Benoit Minisini From jshackney at ...626... Sun Aug 17 01:54:44 2008 From: jshackney at ...626... (Jason Hackney) Date: Sat, 16 Aug 2008 19:54:44 -0400 Subject: [Gambas-user] Stack Overflow In-Reply-To: <61452b690808161110u114d4085h61ff0a5b717d23ea@...627...> References: <799be1690808151636s4adb5c33lcdc6ce8cd74e8756@...627...> <799be1690808151704x2f9622besf73d56675fbdf322@...627...> <61452b690808160937v18367ad4j5a2acc4566ea173d@...627...> <799be1690808161005v6c8bdf7y78d4119bd8436e56@...627...> <61452b690808161058w5bfd3496tfa486e5a3fc53065@...627...> <61452b690808161110u114d4085h61ff0a5b717d23ea@...627...> Message-ID: <799be1690808161654k5563900bo71e8988e068aba23@...627...> Thank you. Obviously I overlooked that one. Your humble servant ;-) Jason On Sat, Aug 16, 2008 at 2:10 PM, Kari Laine wrote: > Hi Jason, > > I found the problem. It is yours not Benoit's :-) > > txtBaggageWeight is stored wrong value. The propably right sub is > following. From kazutaka802 at ...1907... Sun Aug 17 05:14:46 2008 From: kazutaka802 at ...1907... (HARADA Kazutaka) Date: Sun, 17 Aug 2008 12:14:46 +0900 Subject: [Gambas-user] No tray icons displayed with gb.gtk In-Reply-To: <200808162327.47371.gambas@...1...> References: <48A72267.4080007@...1907...> <200808162327.47371.gambas@...1...> Message-ID: <48A797A6.9030802@...1907...> Benoit Minisini worte: > Arg. Yes... Did you read the changelog? :-) > Hmm... Many canges. > Which desktop do you use? > I'm using Gnome-2.22.3, showing notification area applet in standard panel. I have tested with creating simple project like this, - Create GTK+ graphical application with wizard - Create TrayIcon1 in FMain form - put code in FMain.class PUBLIC SUB Form_Open() PRINT TrayIcon1.Height PRINT TrayIcon1.Width END Then run it, and get following output on console. 22 1 I suppose TrayIcon1.Width should be 22. -- -------------------------------------- Kazutaka HARADA e-mail:kazutaka802 at ...1907... -------------------------------------- From doriano.blengino at ...1909... Sun Aug 17 08:30:14 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 17 Aug 2008 08:30:14 +0200 Subject: [Gambas-user] load contents of a TreeView from a file In-Reply-To: <19015149.post@...1379...> References: <19015149.post@...1379...> Message-ID: <48A7C576.5020007@...1909...> joshiggins ha scritto: > Hello. > > I'm just starting out with gambas and need some help. I have a file > formatted as follows: > > itemkey [SPACE] itemname [SPACE] path/to/icon > itemkey1 [SPACE] itemname [SPACE] path/to/icon etc...etc... > > I need to load this data from a file into a treeview. I figure that I need > to load the file and for each line split it up into the 3 parts and add an > item to the treeview, then do the same for the next line, and the next etc. > I'm completely lost on where to start. The LINE INPUT page on the wiki only > inputs the first line. Any suggestions? > An example from the online help: hFile = OPEN "/etc/hosts" FOR INPUT WHILE NOT Eof(hFile) LINE INPUT #hFile, sOneLine PRINT sOneLine WEND CLOSE #hFile You open the file, then input one line at a time. This is the classic way. Don't forget to close the file (see later). Another method is to load the entire file into a string, with: sString = file.load("/etc/hosts") then you must split this long string into a string[] using something like: sLines = Split(sString, "\n") At this point you have a string[] array you can traverse with "for each": for each sLine in sLines ... ... next Every single line, obtained by either the two methods, must be again splitted in tokes and loaded in the TreeView. About execute command then exit, I had no problems in doing this: shell "cd /usr/local/bin; xterm &" This launches the terminal emulator "xterm" in background. If you exit the application, the xterm stays there. It is true that open files, environment, signals and other thing may be inherited by the child process, but I think this can be solved by the ampersand in the end of the SHELL command. If you need more help, ask again. Salutations, Doriano Blengino. From klaine8 at ...626... Sun Aug 17 12:17:18 2008 From: klaine8 at ...626... (Kari Laine) Date: Sun, 17 Aug 2008 13:17:18 +0300 Subject: [Gambas-user] Using flat files in Gambas? In-Reply-To: <1218880103.21692.5.camel@...1955...> References: <1218880103.21692.5.camel@...1955...> Message-ID: <61452b690808170317n75e373c1l96138a4ad920f772@...627...> Hi Pramod, I made a little example to you how to use flat files. Let me know if you need more examples. I am not very good with Gambas myself but will try to help you. Best Regards Kari Laine On Sat, Aug 16, 2008 at 12:48 PM, Pramod Dematagoda < pmd.lotr.gandalf at ...626...> wrote: > Hello there, I am a new user to both BASIC and GAMBAS, although I did > use to use BASIC through Visual Basic before, I've found that interface > to be almost nothing compared to GAMBAS. However, I've faced a problem, > I need to use flat files for this program I am creating, however the > instructions on the web and what I've seen seem to be only for Visual > Basic and not for GAMBAS. So what I need to know is, how do I create a > flat file for GAMBAS(does it need anything special?), how do I open a > flat file using GAMBAS, and how do I read the records in a flat file > through GAMBAS and then put that data into labels and input boxes in the > program. I hope I was clear:). > > Regards, > Pramod Dematagoda > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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: pramod.tar.gz Type: application/x-gzip Size: 9245 bytes Desc: not available URL: From joshiggins at ...1601... Sun Aug 17 12:38:23 2008 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 17 Aug 2008 11:38:23 +0100 Subject: [Gambas-user] load contents of a TreeView from a file In-Reply-To: <48A7C576.5020007@...1909...> References: <19015149.post@...1379...> <48A7C576.5020007@...1909...> Message-ID: <4247f5440808170338r245ca91fue584e869964c378b@...627...> Thank you very much for the reply. I have got as far as the FOR EACH section, and I have done sItem = Split(sLine, " ") to get another array called sItem with the 3 bits of information I need to add to the TreeView. The problem I'm having is identifying each part of the array. If I shell "echo " & sItem[0] or [1] or [2] I get the right bit of information out on the terminal, but I also get an Out of Bounds error. On Sun, Aug 17, 2008 at 7:30 AM, Doriano Blengino < doriano.blengino at ...1909...> wrote: > joshiggins ha scritto: > > Hello. > > > > I'm just starting out with gambas and need some help. I have a file > > formatted as follows: > > > > itemkey [SPACE] itemname [SPACE] path/to/icon > > itemkey1 [SPACE] itemname [SPACE] path/to/icon etc...etc... > > > > I need to load this data from a file into a treeview. I figure that I > need > > to load the file and for each line split it up into the 3 parts and add > an > > item to the treeview, then do the same for the next line, and the next > etc. > > I'm completely lost on where to start. The LINE INPUT page on the wiki > only > > inputs the first line. Any suggestions? > > > > An example from the online help: > > hFile = OPEN "/etc/hosts" FOR INPUT > > WHILE NOT Eof(hFile) > LINE INPUT #hFile, sOneLine > PRINT sOneLine > WEND > > CLOSE #hFile > > You open the file, then input one line at a time. This is the classic way. > Don't forget to close the file (see later). > > Another method is to load the entire file into a string, with: > > sString = file.load("/etc/hosts") > > then you must split this long string into a string[] using something like: > > sLines = Split(sString, "\n") > > At this point you have a string[] array you can traverse with "for each": > > for each sLine in sLines > ... > ... > next > > Every single line, obtained by either the two methods, must be again > splitted in tokes and loaded in the TreeView. > > About execute command then exit, I had no problems in doing this: > > shell "cd /usr/local/bin; xterm &" > > This launches the terminal emulator "xterm" in background. If you exit > the application, the xterm stays there. > It is true that open files, environment, signals and other thing may be > inherited by the child process, but I think this can be solved by the > ampersand in the end of the SHELL command. > > If you need more help, ask again. > > Salutations, > Doriano Blengino. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From joshiggins at ...1601... Sun Aug 17 12:48:17 2008 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 17 Aug 2008 11:48:17 +0100 Subject: [Gambas-user] load contents of a TreeView from a file In-Reply-To: <4247f5440808170338r245ca91fue584e869964c378b@...627...> References: <19015149.post@...1379...> <48A7C576.5020007@...1909...> <4247f5440808170338r245ca91fue584e869964c378b@...627...> Message-ID: <4247f5440808170348r4a53d6e4mf7302fe5eec05200@...627...> aha! No problem at all. The file I was loading my lines from had an empty newline right at the end. I added a CATCH as a temporary workaround. Thanks for your help! On Sun, Aug 17, 2008 at 11:38 AM, Joshua Higgins wrote: > Thank you very much for the reply. > > I have got as far as the FOR EACH section, and I have done > sItem = Split(sLine, " ") to get another array called sItem with the 3 bits > of information I need to add to the TreeView. The problem I'm having is > identifying each part of the array. If I shell "echo " & sItem[0] or [1] or > [2] I get the right bit of information out on the terminal, but I also get > an Out of Bounds error. > > > On Sun, Aug 17, 2008 at 7:30 AM, Doriano Blengino < > doriano.blengino at ...1909...> wrote: > >> joshiggins ha scritto: >> > Hello. >> > >> > I'm just starting out with gambas and need some help. I have a file >> > formatted as follows: >> > >> > itemkey [SPACE] itemname [SPACE] path/to/icon >> > itemkey1 [SPACE] itemname [SPACE] path/to/icon etc...etc... >> > >> > I need to load this data from a file into a treeview. I figure that I >> need >> > to load the file and for each line split it up into the 3 parts and add >> an >> > item to the treeview, then do the same for the next line, and the next >> etc. >> > I'm completely lost on where to start. The LINE INPUT page on the wiki >> only >> > inputs the first line. Any suggestions? >> > >> >> An example from the online help: >> >> hFile = OPEN "/etc/hosts" FOR INPUT >> >> WHILE NOT Eof(hFile) >> LINE INPUT #hFile, sOneLine >> PRINT sOneLine >> WEND >> >> CLOSE #hFile >> >> You open the file, then input one line at a time. This is the classic way. >> Don't forget to close the file (see later). >> >> Another method is to load the entire file into a string, with: >> >> sString = file.load("/etc/hosts") >> >> then you must split this long string into a string[] using something like: >> >> sLines = Split(sString, "\n") >> >> At this point you have a string[] array you can traverse with "for each": >> >> for each sLine in sLines >> ... >> ... >> next >> >> Every single line, obtained by either the two methods, must be again >> splitted in tokes and loaded in the TreeView. >> >> About execute command then exit, I had no problems in doing this: >> >> shell "cd /usr/local/bin; xterm &" >> >> This launches the terminal emulator "xterm" in background. If you exit >> the application, the xterm stays there. >> It is true that open files, environment, signals and other thing may be >> inherited by the child process, but I think this can be solved by the >> ampersand in the end of the SHELL command. >> >> If you need more help, ask again. >> >> Salutations, >> Doriano Blengino. >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > joshua higgins > >>>>>>------ > -- joshua higgins >>>>>>------ From pmd.lotr.gandalf at ...626... Sun Aug 17 15:46:04 2008 From: pmd.lotr.gandalf at ...626... (Pramod Dematagoda) Date: Sun, 17 Aug 2008 19:16:04 +0530 Subject: [Gambas-user] Gambas-user Digest, Vol 27, Issue 15 In-Reply-To: References: Message-ID: <1218980764.3867.5.camel@...1955...> Hi Kari Laine, Thanks for the example, however I couldn't read it because SF gave me a "File not found" error when trying to download it(Perhaps I may be doing it wrong?), can you send it again? Or if it is something with myself, be gracious enough to point me in the right direction?:) As it is, I am not only new to Gambas, but also to mailing lists themselves:(. Best Regards, Pramod Dematagoda > Date: Sun, 17 Aug 2008 13:17:18 +0300 > From: "Kari Laine" > Subject: Re: [Gambas-user] Using flat files in Gambas? > > Hi Pramod, > > I made a little example to you how to use flat files. Let me know if you > need more examples. I am not very good with Gambas myself but will try to > help you. > > Best Regards > Kari Laine > From doriano.blengino at ...1909... Sun Aug 17 16:44:15 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 17 Aug 2008 16:44:15 +0200 Subject: [Gambas-user] load contents of a TreeView from a file In-Reply-To: <4247f5440808170348r4a53d6e4mf7302fe5eec05200@...627...> References: <19015149.post@...1379...> <48A7C576.5020007@...1909...> <4247f5440808170338r245ca91fue584e869964c378b@...627...> <4247f5440808170348r4a53d6e4mf7302fe5eec05200@...627...> Message-ID: <48A8393F.3060206@...1909...> Joshua Higgins ha scritto: > aha! No problem at all. The file I was loading my lines from had an empty > newline right at the end. I added a CATCH as a temporary workaround. Thanks > for your help! > Good - happy to hear it. I just want to remember you that the PRINT instruction is good to print out things, at least better than SHELL "echo ...". Dynamic arrays have a count property which you can test to see if they contain 3 elements or more or less. And, think that sometimes file names have spaces in them, so the split(...," ",...) could not work. Happy coding. Doriano From garulfounix at ...626... Sun Aug 17 19:45:49 2008 From: garulfounix at ...626... (Garulfo Unix) Date: Sun, 17 Aug 2008 19:45:49 +0200 Subject: [Gambas-user] No tray icons displayed with gb.gtk In-Reply-To: <48A797A6.9030802@...1907...> References: <48A72267.4080007@...1907...> <200808162327.47371.gambas@...1...> <48A797A6.9030802@...1907...> Message-ID: <83453ff10808171045u68e3dc97ie83e4b642fd203e0@...627...> Hello HARADA Kazutaka, I use GNOME 2.22.3 as well, and i'm meeting the same problem. Indeed, there is a problem with the Width property. That's a small bug which will be quickly fixed. Regards, Fran?ois. 2008/8/17 HARADA Kazutaka > Benoit Minisini worte: > > Arg. Yes... Did you read the changelog? :-) > > > Hmm... Many canges. > > Which desktop do you use? > > > I'm using Gnome-2.22.3, showing notification area applet in standard panel. > > I have tested with creating simple project like this, > - Create GTK+ graphical application with wizard > - Create TrayIcon1 in FMain form > - put code in FMain.class > PUBLIC SUB Form_Open() > > PRINT TrayIcon1.Height > PRINT TrayIcon1.Width > > END > > Then run it, and get following output on console. > 22 > 1 > > I suppose TrayIcon1.Width should be 22. > > -- > -------------------------------------- > Kazutaka HARADA > e-mail:kazutaka802 at ...1907... > -------------------------------------- > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Sat Aug 16 14:26:34 2008 From: rterry at ...1946... (richard terry) Date: Sat, 16 Aug 2008 22:26:34 +1000 Subject: [Gambas-user] Help with understanding how not to hard-code paths Message-ID: <200808162226.34602.rterry@...1946...> I've got to the point with my program where I need to remove hard coding references I used when starting to develop the concepts of my program, so I'd like to ask for some advice how to do this, in a couple of situations. 1) When the program runs 2) To do with html I've saved to my database, where I've put checkboxes on a form, by using an image. Probably there is a proper way to do this with html?. e.g in one of my files I end up with this html: Fasting
References: <200808162226.34602.rterry@...1946...> Message-ID: <4247f5440808171653n4fb80f68lecb76cc491f17261@...627...> What I would do in this situation is this. Use a module, say MProgram to store settings like the path to the data for your program in. Inside that module have a public string for the path: PUBLIC path AS STRING. Now all you need to do is ask the user for the path to the data files, and replace all the hard coded links with MProgram.Path & "whatever". As for the html part, now your program can, using MProgram.Path, hard code a correct path into the html. e.g. your program writes "wrote: > I've got to the point with my program where I need to remove hard coding > references I used when starting to develop the concepts of my program, so > I'd > like to ask for some advice how to do this, in a couple of situations. > > 1) When the program runs > > 2) To do with html I've saved to my database, where I've put checkboxes on > a > form, by using an image. Probably there is a proper way to do this with > html?. > > e.g in one of my files I end up with this html: > > NAME=5%image_name%' ALIGN=LEFT WIDTH=15 HEIGHT=15 BORDER=0>Fasting
CLEAR=LEFT> > Which obviously is not much good if I later want to show it on another > machine. > > Any help appreciated, and thanks in advance. > > Richard > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From rterry at ...1946... Mon Aug 18 08:49:08 2008 From: rterry at ...1946... (richard terry) Date: Mon, 18 Aug 2008 16:49:08 +1000 Subject: [Gambas-user] Using Graphs in an application Message-ID: <200808181649.08383.rterry@...1946...> I notice there is a simple demo on drawing a bar chart, but wondered if there was any proper graphing module for gambas? regards Richard From garulfounix at ...626... Mon Aug 18 09:54:09 2008 From: garulfounix at ...626... (Garulfo Unix) Date: Mon, 18 Aug 2008 09:54:09 +0200 Subject: [Gambas-user] Using Graphs in an application In-Reply-To: <200808181649.08383.rterry@...1946...> References: <200808181649.08383.rterry@...1946...> Message-ID: <83453ff10808180054h469a9600j6cde9405695f309e@...627...> Hi Richard, What do you mean about "proper graping module" ? Fran?ois. 2008/8/18 richard terry > I notice there is a simple demo on drawing a bar chart, but wondered if > there > was any proper graphing module for gambas? > > regards > > Richard > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Aug 18 10:47:09 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 18 Aug 2008 10:47:09 +0200 Subject: [Gambas-user] No tray icons displayed with gb.gtk In-Reply-To: <83453ff10808171045u68e3dc97ie83e4b642fd203e0@...627...> References: <48A72267.4080007@...1907...> <48A797A6.9030802@...1907...> <83453ff10808171045u68e3dc97ie83e4b642fd203e0@...627...> Message-ID: <200808181047.09454.gambas@...1...> On dimanche 17 ao?t 2008, Garulfo Unix wrote: > Hello HARADA Kazutaka, > > I use GNOME 2.22.3 as well, and i'm meeting the same problem. > Indeed, there is a problem with the Width property. > > That's a small bug which will be quickly fixed. > > Regards, > > Fran?ois. > The bug is finally fixed in revision #1503. This was not a so small bug... GTK+ is poorly documented, and I had to read its source code to know what to do. But now, icons have the right size, and are fully transparent (bonus). Regards, -- Benoit Minisini From gambas.fr at ...626... Mon Aug 18 12:53:24 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 18 Aug 2008 12:53:24 +0200 Subject: [Gambas-user] Using Graphs in an application In-Reply-To: <83453ff10808180054h469a9600j6cde9405695f309e@...627...> References: <200808181649.08383.rterry@...1946...> <83453ff10808180054h469a9600j6cde9405695f309e@...627...> Message-ID: <6324a42a0808180353o171c72f0sd52a99757d5ace39@...627...> gb.chart... 2008/8/18 Garulfo Unix : > Hi Richard, > > What do you mean about "proper graping module" ? > > Fran?ois. > > 2008/8/18 richard terry > >> I notice there is a simple demo on drawing a bar chart, but wondered if >> there >> was any proper graphing module for gambas? >> >> regards >> >> Richard >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> 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 Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From garulfounix at ...626... Mon Aug 18 13:27:12 2008 From: garulfounix at ...626... (Garulfo Unix) Date: Mon, 18 Aug 2008 13:27:12 +0200 Subject: [Gambas-user] Using Graphs in an application In-Reply-To: <6324a42a0808180353o171c72f0sd52a99757d5ace39@...627...> References: <200808181649.08383.rterry@...1946...> <83453ff10808180054h469a9600j6cde9405695f309e@...627...> <6324a42a0808180353o171c72f0sd52a99757d5ace39@...627...> Message-ID: <83453ff10808180427p42debfacybc4f09f6b915d69e@...627...> Yes, you have the gb.chart component made by ... Fabien himself. However, Fabien didn't made documentations about gb.chart on the official wiki. Fran?ois. 2008/8/18 Fabien Bodard > gb.chart... > > 2008/8/18 Garulfo Unix : > > Hi Richard, > > > > What do you mean about "proper graping module" ? > > > > Fran?ois. > > > > 2008/8/18 richard terry > > > >> I notice there is a simple demo on drawing a bar chart, but wondered if > >> there > >> was any proper graphing module for gambas? > >> > >> regards > >> > >> Richard > >> > >> > ------------------------------------------------------------------------- > >> This SF.Net email is sponsored by the Moblin Your Move Developer's > >> challenge > >> Build the coolest Linux based applications with Moblin SDK & win great > >> prizes > >> Grand prize is a trip for two to an Open Source event anywhere in the > world > >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> _______________________________________________ > >> 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 Moblin Your Move Developer's > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > 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 Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Mon Aug 18 14:58:12 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 18 Aug 2008 07:58:12 -0500 Subject: [Gambas-user] Embed xfce4 panel into gambas application In-Reply-To: <19009766.post@...1379...> References: <19009766.post@...1379...> Message-ID: <1f1e8c1b0808180558m6b53f7c0o39e9c04e8039e84c@...627...> I'm not sure the xfce4 panel returns a title to the desktop... it is not decorated... but you can try looking for xfce4-panel (i haven't used xfce4 in a while, so this may not be accurate) On Sat, Aug 16, 2008 at 7:25 AM, joshiggins wrote: > > hi all > > I'm trying to embed an xfce4 panel into my gambas application but cannot > figure out how to do it. I looked at the application embedder example but I > do not know what the title of the xfce4 panel window is. > > any ideas? > > thanks. > -- > View this message in context: http://www.nabble.com/Embed-xfce4-panel-into-gambas-application-tp19009766p19009766.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From steven at ...1652... Mon Aug 18 15:02:36 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Mon, 18 Aug 2008 15:02:36 +0200 Subject: [Gambas-user] execute shell command then exit In-Reply-To: <200808161930.41279.gambas@...1...> References: <19013217.post@...1379...> <200808161920.44462.gambas@...1...> <19013317.post@...1379...> <200808161930.41279.gambas@...1...> Message-ID: <1219064556.3921.6.camel@...1936...> OOffice does it like this : # execute soffice binary "$sd_prog/$sd_binary" "$@" & trap 'kill -9 $!' TERM wait $! Regads, Steven Le samedi 16 ao?t 2008 ? 19:30 +0200, Benoit Minisini a ?crit : > On samedi 16 ao?t 2008, joshiggins wrote: > > I'm making a menu replacement which I will call from a launcher on the xfce > > panel, and if it doesnt exit after starting the selected program it will > > still be running, then pressing the launcher again will make two menu > > processes, but only 1 will be visible to the user. This is my problem. > > > > My gambas program strangely doesnt exit when the process it started exits. > > Is this normal behaviour? > > > > It depends. As I explained, your launcher is the parent process of the started > programs, so it is waiting for the end of its children. When all its children > have terminated, the parent will end. Otherwise, it means than some watched > file descriptor (a process, a pipe) or a window is already opened in your > program. > From kazutaka802 at ...1907... Mon Aug 18 16:58:10 2008 From: kazutaka802 at ...1907... (HARADA Kazutaka) Date: Mon, 18 Aug 2008 23:58:10 +0900 Subject: [Gambas-user] No tray icons displayed with gb.gtk In-Reply-To: <200808181047.09454.gambas@...1...> References: <48A72267.4080007@...1907...> <48A797A6.9030802@...1907...> <83453ff10808171045u68e3dc97ie83e4b642fd203e0@...627...> <200808181047.09454.gambas@...1...> Message-ID: <48A98E02.9040207@...1907...> Benoit Minisini wrote: > The bug is finally fixed in revision #1503. > This was not a so small bug... GTK+ is poorly documented, and I had to read > its source code to know what to do. But now, icons have the right size, and > are fully transparent (bonus). > I have got the patches from svn revision 1503 and applied it to 2.8.0, Then task tray icon works fine again. Thank you for your excellent work! -- -------------------------------------- Kazutaka HARADA e-mail:kazutaka802 at ...1907... -------------------------------------- From joshiggins at ...1601... Mon Aug 18 20:41:23 2008 From: joshiggins at ...1601... (joshiggins) Date: Mon, 18 Aug 2008 11:41:23 -0700 (PDT) Subject: [Gambas-user] Embed xfce4 panel into gambas application In-Reply-To: <1f1e8c1b0808180558m6b53f7c0o39e9c04e8039e84c@...627...> References: <19009766.post@...1379...> <1f1e8c1b0808180558m6b53f7c0o39e9c04e8039e84c@...627...> Message-ID: <19035717.post@...1379...> Yeah you are right, it is not decorated and does not have a title so i can't embed it :-(( Is the only way to embed a program by its title shown by the window decorator? M0E Lnx wrote: > > I'm not sure the xfce4 panel returns a title to the desktop... it is > not decorated... > > but you can try looking for xfce4-panel (i haven't used xfce4 in a > while, so this may not be accurate) > > On Sat, Aug 16, 2008 at 7:25 AM, joshiggins > wrote: >> >> hi all >> >> I'm trying to embed an xfce4 panel into my gambas application but cannot >> figure out how to do it. I looked at the application embedder example but >> I >> do not know what the title of the xfce4 panel window is. >> >> any ideas? >> >> thanks. >> -- >> View this message in context: >> http://www.nabble.com/Embed-xfce4-panel-into-gambas-application-tp19009766p19009766.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> 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 Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Embed-xfce4-panel-into-gambas-application-tp19009766p19035717.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Aug 18 20:50:08 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 18 Aug 2008 20:50:08 +0200 Subject: [Gambas-user] Embed xfce4 panel into gambas application In-Reply-To: <19035717.post@...1379...> References: <19009766.post@...1379...> <1f1e8c1b0808180558m6b53f7c0o39e9c04e8039e84c@...627...> <19035717.post@...1379...> Message-ID: <200808182050.08725.gambas@...1...> On lundi 18 ao?t 2008, joshiggins wrote: > Yeah you are right, it is not decorated and does not have a title so i > can't embed it :-(( Is the only way to embed a program by its title shown > by the window decorator? > A X11 window can be found from its name (the title), its class and its role, by using the Desktop.Find() method. Use the 'xprop' program to find all properties associated with a window, and look at the WM_NAME, WM_CLASS and WM_WINDOW_ROLE properties Regards, -- Benoit Minisini From joshiggins at ...1601... Mon Aug 18 20:57:32 2008 From: joshiggins at ...1601... (Joshua Higgins) Date: Mon, 18 Aug 2008 19:57:32 +0100 Subject: [Gambas-user] Embed xfce4 panel into gambas application In-Reply-To: <200808182050.08725.gambas@...1...> References: <19009766.post@...1379...> <1f1e8c1b0808180558m6b53f7c0o39e9c04e8039e84c@...627...> <19035717.post@...1379...> <200808182050.08725.gambas@...1...> Message-ID: <4247f5440808181157l2b64e2a2n4b1aa1842569058b@...627...> You'll never guess what the title was. Xfce Panel. :) Thanks again Benoit. On Mon, Aug 18, 2008 at 7:50 PM, Benoit Minisini < gambas at ...1...> wrote: > On lundi 18 ao?t 2008, joshiggins wrote: > > Yeah you are right, it is not decorated and does not have a title so i > > can't embed it :-(( Is the only way to embed a program by its title shown > > by the window decorator? > > > > A X11 window can be found from its name (the title), its class and its > role, > by using the Desktop.Find() method. > > Use the 'xprop' program to find all properties associated with a window, > and > look at the WM_NAME, WM_CLASS and WM_WINDOW_ROLE properties > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From rterry at ...1946... Mon Aug 18 12:01:54 2008 From: rterry at ...1946... (richard terry) Date: Mon, 18 Aug 2008 20:01:54 +1000 Subject: [Gambas-user] Error in gb.Chart (build 1502) Message-ID: <200808182001.54190.rterry@...1946...> I tried to use the gb.chart component and got the error message enclosed. regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: chartcomponent_error.png Type: image/png Size: 33371 bytes Desc: not available URL: From m0e.lnx at ...626... Tue Aug 19 04:02:28 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 18 Aug 2008 21:02:28 -0500 Subject: [Gambas-user] Autoconf tools question Message-ID: <1f1e8c1b0808181902q7833a145rf973b789898914ae@...627...> I've gotten my application to package with the autoconf tools creator from the IDE (very nice (in version 2.8 the DESTDIR is supported)). I have a question How can I make these scripts run additional tests?. My application for instance uses other things such as Python, CMake... etc, how can I make the configure script check for these too? Any help is appreciated Thanks From rterry at ...1946... Tue Aug 19 05:54:15 2008 From: rterry at ...1946... (richard terry) Date: Tue, 19 Aug 2008 13:54:15 +1000 Subject: [Gambas-user] Database manager bug Message-ID: <200808191354.15271.rterry@...1946...> I don't use this ever, but decided to give it a try. It came up with error that it couldn't find a table (which is there because I checked) and then the second time I repeated the action (clicking on the database name in the tree control), it bugged out with the error message below. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: dbmanager_error.png Type: image/png Size: 16525 bytes Desc: not available URL: From rterry at ...1946... Tue Aug 19 06:20:24 2008 From: rterry at ...1946... (richard terry) Date: Tue, 19 Aug 2008 14:20:24 +1000 Subject: [Gambas-user] Propertiers window scroll bar anomaly Message-ID: <200808191420.25109.rterry@...1946...> Not really a bug, but visually odd, but dosn't affect anything. If one has typed in a property and the scrolls the scroll bar, the textbox containing the changed data scrolls up out of the property window Not important, but just thought I'd mention it. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: property_scroll_anomaly.png Type: image/png Size: 15246 bytes Desc: not available URL: From rterry at ...1946... Tue Aug 19 06:38:06 2008 From: rterry at ...1946... (richard terry) Date: Tue, 19 Aug 2008 14:38:06 +1000 Subject: [Gambas-user] Print option for files in IDE Message-ID: <200808191438.06928.rterry@...1946...> Not that one does this very often, but I just wanted to print out one of the modules to paper, and found seemingly no print button. Yes, can open in external editor of course, but I thought perhaps a print option could come in handy. Regards Richard From garulfounix at ...626... Tue Aug 19 10:56:34 2008 From: garulfounix at ...626... (Garulfo Unix) Date: Tue, 19 Aug 2008 10:56:34 +0200 Subject: [Gambas-user] Error in gb.Chart (build 1502) In-Reply-To: <200808182001.54190.rterry@...1946...> References: <200808182001.54190.rterry@...1946...> Message-ID: <83453ff10808190156j3307d201ha2ce9b8f9769eef4@...627...> Hum it's strange, but perhaps Fabien has worked on it recently. Do you use the svn gambas version Richard ? Does the gb.chart example run correctly ? Fran?ois. 2008/8/18 richard terry > I tried to use the gb.chart component and got the error message enclosed. > > regards > > Richard > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From charles at ...1784... Tue Aug 19 11:02:08 2008 From: charles at ...1784... (charlesg) Date: Tue, 19 Aug 2008 02:02:08 -0700 (PDT) Subject: [Gambas-user] Print option for files in IDE In-Reply-To: <200808191438.06928.rterry@...1946...> References: <200808191438.06928.rterry@...1946...> Message-ID: <19046670.post@...1379...> Hi, As usual, I cannot solve your problem but here is a simple program which prints FinePrint/Clickbook type A5 booklets from a Gambas Class file (or any text file I guess). It is W.I.P. and I am working on colour coding the words. It needs htmldoc, psutils and ps2pdf all of which are readily available (at least in Ubuntu). http://www.nabble.com/file/p19046670/booklet-0.0.1.tar.gz booklet-0.0.1.tar.gz -- View this message in context: http://www.nabble.com/Print-option-for-files-in-IDE-tp19044250p19046670.html Sent from the gambas-user mailing list archive at Nabble.com. From charles at ...1784... Tue Aug 19 11:23:12 2008 From: charles at ...1784... (charlesg) Date: Tue, 19 Aug 2008 02:23:12 -0700 (PDT) Subject: [Gambas-user] Print option for files in IDE In-Reply-To: <19046670.post@...1379...> References: <200808191438.06928.rterry@...1946...> <19046670.post@...1379...> Message-ID: <19046970.post@...1379...> oops! you'll have to change /home/charles/... as appropriate. -- View this message in context: http://www.nabble.com/Print-option-for-files-in-IDE-tp19044250p19046970.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Aug 19 12:17:17 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 19 Aug 2008 12:17:17 +0200 Subject: [Gambas-user] Database manager bug In-Reply-To: <200808191354.15271.rterry@...1946...> References: <200808191354.15271.rterry@...1946...> Message-ID: <200808191217.17889.gambas@...1...> On mardi 19 ao?t 2008, richard terry wrote: > I don't use this ever, but decided to give it a try. It came up with error > that it couldn't find a table (which is there because I checked) and then > the second time I repeated the action (clicking on the database name in the > tree control), it bugged out with the error message below. > > Regards > > Richard Which version of gambas do you use? Which database server do you use? What is the name of the table? -- Benoit Minisini From gambas at ...1... Tue Aug 19 13:14:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 19 Aug 2008 13:14:45 +0200 Subject: [Gambas-user] ERROR: #49: In-Reply-To: <367b4cf70808160647me5adb4br13affadd70f4bca0@...627...> References: <367b4cf70808160647me5adb4br13affadd70f4bca0@...627...> Message-ID: <200808191314.45543.gambas@...1...> On samedi 16 ao?t 2008, Francesco Xavier Kolly Mally wrote: > can anyone help me with this error??? > ERROR: #49: Not a directory: /usr/local/bin/gambas2/.project > I use mandriva 2007 and try to install gambas2-2.7.0 > > thank you You should really give more information... -- Benoit Minisini From gambas at ...1... Tue Aug 19 13:21:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 19 Aug 2008 13:21:03 +0200 Subject: [Gambas-user] Propertiers window scroll bar anomaly In-Reply-To: <200808191420.25109.rterry@...1946...> References: <200808191420.25109.rterry@...1946...> Message-ID: <200808191321.03371.gambas@...1...> On mardi 19 ao?t 2008, richard terry wrote: > Not really a bug, but visually odd, but dosn't affect anything. > > If one has typed in a property and the scrolls the scroll bar, the textbox > containing the changed data scrolls up out of the property window > > Not important, but just thought I'd mention it. > > Regards > > Richard OK, fixed in revision 1504. -- Benoit Minisini From garulfounix at ...626... Tue Aug 19 13:27:05 2008 From: garulfounix at ...626... (Garulfo Unix) Date: Tue, 19 Aug 2008 13:27:05 +0200 Subject: [Gambas-user] ERROR: #49: In-Reply-To: <367b4cf70808160647me5adb4br13affadd70f4bca0@...627...> References: <367b4cf70808160647me5adb4br13affadd70f4bca0@...627...> Message-ID: <83453ff10808190427k82123fdrfb85574d9f7c91e0@...627...> How did you installed Gambas 2 ? If you use Mandriva, there is packages for it. The best way is to install it by using your package manager. However, if you meet some problems with these packages, try to compile Gambas. But yes, Beno?t is right, you should give us more information. Fran?ois. 2008/8/16 Francesco Xavier Kolly Mally > can anyone help me with this error??? > ERROR: #49: Not a directory: /usr/local/bin/gambas2/.project > I use mandriva 2007 and try to install gambas2-2.7.0 > > thank you > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Tue Aug 19 23:19:41 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 19 Aug 2008 16:19:41 -0500 Subject: [Gambas-user] Embed xfce4 panel into gambas application In-Reply-To: <4247f5440808181157l2b64e2a2n4b1aa1842569058b@...627...> References: <19009766.post@...1379...> <1f1e8c1b0808180558m6b53f7c0o39e9c04e8039e84c@...627...> <19035717.post@...1379...> <200808182050.08725.gambas@...1...> <4247f5440808181157l2b64e2a2n4b1aa1842569058b@...627...> Message-ID: <1f1e8c1b0808191419o6f00dc25mca5332afdca16a9a@...627...> Ok... so this may be a more accurate method than the window title is in some cases... How does one go about finding and embedding an application using the WM_CLASS property instead of the title? Can someone give me a sample line? Desktop.Find("","APPCLASS") ' Will this work??? On Mon, Aug 18, 2008 at 1:57 PM, Joshua Higgins wrote: > You'll never guess what the title was. Xfce Panel. :) Thanks again Benoit. > > On Mon, Aug 18, 2008 at 7:50 PM, Benoit Minisini < > gambas at ...1...> wrote: > >> On lundi 18 ao?t 2008, joshiggins wrote: >> > Yeah you are right, it is not decorated and does not have a title so i >> > can't embed it :-(( Is the only way to embed a program by its title shown >> > by the window decorator? >> > >> >> A X11 window can be found from its name (the title), its class and its >> role, >> by using the Desktop.Find() method. >> >> Use the 'xprop' program to find all properties associated with a window, >> and >> look at the WM_NAME, WM_CLASS and WM_WINDOW_ROLE properties >> >> Regards, >> >> -- >> Benoit Minisini >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > joshua higgins >>>>>>>------ > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From joshiggins at ...1601... Tue Aug 19 23:38:20 2008 From: joshiggins at ...1601... (Joshua Higgins) Date: Tue, 19 Aug 2008 22:38:20 +0100 Subject: [Gambas-user] Embed xfce4 panel into gambas application In-Reply-To: <1f1e8c1b0808191419o6f00dc25mca5332afdca16a9a@...627...> References: <19009766.post@...1379...> <1f1e8c1b0808180558m6b53f7c0o39e9c04e8039e84c@...627...> <19035717.post@...1379...> <200808182050.08725.gambas@...1...> <4247f5440808181157l2b64e2a2n4b1aa1842569058b@...627...> <1f1e8c1b0808191419o6f00dc25mca5332afdca16a9a@...627...> Message-ID: <4247f5440808191438v30b3a52axef59d0ca99f74fdb@...627...> I'm not familiar with the way window managers and X work, but as Beniot said the only way I know how to find out the WM_CLASS of a window is using xprop. I have found out though whilst trying to get the Xfce Panel embedded is that the WM_CLASS is no more unique than the name. The two Xfce panels have the same name, the same class and the same role, so I can't really see how any of these are more accurate, unless of course your window has no title. As far as I can tell what you wrote should work, I'll have a go when I get back to my Linux box :) --- josh On Tue, Aug 19, 2008 at 10:19 PM, M0E Lnx wrote: > Ok... so this may be a more accurate method than the window title is > in some cases... > > How does one go about finding and embedding an application using the > WM_CLASS property instead of the title? > > Can someone give me a sample line? > > Desktop.Find("","APPCLASS") ' Will this work??? > > > > On Mon, Aug 18, 2008 at 1:57 PM, Joshua Higgins > wrote: > > You'll never guess what the title was. Xfce Panel. :) Thanks again > Benoit. > > > > On Mon, Aug 18, 2008 at 7:50 PM, Benoit Minisini < > > gambas at ...1...> wrote: > > > >> On lundi 18 ao?t 2008, joshiggins wrote: > >> > Yeah you are right, it is not decorated and does not have a title so i > >> > can't embed it :-(( Is the only way to embed a program by its title > shown > >> > by the window decorator? > >> > > >> > >> A X11 window can be found from its name (the title), its class and its > >> role, > >> by using the Desktop.Find() method. > >> > >> Use the 'xprop' program to find all properties associated with a window, > >> and > >> look at the WM_NAME, WM_CLASS and WM_WINDOW_ROLE properties > >> > >> Regards, > >> > >> -- > >> Benoit Minisini > >> > >> > ------------------------------------------------------------------------- > >> This SF.Net email is sponsored by the Moblin Your Move Developer's > >> challenge > >> Build the coolest Linux based applications with Moblin SDK & win great > >> prizes > >> Grand prize is a trip for two to an Open Source event anywhere in the > world > >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > > > -- > > joshua higgins > >>>>>>>------ > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > 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 Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From m0e.lnx at ...626... Tue Aug 19 23:52:58 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 19 Aug 2008 16:52:58 -0500 Subject: [Gambas-user] Embed xfce4 panel into gambas application In-Reply-To: <4247f5440808191438v30b3a52axef59d0ca99f74fdb@...627...> References: <19009766.post@...1379...> <1f1e8c1b0808180558m6b53f7c0o39e9c04e8039e84c@...627...> <19035717.post@...1379...> <200808182050.08725.gambas@...1...> <4247f5440808181157l2b64e2a2n4b1aa1842569058b@...627...> <1f1e8c1b0808191419o6f00dc25mca5332afdca16a9a@...627...> <4247f5440808191438v30b3a52axef59d0ca99f74fdb@...627...> Message-ID: <1f1e8c1b0808191452j79417cb5ta470447a0a57866e@...627...> My problem is that I'm embedding GParted into a gambas application. And the title property of the window changes depending on the type of hard drives present on the box... it could either be "/dev/sda - GParted" or "/dev/hda - GParted" I used xprop as suggested, and came up with the WM_CLASS string of "gpartedbin","Gpartedbin" which seem to me more accurate than my previous method.. But I tried Desktop.Find("","gpartedbin") and desktop.find("","Gpartedbin") and none seem to work I'm guessing my syntax is not correct On Tue, Aug 19, 2008 at 4:38 PM, Joshua Higgins wrote: > I'm not familiar with the way window managers and X work, but as Beniot said > the only way I know how to find out the WM_CLASS of a window is using xprop. > > > I have found out though whilst trying to get the Xfce Panel embedded is that > the WM_CLASS is no more unique than the name. The two Xfce panels have the > same name, the same class and the same role, so I can't really see how any > of these are more accurate, unless of course your window has no title. > > As far as I can tell what you wrote should work, I'll have a go when I get > back to my Linux box :) > > --- josh > > On Tue, Aug 19, 2008 at 10:19 PM, M0E Lnx wrote: > >> Ok... so this may be a more accurate method than the window title is >> in some cases... >> >> How does one go about finding and embedding an application using the >> WM_CLASS property instead of the title? >> >> Can someone give me a sample line? >> >> Desktop.Find("","APPCLASS") ' Will this work??? >> >> >> >> On Mon, Aug 18, 2008 at 1:57 PM, Joshua Higgins >> wrote: >> > You'll never guess what the title was. Xfce Panel. :) Thanks again >> Benoit. >> > >> > On Mon, Aug 18, 2008 at 7:50 PM, Benoit Minisini < >> > gambas at ...1...> wrote: >> > >> >> On lundi 18 ao?t 2008, joshiggins wrote: >> >> > Yeah you are right, it is not decorated and does not have a title so i >> >> > can't embed it :-(( Is the only way to embed a program by its title >> shown >> >> > by the window decorator? >> >> > >> >> >> >> A X11 window can be found from its name (the title), its class and its >> >> role, >> >> by using the Desktop.Find() method. >> >> >> >> Use the 'xprop' program to find all properties associated with a window, >> >> and >> >> look at the WM_NAME, WM_CLASS and WM_WINDOW_ROLE properties >> >> >> >> Regards, >> >> >> >> -- >> >> Benoit Minisini >> >> >> >> >> ------------------------------------------------------------------------- >> >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> >> challenge >> >> Build the coolest Linux based applications with Moblin SDK & win great >> >> prizes >> >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> > >> > >> > -- >> > joshua higgins >> >>>>>>>------ >> > ------------------------------------------------------------------------- >> > This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> > Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> > Grand prize is a trip for two to an Open Source event anywhere in the >> world >> > http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> > _______________________________________________ >> > 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 Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > joshua higgins >>>>>>>------ > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Wed Aug 20 00:11:06 2008 From: rterry at ...1946... (richard terry) Date: Wed, 20 Aug 2008 08:11:06 +1000 Subject: [Gambas-user] Error in gb.Chart (build 1502) In-Reply-To: <83453ff10808190156j3307d201ha2ce9b8f9769eef4@...627...> References: <200808182001.54190.rterry@...1946...> <83453ff10808190156j3307d201ha2ce9b8f9769eef4@...627...> Message-ID: <200808200811.06880.rterry@...1946...> On Tue, 19 Aug 2008 06:56:34 pm Garulfo Unix wrote: > Hum it's strange, but perhaps Fabien has worked on it recently. > Do you use the svn gambas version Richard ? > I build daily from svn currently build 1503 > Does the gb.chart example run correctly ? Yes! surprisingly. > Fran?ois. > > 2008/8/18 richard terry > > > I tried to use the gb.chart component and got the error message enclosed. > > > > regards > > > > Richard > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Wed Aug 20 00:23:03 2008 From: rterry at ...1946... (richard terry) Date: Wed, 20 Aug 2008 08:23:03 +1000 Subject: [Gambas-user] Database manager bug In-Reply-To: <200808191217.17889.gambas@...1...> References: <200808191354.15271.rterry@...1946...> <200808191217.17889.gambas@...1...> Message-ID: <200808200823.03291.rterry@...1946...> On Tue, 19 Aug 2008 08:17:17 pm Benoit Minisini wrote: > On mardi 19 ao?t 2008, richard terry wrote: > > I don't use this ever, but decided to give it a try. It came up with > > error that it couldn't find a table (which is there because I checked) > > and then the second time I repeated the action (clicking on the database > > name in the tree control), it bugged out with the error message below. > > > > Regards > > > > Richard > > Which version of gambas do you use? > > Which database server do you use? > > What is the name of the table? postgresql 8.2.4-2 gambas 1503 and building 1506 as I type. table was just one of mine called lu_instructions, I think the name is irrelevant. If you give me any clues how to, I will try and check it out. Richard From admin at ...1956... Wed Aug 20 02:19:34 2008 From: admin at ...1956... (admin at ...1956...) Date: Tue, 19 Aug 2008 17:19:34 -0700 Subject: [Gambas-user] Gambas All Basic Moderator & Advocates Needed Message-ID: <20080819171934.owjpjdknc4s8w44c@...1958...> List, There is a new web site that is dedicated to All Basic languages. This site is not another support site but a Basic language information and code repository. (see Mission Statement) We need a representative from the Gambas camp to moderate the Gambas board on www.AllBasic.Info and work with the Gambas advocates. Regards, John Spikowski All Basic Administrator http://www.AllBasic.Info Admin at ...1957... From eeller at ...826... Wed Aug 20 07:13:05 2008 From: eeller at ...826... (Eldon Eller) Date: Tue, 19 Aug 2008 22:13:05 -0700 Subject: [Gambas-user] port gambas1 to gambas2 Message-ID: <48ABA7E1.2040501@...826...> I have a couple of old gambas1 projects. When I try to run them in gambas2, I get this message: Version too old. Please recompile. I do not know how to recompile. This surely is in the documentation somewhere, but I could not find it. I would be very grateful if someone could point me in the right direction. Thanks, Eldon From wdahn at ...1000... Wed Aug 20 08:03:00 2008 From: wdahn at ...1000... (Werner) Date: Wed, 20 Aug 2008 14:03:00 +0800 Subject: [Gambas-user] port gambas1 to gambas2 In-Reply-To: <48ABA7E1.2040501@...826...> References: <48ABA7E1.2040501@...826...> Message-ID: <48ABB394.9060207@...1000...> Eldon Eller wrote: > I have a couple of old gambas1 projects. When I try to run them in > gambas2, I get this message: > > Version too old. Please recompile. > > I do not know how to recompile. This surely is in the documentation > somewhere, but I could not find it. I would be very grateful if someone > could point me in the right direction. > > Thanks, Eldon > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Menu "Project" --> "Compile All" From eeller at ...826... Wed Aug 20 09:06:36 2008 From: eeller at ...826... (Eldon Eller) Date: Wed, 20 Aug 2008 00:06:36 -0700 Subject: [Gambas-user] port gambas1 to gambas2 In-Reply-To: <48ABB394.9060207@...1000...> References: <48ABA7E1.2040501@...826...> <48ABB394.9060207@...1000...> Message-ID: <48ABC27C.4050605@...826...> There is no "compile all" under menu --> project. All I have is "make", "refresh", and "properties." Perhaps this is because the projects open up as "read only." Any further suggestions would be appreciated. Thanks, Eldon Werner wrote: > Eldon Eller wrote: > >> I have a couple of old gambas1 projects. When I try to run them in >> gambas2, I get this message: >> >> Version too old. Please recompile. >> >> I do not know how to recompile. This surely is in the documentation >> somewhere, but I could not find it. I would be very grateful if someone >> could point me in the right direction. >> >> Thanks, Eldon >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > Menu "Project" --> "Compile All" > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From wdahn at ...1000... Wed Aug 20 09:41:59 2008 From: wdahn at ...1000... (Werner) Date: Wed, 20 Aug 2008 15:41:59 +0800 Subject: [Gambas-user] port gambas1 to gambas2 In-Reply-To: <48ABC27C.4050605@...826...> References: <48ABA7E1.2040501@...826...> <48ABB394.9060207@...1000...> <48ABC27C.4050605@...826...> Message-ID: <48ABCAC7.6060107@...1000...> > >> Eldon Eller wrote: >> >> >>> I have a couple of old gambas1 projects. When I try to run them in >>> gambas2, I get this message: >>> >>> Version too old. Please recompile. >>> >>> I do not know how to recompile. This surely is in the documentation >>> somewhere, but I could not find it. I would be very grateful if someone >>> could point me in the right direction. >>> >>> Thanks, Eldon >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>> >>> >> Werner wrote: >> Menu "Project" --> "Compile All" >> >> Eldon Eller wrote: > There is no "compile all" under menu --> project. All I have is "make", > "refresh", and "properties." Perhaps this is because the projects open > up as "read only." Any further suggestions would be appreciated. > > Thanks, Eldon > > When I open a read only project I get the same as you describe it. What you need to do is change the permissions of all the files in the project folder to a setting that allows you write access. In KDE, you could right click on the project folder, in the popup menu select "Properties" (the last menu item). A tabbed window appears. Select the "Permissions" tab. Change permissions according to yor need. Don't forget to select the checkbox labelled "Apply changes to all subfolders and their contents." Alternatively, from the command line, type chmod --recursive 666 fullpathtoyourprojectdirectory/* Regards Werner From jh.starcom at ...626... Wed Aug 20 10:01:18 2008 From: jh.starcom at ...626... (Jun Hay) Date: Wed, 20 Aug 2008 15:01:18 +0700 Subject: [Gambas-user] How To Use Gambas Report? Message-ID: <48ABCF4E.3030406@...626...> Dear all, how I can use Gambas Report Desaigner? Please give me some example (w/ database [MySQL]). Thank's a lot.. From joao.pinto at ...1959... Wed Aug 20 12:42:00 2008 From: joao.pinto at ...1959... (=?ISO-8859-1?Q?Jo=E3o_Lu=EDs?=) Date: Wed, 20 Aug 2008 11:42:00 +0100 Subject: [Gambas-user] Duplicated invalid record inserting into MySQL In-Reply-To: <48AB43CA.8020301@...1959...> References: <48AB43CA.8020301@...1959...> Message-ID: Hello, I do not use Gambas for a long time so please apologize if I am doing a newbie mistake. I am trying to build a simple test app to insert into a mysql table. The relevant code: PUBLIC SUB Button1_Click() DIM res AS Result DIM sql AS String DIM name AS String IF TextBox1.Text = "" Message.Warning("Please provide a customer name") RETURN END IF sql = "INSERT INTO customer VALUES(name), ('" & TextBox1.Text & "')" Message.Info("Inserting") res = mDatabase.conn.Exec(sql) END However when I check the table contents after a single insert: mysql> select * from customer; +-------+ | name | +-------+ | | | mokar | +-------+ 2 rows in set (0.00 sec) What am I doing wrong to get that second record ? Thanks -- Jo?o Lu?s Marques Pinto GetDeb Project Manager http://www.getdeb.net http://blog.getdeb.net From christian.gambas at ...626... Wed Aug 20 13:04:06 2008 From: christian.gambas at ...626... (christian.gambas) Date: Wed, 20 Aug 2008 13:04:06 +0200 Subject: [Gambas-user] Duplicated invalid record inserting into MySQL In-Reply-To: References: <48AB43CA.8020301@...1959...> Message-ID: <200808201304.07007.christian.gambas@...626...> Le mercredi 20 ao?t 2008, Jo?o Lu?s a ?crit?: > sql = "INSERT INTO customer VALUES(name), ('" & TextBox1.Text & "')" I think It must be (at least with sqlite) : sql = "INSERT INTO customer (name) VALUES('" & TextBox1.Text & "')" cheers :) From gambas at ...1... Wed Aug 20 13:24:07 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 20 Aug 2008 13:24:07 +0200 Subject: [Gambas-user] Duplicated invalid record inserting into MySQL In-Reply-To: <200808201304.07007.christian.gambas@...626...> References: <48AB43CA.8020301@...1959...> <200808201304.07007.christian.gambas@...626...> Message-ID: <200808201324.07179.gambas@...1...> On mercredi 20 ao?t 2008, christian.gambas wrote: > Le mercredi 20 ao?t 2008, Jo?o Lu?s a ?crit?: > > sql = "INSERT INTO customer VALUES(name), ('" & TextBox1.Text & "')" > > I think It must be (at least with sqlite) : > sql = "INSERT INTO customer (name) VALUES('" & TextBox1.Text & "')" > > cheers :) > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Just a remark - always the same with SQL... Never do something like: sql = "INSERT INTO customer VALUES(name) ('" & TextBox1.Text & "')" res = mDatabase.conn.Exec(sql) But do that: res = mDatabase.conn.Exec("INSERT INTO customer VALUES(name) (&1)", TextBox1.Text) This way, you let Gambas quoting the TextBox1.Text string correctly, and avoid a possible SQL-injection trap in your application! Regards, -- Benoit Minisini From christian.gambas at ...626... Wed Aug 20 15:06:22 2008 From: christian.gambas at ...626... (christian.gambas) Date: Wed, 20 Aug 2008 15:06:22 +0200 Subject: [Gambas-user] Duplicated invalid record inserting into MySQL In-Reply-To: <200808201324.07179.gambas@...1...> References: <48AB43CA.8020301@...1959...> <200808201304.07007.christian.gambas@...626...> <200808201324.07179.gambas@...1...> Message-ID: <200808201506.22621.christian.gambas@...626...> Le mercredi 20 ao?t 2008, Benoit Minisini a ?crit?: > But do that: > > res = mDatabase.conn.Exec("INSERT INTO customer VALUES(name) (&1)", > TextBox1.Text) You're right, Beno?t, one could never be careful enough ! But, just to avoid confusion to Jo?o Lu?s, you surely mean : res = mDatabase.conn.Exec("INSERT INTO customer (name) VALUES(&1)", TextBox1.Text) Regards. From eeller at ...826... Wed Aug 20 19:22:45 2008 From: eeller at ...826... (Eldon Eller) Date: Wed, 20 Aug 2008 10:22:45 -0700 Subject: [Gambas-user] port gambas1 to gambas2 In-Reply-To: <48ABCAC7.6060107@...1000...> References: <48ABA7E1.2040501@...826...> <48ABB394.9060207@...1000...> <48ABC27C.4050605@...826...> <48ABCAC7.6060107@...1000...> Message-ID: <48AC52E5.7090707@...826...> Thank you, Werner. That solved my problem, though for reasons I do not understand, setting permission to 666 prevented me from accessing the files at all. Changing to 777 fixed things. Neither project will run, but that appears to be due to some changes in the language which I should be able to run down and fix. Thanks again for your prompt and helpful replies. EEE Werner wrote: >>> Eldon Eller wrote: >>> >>> >>> >>>> I have a couple of old gambas1 projects. When I try to run them in >>>> gambas2, I get this message: >>>> >>>> Version too old. Please recompile. >>>> >>>> I do not know how to recompile. This surely is in the documentation >>>> somewhere, but I could not find it. I would be very grateful if someone >>>> could point me in the right direction. >>>> >>>> Thanks, Eldon >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>>> Grand prize is a trip for two to an Open Source event anywhere in the world >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>>> >>>> >>>> >>> Werner wrote: >>> > > >>> Menu "Project" --> "Compile All" >>> >>> >>> > Eldon Eller wrote: > >> There is no "compile all" under menu --> project. All I have is "make", >> "refresh", and "properties." Perhaps this is because the projects open >> up as "read only." Any further suggestions would be appreciated. >> >> Thanks, Eldon >> >> >> > When I open a read only project I get the same as you describe it. > > What you need to do is change the permissions of all the files in the > project folder to a setting that allows you write access. > > In KDE, you could right click on the project folder, in the popup menu > select "Properties" (the last menu item). > A tabbed window appears. Select the "Permissions" tab. Change > permissions according to yor need. > Don't forget to select the checkbox labelled > "Apply changes to all subfolders and their contents." > > Alternatively, from the command line, type > chmod --recursive 666 fullpathtoyourprojectdirectory/* > > Regards > Werner > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From joao.pinto at ...1959... Wed Aug 20 20:06:10 2008 From: joao.pinto at ...1959... (=?ISO-8859-1?Q?Jo=E3o_Lu=EDs_Marques_Pinto?=) Date: Wed, 20 Aug 2008 19:06:10 +0100 Subject: [Gambas-user] Duplicated invalid record inserting into MySQL In-Reply-To: <200808201506.22621.christian.gambas@...626...> References: <48AB43CA.8020301@...1959...> <200808201304.07007.christian.gambas@...626...> <200808201324.07179.gambas@...1...> <200808201506.22621.christian.gambas@...626...> Message-ID: <48AC5D12.5040901@...1959...> christian.gambas wrote: > Le mercredi 20 ao?t 2008, Benoit Minisini a ?crit : > >> But do that: >> >> res = mDatabase.conn.Exec("INSERT INTO customer VALUES(name) (&1)", >> TextBox1.Text) >> > > You're right, Beno?t, one could never be careful enough ! > > But, just to avoid confusion to Jo?o Lu?s, you surely mean : > res = mDatabase.conn.Exec("INSERT INTO customer (name) VALUES(&1)", > TextBox1.Text) > > Regards. > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Hello, It was my error after all :) I was going to research how to the escape the strings now, thanks for the help in advance. Best regards, -- Jo?o Lu?s Marques Pinto GetDeb Project Manager http://www.getdeb.net http://blog.getdeb.net From joshiggins at ...1601... Wed Aug 20 21:24:57 2008 From: joshiggins at ...1601... (Joshua Higgins) Date: Wed, 20 Aug 2008 20:24:57 +0100 Subject: [Gambas-user] Embed xfce4 panel into gambas application In-Reply-To: <1f1e8c1b0808191452j79417cb5ta470447a0a57866e@...627...> References: <19009766.post@...1379...> <1f1e8c1b0808180558m6b53f7c0o39e9c04e8039e84c@...627...> <19035717.post@...1379...> <200808182050.08725.gambas@...1...> <4247f5440808181157l2b64e2a2n4b1aa1842569058b@...627...> <1f1e8c1b0808191419o6f00dc25mca5332afdca16a9a@...627...> <4247f5440808191438v30b3a52axef59d0ca99f74fdb@...627...> <1f1e8c1b0808191452j79417cb5ta470447a0a57866e@...627...> Message-ID: <4247f5440808201224n215f49f2tadb2cc49fbf6ce6@...627...> Aaah... I see now why you need something other than the title. I tried your syntax and it didn't work, but I can't figure out the correct syntax from the help files. Anyone familiar with embedders? On Tue, Aug 19, 2008 at 10:52 PM, M0E Lnx wrote: > My problem is that I'm embedding GParted into a gambas application. > And the title property of the window changes depending on the type of > hard drives present on the box... it could either be "/dev/sda - > GParted" or "/dev/hda - GParted" > > I used xprop as suggested, and came up with the WM_CLASS string of > "gpartedbin","Gpartedbin" which seem to me more accurate than my > previous method.. > > But I tried Desktop.Find("","gpartedbin") and > desktop.find("","Gpartedbin") and none seem to work > > I'm guessing my syntax is not correct > > On Tue, Aug 19, 2008 at 4:38 PM, Joshua Higgins > wrote: > > I'm not familiar with the way window managers and X work, but as Beniot > said > > the only way I know how to find out the WM_CLASS of a window is using > xprop. > > > > > > I have found out though whilst trying to get the Xfce Panel embedded is > that > > the WM_CLASS is no more unique than the name. The two Xfce panels have > the > > same name, the same class and the same role, so I can't really see how > any > > of these are more accurate, unless of course your window has no title. > > > > As far as I can tell what you wrote should work, I'll have a go when I > get > > back to my Linux box :) > > > > --- josh > > > > On Tue, Aug 19, 2008 at 10:19 PM, M0E Lnx wrote: > > > >> Ok... so this may be a more accurate method than the window title is > >> in some cases... > >> > >> How does one go about finding and embedding an application using the > >> WM_CLASS property instead of the title? > >> > >> Can someone give me a sample line? > >> > >> Desktop.Find("","APPCLASS") ' Will this work??? > >> > >> > >> > >> On Mon, Aug 18, 2008 at 1:57 PM, Joshua Higgins > >> wrote: > >> > You'll never guess what the title was. Xfce Panel. :) Thanks again > >> Benoit. > >> > > >> > On Mon, Aug 18, 2008 at 7:50 PM, Benoit Minisini < > >> > gambas at ...1...> wrote: > >> > > >> >> On lundi 18 ao?t 2008, joshiggins wrote: > >> >> > Yeah you are right, it is not decorated and does not have a title > so i > >> >> > can't embed it :-(( Is the only way to embed a program by its title > >> shown > >> >> > by the window decorator? > >> >> > > >> >> > >> >> A X11 window can be found from its name (the title), its class and > its > >> >> role, > >> >> by using the Desktop.Find() method. > >> >> > >> >> Use the 'xprop' program to find all properties associated with a > window, > >> >> and > >> >> look at the WM_NAME, WM_CLASS and WM_WINDOW_ROLE properties > >> >> > >> >> Regards, > >> >> > >> >> -- > >> >> Benoit Minisini > >> >> > >> >> > >> > ------------------------------------------------------------------------- > >> >> This SF.Net email is sponsored by the Moblin Your Move Developer's > >> >> challenge > >> >> Build the coolest Linux based applications with Moblin SDK & win > great > >> >> prizes > >> >> Grand prize is a trip for two to an Open Source event anywhere in the > >> world > >> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> >> _______________________________________________ > >> >> Gambas-user mailing list > >> >> Gambas-user at lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> > > >> > > >> > > >> > -- > >> > joshua higgins > >> >>>>>>>------ > >> > > ------------------------------------------------------------------------- > >> > This SF.Net email is sponsored by the Moblin Your Move Developer's > >> challenge > >> > Build the coolest Linux based applications with Moblin SDK & win great > >> prizes > >> > Grand prize is a trip for two to an Open Source event anywhere in the > >> world > >> > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> > _______________________________________________ > >> > 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 Moblin Your Move Developer's > >> challenge > >> Build the coolest Linux based applications with Moblin SDK & win great > >> prizes > >> Grand prize is a trip for two to an Open Source event anywhere in the > world > >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > > > -- > > joshua higgins > >>>>>>>------ > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > 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 Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From m0e.lnx at ...626... Wed Aug 20 21:41:25 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 20 Aug 2008 14:41:25 -0500 Subject: [Gambas-user] Embed xfce4 panel into gambas application In-Reply-To: <4247f5440808201224n215f49f2tadb2cc49fbf6ce6@...627...> References: <19009766.post@...1379...> <1f1e8c1b0808180558m6b53f7c0o39e9c04e8039e84c@...627...> <19035717.post@...1379...> <200808182050.08725.gambas@...1...> <4247f5440808181157l2b64e2a2n4b1aa1842569058b@...627...> <1f1e8c1b0808191419o6f00dc25mca5332afdca16a9a@...627...> <4247f5440808191438v30b3a52axef59d0ca99f74fdb@...627...> <1f1e8c1b0808191452j79417cb5ta470447a0a57866e@...627...> <4247f5440808201224n215f49f2tadb2cc49fbf6ce6@...627...> Message-ID: <1f1e8c1b0808201241q280f67fes32603ced84340f89@...627...> Attn Beniot... Please help Can you explain how to use the WM_CLASS string to embed an application using the embedder object? On Wed, Aug 20, 2008 at 2:24 PM, Joshua Higgins wrote: > Aaah... I see now why you need something other than the title. I tried your > syntax and it didn't work, but I can't figure out the correct syntax from > the help files. Anyone familiar with embedders? > > On Tue, Aug 19, 2008 at 10:52 PM, M0E Lnx wrote: > >> My problem is that I'm embedding GParted into a gambas application. >> And the title property of the window changes depending on the type of >> hard drives present on the box... it could either be "/dev/sda - >> GParted" or "/dev/hda - GParted" >> >> I used xprop as suggested, and came up with the WM_CLASS string of >> "gpartedbin","Gpartedbin" which seem to me more accurate than my >> previous method.. >> >> But I tried Desktop.Find("","gpartedbin") and >> desktop.find("","Gpartedbin") and none seem to work >> >> I'm guessing my syntax is not correct >> >> On Tue, Aug 19, 2008 at 4:38 PM, Joshua Higgins >> wrote: >> > I'm not familiar with the way window managers and X work, but as Beniot >> said >> > the only way I know how to find out the WM_CLASS of a window is using >> xprop. >> > >> > >> > I have found out though whilst trying to get the Xfce Panel embedded is >> that >> > the WM_CLASS is no more unique than the name. The two Xfce panels have >> the >> > same name, the same class and the same role, so I can't really see how >> any >> > of these are more accurate, unless of course your window has no title. >> > >> > As far as I can tell what you wrote should work, I'll have a go when I >> get >> > back to my Linux box :) >> > >> > --- josh >> > >> > On Tue, Aug 19, 2008 at 10:19 PM, M0E Lnx wrote: >> > >> >> Ok... so this may be a more accurate method than the window title is >> >> in some cases... >> >> >> >> How does one go about finding and embedding an application using the >> >> WM_CLASS property instead of the title? >> >> >> >> Can someone give me a sample line? >> >> >> >> Desktop.Find("","APPCLASS") ' Will this work??? >> >> >> >> >> >> >> >> On Mon, Aug 18, 2008 at 1:57 PM, Joshua Higgins >> >> wrote: >> >> > You'll never guess what the title was. Xfce Panel. :) Thanks again >> >> Benoit. >> >> > >> >> > On Mon, Aug 18, 2008 at 7:50 PM, Benoit Minisini < >> >> > gambas at ...1...> wrote: >> >> > >> >> >> On lundi 18 ao?t 2008, joshiggins wrote: >> >> >> > Yeah you are right, it is not decorated and does not have a title >> so i >> >> >> > can't embed it :-(( Is the only way to embed a program by its title >> >> shown >> >> >> > by the window decorator? >> >> >> > >> >> >> >> >> >> A X11 window can be found from its name (the title), its class and >> its >> >> >> role, >> >> >> by using the Desktop.Find() method. >> >> >> >> >> >> Use the 'xprop' program to find all properties associated with a >> window, >> >> >> and >> >> >> look at the WM_NAME, WM_CLASS and WM_WINDOW_ROLE properties >> >> >> >> >> >> Regards, >> >> >> >> >> >> -- >> >> >> Benoit Minisini >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------- >> >> >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> >> >> challenge >> >> >> Build the coolest Linux based applications with Moblin SDK & win >> great >> >> >> prizes >> >> >> Grand prize is a trip for two to an Open Source event anywhere in the >> >> world >> >> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> >> >> _______________________________________________ >> >> >> Gambas-user mailing list >> >> >> Gambas-user at lists.sourceforge.net >> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> >> > >> >> > >> >> > >> >> > -- >> >> > joshua higgins >> >> >>>>>>>------ >> >> > >> ------------------------------------------------------------------------- >> >> > This SF.Net email is sponsored by the Moblin Your Move Developer's >> >> challenge >> >> > Build the coolest Linux based applications with Moblin SDK & win great >> >> prizes >> >> > Grand prize is a trip for two to an Open Source event anywhere in the >> >> world >> >> > http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> >> > _______________________________________________ >> >> > 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 Moblin Your Move Developer's >> >> challenge >> >> Build the coolest Linux based applications with Moblin SDK & win great >> >> prizes >> >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> > >> > >> > -- >> > joshua higgins >> >>>>>>>------ >> > ------------------------------------------------------------------------- >> > This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> > Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> > Grand prize is a trip for two to an Open Source event anywhere in the >> world >> > http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> > _______________________________________________ >> > 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 Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > joshua higgins >>>>>>>------ > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From admin at ...1956... Wed Aug 20 23:14:51 2008 From: admin at ...1956... (admin at ...1956...) Date: Wed, 20 Aug 2008 14:14:51 -0700 Subject: [Gambas-user] All Basic new look Message-ID: <20080820141451.7rnoiz0qg4oc8sko@...1958...> List, Our webmaster just release the new look for www.AllBasic.Info. The Gambas board is looking pretty bare and could use a condensed language reference guide, tutorials, screen shots and code examples. Gambas is the best kept secrete in the Basic community and I hope working together we can change that. It would be great if one of the senior members of the Gambas team would step up and be the team leader for your board on All Basic. Hope to see you there ! John From gatheru at ...626... Thu Aug 21 11:59:15 2008 From: gatheru at ...626... (Kamau Gatheru) Date: Thu, 21 Aug 2008 12:59:15 +0300 Subject: [Gambas-user] Mysql connection bug/problem ? Message-ID: Hi all, I have been trying to connect to a remote mysql server (within my network) and it seems all my local installations of Gambas cannot do that. Incidentally I discovered that the .Port element doesn't work. I can run the following code locally and it works fine. WITH Conn .type = "mysql" .host = "localhost" .Port = "4444" <------- I put the wrong port and it still works regardless .login = "user" .Password = "" .Name = "control" END WITH but when trying to connect to a remote computer using the correct parameters WITH Conn .type = "mysql" .host = "remotehost" .Port = "3306" <------- Correct port .login = "user" .Password = "" .Name = "control" END WITH I get an error ( Cannot open database: Unknown MySql server host 'The -remote-host' (1) ) or another error ( Cannot open database: Can't connect to MySql server on 'My -remote-host' (111) ) Could you please give me a work around or the proper procedure to connecting to a remote MySql database server. Thanks and best regards, Kamau Gatheru From gatheru at ...626... Thu Aug 21 12:01:01 2008 From: gatheru at ...626... (Kamau Gatheru) Date: Thu, 21 Aug 2008 13:01:01 +0300 Subject: [Gambas-user] gatheru@...626... Message-ID: gatheru at ...626... From gatheru at ...626... Thu Aug 21 12:11:48 2008 From: gatheru at ...626... (Kamau Gatheru) Date: Thu, 21 Aug 2008 13:11:48 +0300 Subject: [Gambas-user] Mysql connection bug/problem ? In-Reply-To: References: Message-ID: Hi all, I am using Gambas 2.5 I have been trying to connect to a remote mysql server (within my network) and it seems all my local installations of Gambas cannot do that. Incidentally I discovered that the .Port element doesn't work. I can run the following code locally and it works fine. WITH Conn .type = "mysql" .host = "localhost" .Port = "4444" <------- I put the wrong port and it still works regardless .login = "user" .Password = "" .Name = "control" END WITH but when trying to connect to a remote computer using the correct parameters WITH Conn .type = "mysql" .host = "remotehost" .Port = "3306" <------- Correct port .login = "user" .Password = "" .Name = "control" END WITH I get an error ( Cannot open database: Unknown MySql server host 'The -remote-host' (1) ) or another error ( Cannot open database: Can't connect to MySql server on 'My -remote-host' (111) ) Could you please give me a work around or the proper procedure to connecting to a remote MySql database server. Thanks and best regards, Kamau Gatheru From mconfortino at ...1877... Thu Aug 21 09:18:51 2008 From: mconfortino at ...1877... (Marcelo Confortino) Date: Thu, 21 Aug 2008 07:18:51 +0000 Subject: [Gambas-user] Mysql connection bug/problem ? In-Reply-To: References: Message-ID: <48AD16DB.4030602@...1877...> Kamau Gatheru escribi?: > Hi all, > > I have been trying to connect to a remote mysql server (within my network) > and it seems all my local installations of Gambas cannot do that. Incidentally > I discovered that the .Port element doesn't work. I can run the following code > locally and it works fine. > > WITH Conn > > .type = "mysql" > .host = "localhost" > .Port = "4444" <------- I put the wrong port and it still > works regardless > .login = "user" > .Password = "" > .Name = "control" > > END WITH > > > but when trying to connect to a remote computer using the correct parameters > > WITH Conn > > .type = "mysql" > .host = "remotehost" > .Port = "3306" <------- Correct port > .login = "user" > .Password = "" > .Name = "control" > > END WITH > > I get an error ( Cannot open database: Unknown MySql server host 'The > -remote-host' (1) ) > or another error ( Cannot open database: Can't connect to MySql server > on 'My -remote-host' (111) ) > > Could you please give me a work around or the proper procedure to connecting to > a remote MySql database server. > > Thanks and best regards, > > Kamau Gatheru > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > This may seem obvious, but do you have 'remotehost' listed in /etc/hosts? Bye. M. __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! ?Abr? tu cuenta ya! - http://correo.yahoo.com.ar From gatheru at ...626... Thu Aug 21 12:39:58 2008 From: gatheru at ...626... (Kamau Gatheru) Date: Thu, 21 Aug 2008 13:39:58 +0300 Subject: [Gambas-user] Mysql connection bug/problem ? In-Reply-To: <48AD16DB.4030602@...1877...> References: <48AD16DB.4030602@...1877...> Message-ID: As a matter of fact I have, Here is a sample of the /etc/hosts, listing my database servers 127.0.0.1 localhost 127.0.1.1 MvServer 192.168.1.200 Mvserver 192.168.1.100 Server .... surprisingly even on the local machine (MvServer) only .host = "localhost" works On Thu, Aug 21, 2008 at 10:18 AM, Marcelo Confortino wrote: > Kamau Gatheru escribi?: >> Hi all, >> >> I have been trying to connect to a remote mysql server (within my network) >> and it seems all my local installations of Gambas cannot do that. Incidentally >> I discovered that the .Port element doesn't work. I can run the following code >> locally and it works fine. >> >> WITH Conn >> >> .type = "mysql" >> .host = "localhost" >> .Port = "4444" <------- I put the wrong port and it still >> works regardless >> .login = "user" >> .Password = "" >> .Name = "control" >> >> END WITH >> >> >> but when trying to connect to a remote computer using the correct parameters >> >> WITH Conn >> >> .type = "mysql" >> .host = "remotehost" >> .Port = "3306" <------- Correct port >> .login = "user" >> .Password = "" >> .Name = "control" >> >> END WITH >> >> I get an error ( Cannot open database: Unknown MySql server host 'The >> -remote-host' (1) ) >> or another error ( Cannot open database: Can't connect to MySql server >> on 'My -remote-host' (111) ) >> >> Could you please give me a work around or the proper procedure to connecting to >> a remote MySql database server. >> >> Thanks and best regards, >> >> Kamau Gatheru >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > This may seem obvious, but do you have 'remotehost' listed in > /etc/hosts? Bye. M. > __________________________________________________ > Correo Yahoo! > Espacio para todos tus mensajes, antivirus y antispam ?gratis! > ?Abr? tu cuenta ya! - http://correo.yahoo.com.ar > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From steven at ...1652... Thu Aug 21 12:50:28 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Thu, 21 Aug 2008 12:50:28 +0200 Subject: [Gambas-user] Mysql connection bug/problem ? In-Reply-To: References: <48AD16DB.4030602@...1877...> Message-ID: <1219315828.6735.131.camel@...1936...> Did you check the Mysql database in mysql ? In the users records there is also reference to the host the user is allow to use. If it's marked localhost, that's your problem. Regards, Steven Le jeudi 21 ao?t 2008 ? 13:39 +0300, Kamau Gatheru a ?crit : > As a matter of fact I have, > > Here is a sample of the /etc/hosts, listing > my database servers > > 127.0.0.1 localhost > 127.0.1.1 MvServer > 192.168.1.200 Mvserver > 192.168.1.100 Server > .... > > surprisingly even on the local machine (MvServer) > only .host = "localhost" works > > > > On Thu, Aug 21, 2008 at 10:18 AM, Marcelo Confortino > wrote: > > Kamau Gatheru escribi?: > >> Hi all, > >> > >> I have been trying to connect to a remote mysql server (within my network) > >> and it seems all my local installations of Gambas cannot do that. Incidentally > >> I discovered that the .Port element doesn't work. I can run the following code > >> locally and it works fine. > >> > >> WITH Conn > >> > >> .type = "mysql" > >> .host = "localhost" > >> .Port = "4444" <------- I put the wrong port and it still > >> works regardless > >> .login = "user" > >> .Password = "" > >> .Name = "control" > >> > >> END WITH > >> > >> > >> but when trying to connect to a remote computer using the correct parameters > >> > >> WITH Conn > >> > >> .type = "mysql" > >> .host = "remotehost" > >> .Port = "3306" <------- Correct port > >> .login = "user" > >> .Password = "" > >> .Name = "control" > >> > >> END WITH > >> > >> I get an error ( Cannot open database: Unknown MySql server host 'The > >> -remote-host' (1) ) > >> or another error ( Cannot open database: Can't connect to MySql server > >> on 'My -remote-host' (111) ) > >> > >> Could you please give me a work around or the proper procedure to connecting to > >> a remote MySql database server. > >> > >> Thanks and best regards, > >> > >> Kamau Gatheru > >> > >> ------------------------------------------------------------------------- > >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > >> Build the coolest Linux based applications with Moblin SDK & win great prizes > >> Grand prize is a trip for two to an Open Source event anywhere in the world > >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > > This may seem obvious, but do you have 'remotehost' listed in > > /etc/hosts? Bye. M. > > __________________________________________________ > > Correo Yahoo! > > Espacio para todos tus mensajes, antivirus y antispam ?gratis! > > ?Abr? tu cuenta ya! - http://correo.yahoo.com.ar > > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > > Build the coolest Linux based applications with Moblin SDK & win great prizes > > Grand prize is a trip for two to an Open Source event anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > 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 Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Aug 21 13:14:59 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 21 Aug 2008 13:14:59 +0200 Subject: [Gambas-user] Release of Gambas 2.8.1 Message-ID: <200808211314.59584.gambas@...1...> Hi, I release that just before leaving for a few days. The three following bugs were fixed: * The source file full path is not stored inside object files anymore. This way, rpmlint does not cry against packaging Gambas anymore. And so, Suse packages will be easier to do! * The gb.gtk system tray icon management has been fixed. Now they work with Gnome and KDE, and are fully transparent. * The gb.qt menu shortcut management has been fixed. Normally, you should not have shortcut conflicts in the IDE anymore. Another point: if you can't use KDE 4 at the moment, like me, I have made a lot of patches to kicker (mainly for transparency) and one for kate (https://bugs.kde.org/show_bug.cgi?id=117618, a very boring bug!). You will get these patches in KDE 3.5.10, that should be released next week. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Thu Aug 21 17:02:27 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 21 Aug 2008 11:02:27 -0400 Subject: [Gambas-user] All Basic new look In-Reply-To: <20080820141451.7rnoiz0qg4oc8sko@...1958...> References: <20080820141451.7rnoiz0qg4oc8sko@...1958...> Message-ID: <200808211102.27749.sourceforge-raindog2@...94...> On Wednesday 20 August 2008 17:14, admin at ...1956... wrote: > Our webmaster just release the new look for www.AllBasic.Info. The > Gambas board is looking pretty bare and could use a condensed language > reference guide, tutorials, screen shots and code examples. All your boards are looking pretty bare, because your site has only existed for a few weeks. > Gambas is the best kept secrete in the Basic community and I hope > working together we can change that. When the BASIC community starts visiting allbasic.info, I'll probably be part of it. But with the most active board having 6 posts on it as I type this, I don't think that has happened yet. > It would be great if one of the senior members of the Gambas team > would step up and be the team leader for your board on All Basic. As far as I know, I'm the only one here who regularly takes part in web forum support, and I haven't even had time to visit linuxbasic.net, which has the most active Web forum for Gambas, in a month or two. I know that a lot of BASIC users prefer the web forum approach, especially novices, but most developers still seem to prefer mailing lists. The posts come to us rather than the other way around. Best of luck in your endeavor. Rob From admin at ...1956... Thu Aug 21 19:16:05 2008 From: admin at ...1956... (admin at ...1956...) Date: Thu, 21 Aug 2008 10:16:05 -0700 Subject: [Gambas-user] AllBasic.Info Gambas Help Message-ID: <20080821101605.4593bcmg2soscokc@...1958...> > > All your boards are looking pretty bare, because your site has only > existed for a few weeks. > When the BASIC community starts visiting allbasic.info, I'll > probably be part of it. But with the most active board having 6 > posts on it as I type this, I don't think that has happened yet. I think we are doing pretty good with the board only being two weeks old. There is a lot of excitement about www.AllBasic.Info in the Basic community. The site dwarfed the www.scriptbasic.org (the open source Basic interpreter project I manage) in activity the second day after it went live. > As far as I know, I'm the only one here who regularly takes part in > web forum support, and I haven't even had time to visit > linuxbasic.net, which has the most active Web forum for Gambas, in a > month or two. I know that a lot of BASIC users prefer the web forum > approach, especially novices, but most developers still seem to > prefer mailing lists. The posts come to us rather than the other > way around. > Do you think you could post enough information to the All Basic site for Gambas that someone that hasn't heard of it before would take the next step and install it on their system. (no a easy job for most) Thanks Rob for the reply ! John Spikowski From doriano.blengino at ...1909... Thu Aug 21 22:11:30 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 21 Aug 2008 22:11:30 +0200 Subject: [Gambas-user] Embed xfce4 panel into gambas application In-Reply-To: <1f1e8c1b0808201241q280f67fes32603ced84340f89@...627...> References: <19009766.post@...1379...> <1f1e8c1b0808180558m6b53f7c0o39e9c04e8039e84c@...627...> <19035717.post@...1379...> <200808182050.08725.gambas@...1...> <4247f5440808181157l2b64e2a2n4b1aa1842569058b@...627...> <1f1e8c1b0808191419o6f00dc25mca5332afdca16a9a@...627...> <4247f5440808191438v30b3a52axef59d0ca99f74fdb@...627...> <1f1e8c1b0808191452j79417cb5ta470447a0a57866e@...627...> <4247f5440808201224n215f49f2tadb2cc49fbf6ce6@...627...> <1f1e8c1b0808201241q280f67fes32603ced84340f89@...627...> Message-ID: <48ADCBF2.4090709@...1909...> M0E Lnx ha scritto: > Attn Beniot... Please help > > Can you explain how to use the WM_CLASS string to embed an application > using the embedder object? > I did not try this in gambas, but I read the docs. The Desktop.find() method takes "regular expression" parameters, so if you search for a window class, and you do not know the other strings, you should specify them using a pattern: hPointer = Desktop.Find(".*", "Gpartedbin", ".*") I am not sure if empty strings ("") work, so you should try with ".*" which matches any string. What you receive is an array of all the windows matching your request, so you can try also: hPointer = Desktop.Find(".*", "partedbi", ".*") (note that "partedbi", as regular expression, should match "Gpartedbin", "gpartedbin", and so on... Then you can analyze hPointer.count to see if a meaningful result is returned. If .count is 1, then you are done; hPointer[0] is the value you need to embed. I opened a shell, and typed: xprop |grep WM_CLASS then clicked in a firefox window, and got: WM_CLASS(STRING) = "firefox-bin", "Firefox-bin" I don't know why there are two strings (class and instance?), but passing "irefox-bin" to Desktop.Find() should work. Hope this is useful - cheers. Doriano Blengino From gambas at ...1... Thu Aug 21 22:12:14 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 21 Aug 2008 22:12:14 +0200 Subject: [Gambas-user] Embed xfce4 panel into gambas application In-Reply-To: <48ADCBF2.4090709@...1909...> References: <19009766.post@...1379...> <1f1e8c1b0808201241q280f67fes32603ced84340f89@...627...> <48ADCBF2.4090709@...1909...> Message-ID: <200808212212.14782.gambas@...1...> On jeudi 21 ao?t 2008, Doriano Blengino wrote: > M0E Lnx ha scritto: > > Attn Beniot... Please help > > > > Can you explain how to use the WM_CLASS string to embed an application > > using the embedder object? > > I did not try this in gambas, but I read the docs. The Desktop.find() > method takes "regular expression" parameters, so if you search for a > window class, and you do not know the other strings, you should specify > them using a pattern: > > hPointer = Desktop.Find(".*", "Gpartedbin", ".*") > > I am not sure if empty strings ("") work, so you should try with ".*" > which matches any string. > Empty strings mean everything. And the regular expressions are Gambas regular expressions, as the LIKE operator uses. Regards, -- Benoit Minisini From doriano.blengino at ...1909... Fri Aug 22 09:30:48 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 22 Aug 2008 09:30:48 +0200 Subject: [Gambas-user] Embed xfce4 panel into gambas application In-Reply-To: <200808212212.14782.gambas@...1...> References: <19009766.post@...1379...> <1f1e8c1b0808201241q280f67fes32603ced84340f89@...627...> <48ADCBF2.4090709@...1909...> <200808212212.14782.gambas@...1...> Message-ID: <48AE6B28.9030909@...1909...> Benoit Minisini ha scritto: > On jeudi 21 ao?t 2008, Doriano Blengino wrote: > >> M0E Lnx ha scritto: >> >>> Attn Beniot... Please help >>> >>> Can you explain how to use the WM_CLASS string to embed an application >>> using the embedder object? >>> >> I did not try this in gambas, but I read the docs. The Desktop.find() >> method takes "regular expression" parameters, so if you search for a >> window class, and you do not know the other strings, you should specify >> them using a pattern: >> >> hPointer = Desktop.Find(".*", "Gpartedbin", ".*") >> >> I am not sure if empty strings ("") work, so you should try with ".*" >> which matches any string. >> >> > > Empty strings mean everything. And the regular expressions are Gambas regular > expressions, as the LIKE operator uses. > Thanks for clarification. Perhaps could be better to define them "shell patterns", as they resemble (or actually are) more similar to shell patterns than to regular expressions? Just to help our friend, a pattern "partedbi" could match a string "Gpartedbin"? Or one should use "*partedbi*"? Regards, Doriano Blengino From francescokm at ...626... Fri Aug 22 14:48:41 2008 From: francescokm at ...626... (Francesco Xavier Kolly Mally) Date: Fri, 22 Aug 2008 08:48:41 -0400 Subject: [Gambas-user] ERROR: #49: In-Reply-To: <83453ff10808190427k82123fdrfb85574d9f7c91e0@...627...> References: <367b4cf70808160647me5adb4br13affadd70f4bca0@...627...> <83453ff10808190427k82123fdrfb85574d9f7c91e0@...627...> Message-ID: <367b4cf70808220548xca4156dp950575ef3ffa692a@...627...> im use mandriva 2007.0 and try to install the latest gambas, but there are some problem im install use konsule ./configure ./make ./su -c "make install" just like that but there always error after instalation *" ERROR: #49: Not a directory: /usr/local/bin/gambas2/.project" *but if I install gambas1.0.19 it's can succescful and i can run gambas and connect to MySQL or postgreSQL On Tue, Aug 19, 2008 at 7:27 AM, Garulfo Unix wrote: > How did you installed Gambas 2 ? > > If you use Mandriva, there is packages for it. The best way is to install > it > by using your package manager. > However, if you meet some problems with these packages, try to compile > Gambas. > > But yes, Beno?t is right, you should give us more information. > > Fran?ois. > > 2008/8/16 Francesco Xavier Kolly Mally > > > can anyone help me with this error??? > > ERROR: #49: Not a directory: /usr/local/bin/gambas2/.project > > I use mandriva 2007 and try to install gambas2-2.7.0 > > > > thank you > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > 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 Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Fri Aug 22 15:13:56 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 22 Aug 2008 08:13:56 -0500 Subject: [Gambas-user] Embed xfce4 panel into gambas application In-Reply-To: <48AE6B28.9030909@...1909...> References: <19009766.post@...1379...> <1f1e8c1b0808201241q280f67fes32603ced84340f89@...627...> <48ADCBF2.4090709@...1909...> <200808212212.14782.gambas@...1...> <48AE6B28.9030909@...1909...> Message-ID: <1f1e8c1b0808220613v59027a21o41eec2a9045e09ed@...627...> I'm sorry but I can't get this to pick up anything I have this aHandle = Desktop.Find(".*","partedbi",".*") aHandle.count is 0 every time, so Obviously, I'm doing something wrong I wonder if something else would work like a wild card in the title string something like aHandle = Desktop.Find("[*]" & " - GParted") Or someone please help me figure out the wild card thing here... I still can't get this to work Thanks On Fri, Aug 22, 2008 at 2:30 AM, Doriano Blengino wrote: > Benoit Minisini ha scritto: >> On jeudi 21 ao?t 2008, Doriano Blengino wrote: >> >>> M0E Lnx ha scritto: >>> >>>> Attn Beniot... Please help >>>> >>>> Can you explain how to use the WM_CLASS string to embed an application >>>> using the embedder object? >>>> >>> I did not try this in gambas, but I read the docs. The Desktop.find() >>> method takes "regular expression" parameters, so if you search for a >>> window class, and you do not know the other strings, you should specify >>> them using a pattern: >>> >>> hPointer = Desktop.Find(".*", "Gpartedbin", ".*") >>> >>> I am not sure if empty strings ("") work, so you should try with ".*" >>> which matches any string. >>> >>> >> >> Empty strings mean everything. And the regular expressions are Gambas regular >> expressions, as the LIKE operator uses. >> > Thanks for clarification. Perhaps could be better to define them "shell > patterns", as they resemble (or actually are) more similar to shell > patterns than to regular expressions? > > Just to help our friend, a pattern "partedbi" could match a string > "Gpartedbin"? Or one should use "*partedbi*"? > > Regards, > Doriano Blengino > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Fri Aug 22 15:31:01 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 22 Aug 2008 15:31:01 +0200 Subject: [Gambas-user] Embed xfce4 panel into gambas application In-Reply-To: <1f1e8c1b0808220613v59027a21o41eec2a9045e09ed@...627...> References: <19009766.post@...1379...> <1f1e8c1b0808201241q280f67fes32603ced84340f89@...627...> <48ADCBF2.4090709@...1909...> <200808212212.14782.gambas@...1...> <48AE6B28.9030909@...1909...> <1f1e8c1b0808220613v59027a21o41eec2a9045e09ed@...627...> Message-ID: <48AEBF95.9070406@...1909...> M0E Lnx ha scritto: > I'm sorry but I can't get this to pick up anything > > I have this > aHandle = Desktop.Find(".*","partedbi",".*") > > aHandle.count is 0 every time, so Obviously, I'm doing something wrong > > Sorry, it was my mistake. In the documentation I've read "regular expressions", but they are in fact patterns, not true regular expressions: they use the same syntax as the LIKE string operators (similar to shell patterns), and an empty string matches everything. So, try this: aHandle = Desktop.Find("","*partedbi*","") and, if this fails, and to see whether the .Find() works, you can try also: aHandle = Desktop.Find("","","") which should return every window in the desktop. From m0e.lnx at ...626... Fri Aug 22 16:59:33 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 22 Aug 2008 09:59:33 -0500 Subject: [Gambas-user] Embed xfce4 panel into gambas application In-Reply-To: <48AEBF95.9070406@...1909...> References: <19009766.post@...1379...> <1f1e8c1b0808201241q280f67fes32603ced84340f89@...627...> <48ADCBF2.4090709@...1909...> <200808212212.14782.gambas@...1...> <48AE6B28.9030909@...1909...> <1f1e8c1b0808220613v59027a21o41eec2a9045e09ed@...627...> <48AEBF95.9070406@...1909...> Message-ID: <1f1e8c1b0808220759l657b924es646bb64e210252d8@...627...> Desktop.Find("","*partedbi*","") worked Thank you On Fri, Aug 22, 2008 at 8:31 AM, Doriano Blengino wrote: > M0E Lnx ha scritto: >> I'm sorry but I can't get this to pick up anything >> >> I have this >> aHandle = Desktop.Find(".*","partedbi",".*") >> >> aHandle.count is 0 every time, so Obviously, I'm doing something wrong >> >> > Sorry, it was my mistake. > > In the documentation I've read "regular expressions", but they are in > fact patterns, not true regular expressions: they use the same syntax as > the LIKE string operators (similar to shell patterns), and an empty > string matches everything. > > So, try this: > > aHandle = Desktop.Find("","*partedbi*","") > > and, if this fails, and to see whether the .Find() works, you can try also: > > aHandle = Desktop.Find("","","") > > which should return every window in the desktop. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Fri Aug 22 17:37:46 2008 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 22 Aug 2008 17:37:46 +0200 Subject: [Gambas-user] wiki DeskTop.Find missing syntax Message-ID: <200808221737.46488.ronstk@...239...> In the wiki the DeskTop.Find is missing the 'Syntax' box. Also the in the 3.0 version and both differs in the head. DeskTop.Find versus Find Ron 1st -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From admin at ...1080... Fri Aug 22 18:39:45 2008 From: admin at ...1080... (admin at ...1080...) Date: Fri, 22 Aug 2008 18:39:45 +0200 Subject: [Gambas-user] Mysql connection bug/problem In-Reply-To: References: Message-ID: <48AEEBD1.9050205@...1080...> Hi You have have to give remote access. I think you can give it with MySQL Administrator on User-Admin with (somehow) @% or @ip-address. Good luck Werner > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 21 Aug 2008 12:50:28 +0200 > From: Steven Lobbezoo > Subject: Re: [Gambas-user] Mysql connection bug/problem ? > To: mailing list for gambas users > Message-ID: <1219315828.6735.131.camel at ...1936...> > Content-Type: text/plain; charset=utf-8 > > Did you check the Mysql database in mysql ? > In the users records there is also reference to the host the user is > allow to use. > If it's marked localhost, that's your problem. > > Regards, > Steven > > > Le jeudi 21 ao?t 2008 ? 13:39 +0300, Kamau Gatheru a ?crit : > > >> As a matter of fact I have, >> >> Here is a sample of the /etc/hosts, listing >> my database servers >> >> 127.0.0.1 localhost >> 127.0.1.1 MvServer >> 192.168.1.200 Mvserver >> 192.168.1.100 Server >> .... >> >> surprisingly even on the local machine (MvServer) >> only .host = "localhost" works >> >> >> >> On Thu, Aug 21, 2008 at 10:18 AM, Marcelo Confortino >> wrote: >> >>> Kamau Gatheru escribi?: >>> >>>> Hi all, >>>> >>>> I have been trying to connect to a remote mysql server (within my network) >>>> and it seems all my local installations of Gambas cannot do that. Incidentally >>>> I discovered that the .Port element doesn't work. I can run the following code >>>> locally and it works fine. >>>> >>>> WITH Conn >>>> >>>> .type = "mysql" >>>> .host = "localhost" >>>> .Port = "4444" <------- I put the wrong port and it still >>>> works regardless >>>> .login = "user" >>>> .Password = "" >>>> .Name = "control" >>>> >>>> END WITH >>>> >>>> >>>> but when trying to connect to a remote computer using the correct parameters >>>> >>>> WITH Conn >>>> >>>> .type = "mysql" >>>> .host = "remotehost" >>>> .Port = "3306" <------- Correct port >>>> .login = "user" >>>> .Password = "" >>>> .Name = "control" >>>> >>>> END WITH >>>> >>>> I get an error ( Cannot open database: Unknown MySql server host 'The >>>> -remote-host' (1) ) >>>> or another error ( Cannot open database: Can't connect to MySql server >>>> on 'My -remote-host' (111) ) >>>> >>>> Could you please give me a work around or the proper procedure to connecting to >>>> a remote MySql database server. >>>> >>>> Thanks and best regards, >>>> >>>> Kamau Gatheru >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>>> Grand prize is a trip for two to an Open Source event anywhere in the world >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>>> >>> This may seem obvious, but do you have 'remotehost' listed in >>> /etc/hosts? Bye. M. >>> __________________________________________________ >>> Correo Yahoo! >>> Espacio para todos tus mensajes, antivirus y antispam ?gratis! >>> ?Abr? tu cuenta ya! - http://correo.yahoo.com.ar >>> >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> 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 Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > From Gambas at ...1950... Fri Aug 22 20:49:29 2008 From: Gambas at ...1950... (Caveat) Date: Fri, 22 Aug 2008 20:49:29 +0200 Subject: [Gambas-user] AllBasic.Info Gambas Help In-Reply-To: <20080821101605.4593bcmg2soscokc@...1958...> References: <20080821101605.4593bcmg2soscokc@...1958...> Message-ID: <1219430969.19415.0.camel@...1951...> Hi John, I signed up. I also posted an intro. Normally I'd expect to have at least one "welcome to the board" response by now. Kinda disappointing, but it is a very small site right now. If you want a Mod for the Gambas area, I don't mind to step up and give it a go. As I mentioned in my intro, I'm the author of the DragonController (www.dragoncontroller.org), which I developed in VB.Net and in Gambas. If you can give us a mention in your apps list, we can return the favour by linking back to allBasic.info for those who want to explore the basic language further. As an aside, it's interesting to see how those 2 basics compare for writing essentially 'the same program'. VB.Net feels a lot more 'complicated' than Gambas but there's really nothing I've found so far that I can do in .Net that I can't do in Gambas (Gambas2 in fact). I've also used Gambas (as Benoit knows) for a bar management application which uses MySQL and is implemented in a client-server manner, with XML messages being passed between the client and the server. This application hasn't been open-sourced yet, but I may consider releasing the code if there's enough interest. Regards, Caveat On Thu, 2008-08-21 at 10:16 -0700, admin at ...1956... wrote: > > > > All your boards are looking pretty bare, because your site has only > > existed for a few weeks. > > > When the BASIC community starts visiting allbasic.info, I'll > > probably be part of it. But with the most active board having 6 > > posts on it as I type this, I don't think that has happened yet. > > I think we are doing pretty good with the board only being two weeks old. > There is a lot of excitement about www.AllBasic.Info in the Basic community. > The site dwarfed the www.scriptbasic.org (the open source Basic > interpreter project I manage) in activity the second day after it went > live. > > > > As far as I know, I'm the only one here who regularly takes part in > > web forum support, and I haven't even had time to visit > > linuxbasic.net, which has the most active Web forum for Gambas, in a > > month or two. I know that a lot of BASIC users prefer the web forum > > approach, especially novices, but most developers still seem to > > prefer mailing lists. The posts come to us rather than the other > > way around. > > > > Do you think you could post enough information to the All Basic site > for Gambas that someone that hasn't heard of it before would take the > next step and install it on their system. (no a easy job for most) > > Thanks Rob for the reply ! > > > John Spikowski > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From admin at ...1080... Sat Aug 23 17:40:31 2008 From: admin at ...1080... (werner 007) Date: Sat, 23 Aug 2008 08:40:31 -0700 (PDT) Subject: [Gambas-user] Failing when create DEB installation package Message-ID: <19122429.post@...1379...> Hi at all I have Gambas 2.7. When i will create a deb-package, it fails with success message. But Mandriva, Suse and Fedora work well. Can anybody give me a hint how to fix this? Regards Werner (007) The output from the creation-window is: Paket f?r Debian erstellen. Making build directory. Creating desktop file... Sources are being debianizated. Creating package... dpkg-buildpackage: setze CFLAGS auf Standardwert: -g -O2 dpkg-buildpackage: setze CPPFLAGS auf Standardwert: dpkg-buildpackage: setze LDFLAGS auf Standardwert: dpkg-buildpackage: setze FFLAGS auf Standardwert: -g -O2 dpkg-buildpackage: setze CXXFLAGS auf Standardwert: -g -O2 dpkg-buildpackage: Quellpaket m3u-copy-g2 dpkg-buildpackage: Quellversion 0.1.7-1 dpkg-buildpackage: Quellen ge?ndert durch Werner Staudacher dpkg-buildpackage: Host-Architektur i386 debian/rules clean dh_testdir dh_testroot rm -Rf `find . -name ".gambas"` rm -Rf `find . -name "*.gambas"` rm -f build-stamp install-stamp dh_clean dpkg-source: Information: verwende Quellformat ?1.0? dpkg-source: Information: baue m3u-copy-g2 in m3u-copy-g2_0.1.7.orig.tar.gz dpkg-source -b m3u-copy-g2-0.1.7 dpkg-source: Information: baue m3u-copy-g2 in m3u-copy-g2_0.1.7-1.diff.gz dpkg-source: Information: baue m3u-copy-g2 in m3u-copy-g2_0.1.7-1.dsc dpkg-source: Warnung: ignoriere L?schen der Datei src/m3u-copy_g2/m3u-copy_g2.gambas dpkg-source: Warnung: ignoriere L?schen des Verzeichnisses src/m3u-copy_g2/.gambas dh_testdir debian/rules build touch build-stamp /usr/bin/gbc2 -a src/m3u-copy-g2 gbc: project file not found: /home/ws/m3u-copy-g2-0.1.7/.project make: *** [build-stamp] Fehler 1 dpkg-buildpackage: Fehlschlag: debian/rules build gab Fehler-Exitstatus 2 Sichern CHANGELOG Datei. Die Pakete wurden erfolgreich (=success) erstellt. -- View this message in context: http://www.nabble.com/Failing-when-create-DEB-installation-package-tp19122429p19122429.html Sent from the gambas-user mailing list archive at Nabble.com. From admin at ...1080... Sat Aug 23 18:38:33 2008 From: admin at ...1080... (werner 007) Date: Sat, 23 Aug 2008 09:38:33 -0700 (PDT) Subject: [Gambas-user] execute shell command then exit In-Reply-To: <19013217.post@...1379...> References: <19013217.post@...1379...> Message-ID: <19123052.post@...1379...> With the shell you should have the possibility to separate a calling process from parent, or to run as a background process. I think a usable command could be fork, or call the process with a closing "&". This is only meant as guidance, because whether this is quite true ...? Regards, Werner(007) joshiggins wrote: > > Hello, > > I need my gambas program to execute another program then close itself, > leaving the other program running. Using the SHELL command then Me.Close > in the startup form doesnt work, my gambas app keeps on running. I have > also tried using EXEC to the same effect. How can this be achieved? > > Thanks. > -- View this message in context: http://www.nabble.com/execute-shell-command-then-exit-tp19013217p19123052.html Sent from the gambas-user mailing list archive at Nabble.com. From admin at ...1080... Sat Aug 23 19:52:42 2008 From: admin at ...1080... (werner 007) Date: Sat, 23 Aug 2008 10:52:42 -0700 (PDT) Subject: [Gambas-user] Help with understanding how not to hard-code paths In-Reply-To: <200808162226.34602.rterry@...1946...> References: <200808162226.34602.rterry@...1946...> Message-ID: <19123609.post@...1379...> Gambas has the two objects "system" and "user", which contain also path information. Use these often! For example, "user.home" contains the home-directory, add to this the string "./YourApplicationName" as path to the directory of your images. Regards, Werner -- View this message in context: http://www.nabble.com/Help-with-understanding-how-not-to-hard-code-paths-tp19023740p19123609.html Sent from the gambas-user mailing list archive at Nabble.com. From admin at ...1080... Sat Aug 23 20:44:13 2008 From: admin at ...1080... (werner 007) Date: Sat, 23 Aug 2008 11:44:13 -0700 (PDT) Subject: [Gambas-user] execute shell command then exit In-Reply-To: <19123052.post@...1379...> References: <19013217.post@...1379...> <19123052.post@...1379...> Message-ID: <19123997.post@...1379...> I did a little research on how to separate a process and found: YourCommand & disown or nohub YourCommand & (& is for bg) Regards, Werner(007) -- View this message in context: http://www.nabble.com/execute-shell-command-then-exit-tp19013217p19123997.html Sent from the gambas-user mailing list archive at Nabble.com. From gbv at ...1076... Sun Aug 24 12:54:01 2008 From: gbv at ...1076... (Guillermo Ballester Valor) Date: Sun, 24 Aug 2008 10:54:01 +0000 Subject: [Gambas-user] Release of Gambas 2.8.1 In-Reply-To: <200808211314.59584.gambas@...1...> References: <200808211314.59584.gambas@...1...> Message-ID: <200808241054.01510.gbv@...1076...> Hi, El Thursday 21 August 2008 11:14:59 Benoit Minisini escribi?: > Hi, > > I release that just before leaving for a few days. > > The three following bugs were fixed: > > * The source file full path is not stored inside object files anymore. This > way, rpmlint does not cry against packaging Gambas anymore. And so, Suse > packages will be easier to do! > Verified! Now I can build examples rpm in openSUSE Build Server. 2.8.1 rpms are available now. Thank you! Guillermo -- Guillermo Ballester Valor gbv at ...1076... http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN From lordheavym at ...626... Sun Aug 24 16:31:55 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Sun, 24 Aug 2008 16:31:55 +0200 Subject: [Gambas-user] gambasdoc.org bug Message-ID: <200808241631.55941.lordheavym@...626...> The title of the page is always added when using then syntax{....} statement. See http://www.gambasdoc.org/help/tutorial/testloop From jbskaggs at ...1871... Mon Aug 25 02:15:40 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Sun, 24 Aug 2008 17:15:40 -0700 (PDT) Subject: [Gambas-user] Feature request Message-ID: <19136261.post@...1379...> On the packager utility in gambas- would it be possible to add a feature so when you create more than one linux flavor installation it asks you for a new directory for each flavor? This would make distribution updates much faster. JB Skaggs -- View this message in context: http://www.nabble.com/Feature-request-tp19136261p19136261.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1946... Mon Aug 25 07:36:41 2008 From: rterry at ...1946... (richard terry) Date: Mon, 25 Aug 2008 15:36:41 +1000 Subject: [Gambas-user] Drawing on an existing picture Message-ID: <200808251536.41822.rterry@...1946...> I need to have a form that allows the user to select a diagram, use the mouse to draw on the diagram, and then save either the diagram or the changes to the diagram. I wondered if anyone has done this/has pointers etc. Seems like possible one could use in part the icon editor of gambas, though I'm not sure how I would proceed. Thanks for any help. From wdahn at ...1000... Mon Aug 25 08:48:09 2008 From: wdahn at ...1000... (Werner) Date: Mon, 25 Aug 2008 14:48:09 +0800 Subject: [Gambas-user] Drawing on an existing picture In-Reply-To: <200808251536.41822.rterry@...1946...> References: <200808251536.41822.rterry@...1946...> Message-ID: <48B255A9.9030402@...1000...> richard terry wrote: > I need to have a form that allows the user to select a diagram, use the mouse > to draw on the diagram, and then save either the diagram or the changes to > the diagram. > > I wondered if anyone has done this/has pointers etc. Seems like possible one > could use in part the icon editor of gambas, though I'm not sure how I would > proceed. > > Thanks for any help. I think a DrawingArea would be best for the job. Werner From gatheru at ...626... Mon Aug 25 10:04:37 2008 From: gatheru at ...626... (Kamau Gatheru) Date: Mon, 25 Aug 2008 11:04:37 +0300 Subject: [Gambas-user] Mysql connection bug/problem In-Reply-To: <48AEEBD1.9050205@...1080...> References: <48AEEBD1.9050205@...1080...> Message-ID: Thanks all, Sometimes people have to point out our small mistakes for us to realize them. Problem solved On Fri, Aug 22, 2008 at 7:39 PM, admin at ...1080... wrote: > Hi > > You have have to give remote access. > I think you can give it with MySQL Administrator on User-Admin with > (somehow) @% or @ip-address. > > Good luck > > > Werner > >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Thu, 21 Aug 2008 12:50:28 +0200 >> From: Steven Lobbezoo >> Subject: Re: [Gambas-user] Mysql connection bug/problem ? >> To: mailing list for gambas users >> Message-ID: <1219315828.6735.131.camel at ...1936...> >> Content-Type: text/plain; charset=utf-8 >> >> Did you check the Mysql database in mysql ? >> In the users records there is also reference to the host the user is >> allow to use. >> If it's marked localhost, that's your problem. >> >> Regards, >> Steven >> >> >> Le jeudi 21 ao?t 2008 ? 13:39 +0300, Kamau Gatheru a ?crit : >> >> >>> As a matter of fact I have, >>> >>> Here is a sample of the /etc/hosts, listing >>> my database servers >>> >>> 127.0.0.1 localhost >>> 127.0.1.1 MvServer >>> 192.168.1.200 Mvserver >>> 192.168.1.100 Server >>> .... >>> >>> surprisingly even on the local machine (MvServer) >>> only .host = "localhost" works >>> >>> >>> >>> On Thu, Aug 21, 2008 at 10:18 AM, Marcelo Confortino >>> wrote: >>> >>>> Kamau Gatheru escribi?: >>>> >>>>> Hi all, >>>>> >>>>> I have been trying to connect to a remote mysql server (within my network) >>>>> and it seems all my local installations of Gambas cannot do that. Incidentally >>>>> I discovered that the .Port element doesn't work. I can run the following code >>>>> locally and it works fine. >>>>> >>>>> WITH Conn >>>>> >>>>> .type = "mysql" >>>>> .host = "localhost" >>>>> .Port = "4444" <------- I put the wrong port and it still >>>>> works regardless >>>>> .login = "user" >>>>> .Password = "" >>>>> .Name = "control" >>>>> >>>>> END WITH >>>>> >>>>> >>>>> but when trying to connect to a remote computer using the correct parameters >>>>> >>>>> WITH Conn >>>>> >>>>> .type = "mysql" >>>>> .host = "remotehost" >>>>> .Port = "3306" <------- Correct port >>>>> .login = "user" >>>>> .Password = "" >>>>> .Name = "control" >>>>> >>>>> END WITH >>>>> >>>>> I get an error ( Cannot open database: Unknown MySql server host 'The >>>>> -remote-host' (1) ) >>>>> or another error ( Cannot open database: Can't connect to MySql server >>>>> on 'My -remote-host' (111) ) >>>>> >>>>> Could you please give me a work around or the proper procedure to connecting to >>>>> a remote MySql database server. >>>>> >>>>> Thanks and best regards, >>>>> >>>>> Kamau Gatheru >>>>> >>>>> ------------------------------------------------------------------------- >>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>>>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>>>> Grand prize is a trip for two to an Open Source event anywhere in the world >>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>>> >>>>> >>>> This may seem obvious, but do you have 'remotehost' listed in >>>> /etc/hosts? Bye. M. >>>> __________________________________________________ >>>> Correo Yahoo! >>>> Espacio para todos tus mensajes, antivirus y antispam ?gratis! >>>> ?Abr? tu cuenta ya! - http://correo.yahoo.com.ar >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>>> Grand prize is a trip for two to an Open Source event anywhere in the world >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>> _______________________________________________ >>>> 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 Moblin Your Move Developer's challenge >>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> 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 Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Tue Aug 26 05:04:37 2008 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 25 Aug 2008 23:04:37 -0400 Subject: [Gambas-user] Loading an SVG... Message-ID: <48B372C5.60400@...981...> Having a bit of trouble loading an SVG file.... here's the bit that's failing.... PUBLIC hImage AS Image PUBLIC SUB Button1_Click() hImage = SVG.Load("/home/bungayst/Graphics/SVGFiles/TestImage1.svg") . . . END I've redacted the Button1_Click() procedure because it does not get past the line I've included. The error dialogue is as follows... "The program has stopped unexpectedly by raising signal #6. Please send a bug report to gambas at ...52..." The test image was created with InkScape V 0.45. I've attached the dump GAMBAS produced in the console window when things went awry. Anyone had any luck loading SVG files? Is there a fix for this? Steve. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: SVG_Load_Failure.txt URL: From nxgtrturbo at ...626... Tue Aug 26 06:39:43 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Mon, 25 Aug 2008 21:39:43 -0700 Subject: [Gambas-user] Change list element from ReadOnly ComboBox Message-ID: <688afe140808252139l221372c6v593e9d95eb20ba29@...627...> Change list element from ReadOnly ComboBox Hi, I cant change (I don't know how, I tried already) the value from a ReadOnly ComboBox from another ComboBox. Exactly what I want to do is control N ComboBox in my form from a ComboBox with identical values, If I change the element of the primary ComboBox, change the other N ComboBoxes to the same value. I was thinking that the list was an array and tried to play with the index value but nothing.... Something like: 'some here... Ncombo[i].index =PrimaryCombo.index 'some here... Thanks in advance -- http://tallerhuertas.googlepages.com/ http://systemarpi.googlepages.com/ From admin at ...1080... Tue Aug 26 07:33:04 2008 From: admin at ...1080... (werner 007) Date: Mon, 25 Aug 2008 22:33:04 -0700 (PDT) Subject: [Gambas-user] Change list element from ReadOnly ComboBox In-Reply-To: <688afe140808252139l221372c6v593e9d95eb20ba29@...627...> References: <688afe140808252139l221372c6v593e9d95eb20ba29@...627...> Message-ID: <19156036.post@...1379...> Not shure, but combox has not a value but a text property. try: combo2.index=combo2.find(combo1.text), that should do the job with text-values. Werner(007) -- View this message in context: http://www.nabble.com/Change-list-element-from-ReadOnly-ComboBox-tp19155677p19156036.html Sent from the gambas-user mailing list archive at Nabble.com. From jscops at ...11... Tue Aug 26 07:41:09 2008 From: jscops at ...11... (Jacky) Date: Tue, 26 Aug 2008 07:41:09 +0200 Subject: [Gambas-user] Loading an SVG... In-Reply-To: <48B372C5.60400@...981...> References: <48B372C5.60400@...981...> Message-ID: <200808260741.09819.jscops@...11...> Le Tuesday 26 August 2008 05:04:37 Stephen Bungay, vous avez ?crit?: > Having a bit of trouble loading an SVG file.... here's the bit that's > failing.... > > PUBLIC hImage AS Image > > PUBLIC SUB Button1_Click() > hImage = SVG.Load("/home/bungayst/Graphics/SVGFiles/TestImage1.svg") Hello Steve, I never works with svg file but try to use image.load hImage = Image.Load("/home/bungayst/Graphics/SVGFiles/TestImage1.svg") Jacky From _root at ...324... Tue Aug 26 10:14:20 2008 From: _root at ...324... (Fox) Date: Tue, 26 Aug 2008 10:14:20 +0200 Subject: [Gambas-user] about combobox Message-ID: <48B3BB5C.7010203@...324...> About combobox, we are talking about this control a little time ago. There is a big difference from QT and GTK combobox. Gtk combobox have trouble to manage long lists, try to fill with many items, it make load for time and also you have trouble to search what you need. QT combobox is not fast, is better, and also, when you have many items you can find what you need very quickly because you can type the start characters of you matching word. I'm on a Debian sid 64b Gambas 2.7 -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: La musica migliore tutta sul tuo cellulare. Scegli le tue hit! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7751&d=26-8 From _root at ...324... Tue Aug 26 10:32:56 2008 From: _root at ...324... (Fox) Date: Tue, 26 Aug 2008 10:32:56 +0200 Subject: [Gambas-user] Columnview, how to read? Message-ID: <48B3BFB8.1080607@...324...> I'm sorry but I'm getting crazy with a Columnview I can add items without any problem But now I want to store data so I must read from Columnview and manage the data. ... CVmycv.MoveFirst FOR i = 0 TO CVmycv.Count - 1 S_0 = CVmycv.Item[0] S_1 = CVmycv.Item[1] S_2 = CVmycv.Item[2] S_3 = CVmycv.Item[3] S_4 = CVmycv.Item[4] S_5 = CVmycv.Item[5] FMain.CV_additems(S_0, S_1, S_2, S_3, S_4, S_5) CVmycv.MoveBelow() NEXT ... The problem is that it moves to the first, but it don't go down So I have ever the first row. Maybe I'm missing something... The help says that: .MoveAbove .MoveBack .MoveBelow .MoveFirst .MoveLast .MoveTo are referred to the internal cursor and I'm using it I think that is like to use a result from a database. Thankyou ;) -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Scopri le tue passioni con Leonardo.it! * Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7614&d=26-8 From _root at ...324... Tue Aug 26 10:14:59 2008 From: _root at ...324... (Fox) Date: Tue, 26 Aug 2008 10:14:59 +0200 Subject: [Gambas-user] Columnview - how to read? Message-ID: <48B3BB83.6060103@...324...> I'm sorry but I'm getting crazy with a Columnview I can add items without any problem But now I want to store data so I must read from Columnview and manage the data. ... CVmycv.MoveFirst FOR i = 0 TO CVmycv.Count - 1 S_0 = CVmycv.Item[0] S_1 = CVmycv.Item[1] S_2 = CVmycv.Item[2] S_3 = CVmycv.Item[3] S_4 = CVmycv.Item[4] S_5 = CVmycv.Item[5] FMain.CV_additems(S_0, S_1, S_2, S_3, S_4, S_5) CVmycv.MoveBelow() NEXT ... The problem is that it moves to the first, but it don't go down So I have ever the first row. Maybe I'm missing something... The help says that: .MoveAbove .MoveBack .MoveBelow .MoveFirst .MoveLast .MoveTo are referred to the internal cursor and I'm using it I think that is the same of using a result from a database. Thankyou ;) -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: E' iniziata l'era del fax ecologico: si chiama EmailFax. Meno consumi di carta e toner pi? risparmio di energia e hai invio e ricezione senza limiti. Clicca per saperne di pi? Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8145&d=26-8 From _root at ...324... Tue Aug 26 10:49:15 2008 From: _root at ...324... (Fox) Date: Tue, 26 Aug 2008 10:49:15 +0200 Subject: [Gambas-user] Columnview, how to read? In-Reply-To: <48B3BFB8.1080607@...324...> References: <48B3BFB8.1080607@...324...> Message-ID: <48B3C38B.9010702@...324...> Fox wrote: > ... > > CVmycv.MoveFirst > FOR i = 0 TO CVmycv.Count - 1 > > S_0 = CVmycv.Item[0] > S_1 = CVmycv.Item[1] > S_2 = CVmycv.Item[2] > S_3 = CVmycv.Item[3] > S_4 = CVmycv.Item[4] > S_5 = CVmycv.Item[5] > FMain.CV_additems(S_0, S_1, S_2, S_3, S_4, S_5) > CVmycv.MoveBelow() > > NEXT > > ... > > The problem is that it moves to the first, but it don't go down > So I have ever the first row. > If I make it using 2 buttons it works... PUBLIC SUB Button1_Click() CVmycv.MoveFirst END PUBLIC SUB Button2_Click() TextBox1.text = CVmycv.Item[3] CVmycv.MoveBelow END I push the Button1 to move the internal cursor to the first row, then when I press Button2 I can see that the command "MoveBelow" works fine. (Sorry for the double message) Christian -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Nasce il Blog di Email.it - le nostre storie, le tue opinioni Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8137&d=26-8 From wdahn at ...1000... Tue Aug 26 12:03:02 2008 From: wdahn at ...1000... (Werner) Date: Tue, 26 Aug 2008 18:03:02 +0800 Subject: [Gambas-user] Columnview, how to read? In-Reply-To: <48B3C38B.9010702@...324...> References: <48B3BFB8.1080607@...324...> <48B3C38B.9010702@...324...> Message-ID: <48B3D4D6.5070803@...1000...> Fox wrote: > Fox wrote: > >> ... >> >> CVmycv.MoveFirst >> FOR i = 0 TO CVmycv.Count - 1 >> >> S_0 = CVmycv.Item[0] >> S_1 = CVmycv.Item[1] >> S_2 = CVmycv.Item[2] >> S_3 = CVmycv.Item[3] >> S_4 = CVmycv.Item[4] >> S_5 = CVmycv.Item[5] >> FMain.CV_additems(S_0, S_1, S_2, S_3, S_4, S_5) >> CVmycv.MoveBelow() >> >> NEXT >> >> ... >> >> The problem is that it moves to the first, but it don't go down >> So I have ever the first row. >> >> > > If I make it using 2 buttons it works... > > PUBLIC SUB Button1_Click() > CVmycv.MoveFirst > END > > PUBLIC SUB Button2_Click() > TextBox1.text = CVmycv.Item[3] > CVmycv.MoveBelow > END > > I push the Button1 to move the internal cursor to the first row, > then when I press Button2 I can see that the command "MoveBelow" works fine. > > (Sorry for the double message) > > Christian > to traverse trough the items of a ColumnView you could do this: CVmycv.MoveFirst WHILE CVmycv.Available Print CVmycv.Item.Key 'or whatever else you want to do here CVmycv.MoveNext WEND but I don't understand what you actually want to do. Regards Werner From _root at ...324... Tue Aug 26 12:08:18 2008 From: _root at ...324... (Fox) Date: Tue, 26 Aug 2008 12:08:18 +0200 Subject: [Gambas-user] Columnview, how to read? In-Reply-To: <48B3D4D6.5070803@...1000...> References: <48B3BFB8.1080607@...324...> <48B3C38B.9010702@...324...> <48B3D4D6.5070803@...1000...> Message-ID: <48B3D612.6090307@...324...> Werner wrote: > to traverse trough the items of a ColumnView you could do this: > CVmycv.MoveFirst > WHILE CVmycv.Available > Print CVmycv.Item.Key 'or whatever else you want to do here > CVmycv.MoveNext > WEND > > > but I don't understand what you actually want to do. > Suppose that I have data in the Columnview Columns: a picture | Name | Surname | Address | telephone etc. now I want to store ALL the items in a file, in a variant array[][] ... or where you want -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Vasco ? tornato! Sul tuo cellulare Il mondo che vorrei Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7749&d=26-8 From jscops at ...11... Tue Aug 26 12:20:50 2008 From: jscops at ...11... (Jacky) Date: Tue, 26 Aug 2008 12:20:50 +0200 Subject: [Gambas-user] Columnview, how to read? In-Reply-To: <48B3D612.6090307@...324...> References: <48B3BFB8.1080607@...324...> <48B3D4D6.5070803@...1000...> <48B3D612.6090307@...324...> Message-ID: <200808261220.50700.jscops@...11...> Le Tuesday 26 August 2008 12:08:18 Fox, vous avez ?crit?: > Werner wrote: > > to traverse trough the items of a ColumnView you could do this: > > CVmycv.MoveFirst > > WHILE CVmycv.Available > > Print CVmycv.Item.Key 'or whatever else you want to do here > > CVmycv.MoveNext > > WEND > > > > > > but I don't understand what you actually want to do. > > Suppose that I have data in the Columnview > > Columns: > a picture | Name | Surname | Address | telephone etc. > > > now I want to store ALL the items in a file, in a variant array[][] ... > or where you want Columnview.MoveFirst REPEAT Columnview.Item.Selected = TRUE 'here that you want to do with each data, Columnview.Item[1], Columnview.Item[2], Columnview.item[3] etc... UNTIL Columnview.Movenext() Jacky From mike.crean at ...1940... Tue Aug 26 13:17:13 2008 From: mike.crean at ...1940... (Mike) Date: Tue, 26 Aug 2008 19:17:13 +0800 Subject: [Gambas-user] text files Message-ID: <20080826111715.46F003DA16D@...1961...> Hi all How do I save a text file without extra chars at the start of the file. If I save with the following code there is one extra char added to the start of the file. Hfile = OPEN "/home/mike/cmrmsg.txt" FOR WRITE CREATE WRITE #hfile, "Stuff" CLOSE #hfile If I use a very long string I get two chars added at the start of the file. Regards Mike Crean From _root at ...324... Tue Aug 26 13:45:36 2008 From: _root at ...324... (Fox) Date: Tue, 26 Aug 2008 13:45:36 +0200 Subject: [Gambas-user] Columnview, how to read? In-Reply-To: <200808261220.50700.jscops@...11...> References: <48B3BFB8.1080607@...324...> <48B3D4D6.5070803@...1000...> <48B3D612.6090307@...324...> <200808261220.50700.jscops@...11...> Message-ID: <48B3ECE0.1090300@...324...> Jacky wrote: > > > Columnview.MoveFirst > REPEAT > Columnview.Item.Selected = TRUE > 'here that you want to do with each data, Columnview.Item[1], > Columnview.Item[2], Columnview.item[3] etc... > > UNTIL Columnview.Movenext() > Movenext is not documented,(it exist?) but it give me the same result as using MoveBelow: Type mismatch: wanted Boolean, got Function Instead -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Aggiorna la playlist del cellulare con tante nuove suonerie! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7748&d=26-8 From sourceforge-raindog2 at ...94... Tue Aug 26 14:48:38 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 26 Aug 2008 08:48:38 -0400 Subject: [Gambas-user] text files In-Reply-To: <20080826111715.46F003DA16D@...1961...> References: <20080826111715.46F003DA16D@...1961...> Message-ID: <200808260848.39096.sourceforge-raindog2@...94...> On Tuesday 26 August 2008 07:17, Mike wrote: > How do I save a text file without extra chars at the start of the file. > If I save with the following code there is one extra char added to the > start of the file. > WRITE #hfile, "Stuff" > If I use a very long string I get two chars added at the start of the file. "WRITE" writes its arguments in binary format, which includes the length of the string in this case. You want PRINT. Rob From jscops at ...11... Tue Aug 26 14:50:44 2008 From: jscops at ...11... (Jacky) Date: Tue, 26 Aug 2008 14:50:44 +0200 Subject: [Gambas-user] Columnview, how to read? In-Reply-To: <48B3ECE0.1090300@...324...> References: <48B3BFB8.1080607@...324...> <200808261220.50700.jscops@...11...> <48B3ECE0.1090300@...324...> Message-ID: <200808261450.44471.jscops@...11...> Le Tuesday 26 August 2008 13:45:36 Fox, vous avez ?crit?: > Jacky wrote: > > Columnview.MoveFirst > > REPEAT > > Columnview.Item.Selected = TRUE > > 'here that you want to do with each data, Columnview.Item[1], > > Columnview.Item[2], Columnview.item[3] etc... > > > > UNTIL Columnview.Movenext() > > Movenext is not documented,(it exist?) > but it give me the same result as using MoveBelow: > > Type mismatch: wanted Boolean, got Function Instead Movenext() but not movenext. Use bracket ! From sbungay at ...981... Tue Aug 26 15:09:09 2008 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 26 Aug 2008 09:09:09 -0400 Subject: [Gambas-user] Loading an SVG... In-Reply-To: <200808260741.09819.jscops@...11...> References: <48B372C5.60400@...981...> <200808260741.09819.jscops@...11...> Message-ID: <48B40075.8030800@...981...> Jacky wrote: > Le Tuesday 26 August 2008 05:04:37 Stephen Bungay, vous avez ?crit : >> Having a bit of trouble loading an SVG file.... here's the bit that's >> failing.... >> >> PUBLIC hImage AS Image >> >> PUBLIC SUB Button1_Click() >> hImage = SVG.Load("/home/bungayst/Graphics/SVGFiles/TestImage1.svg") > > Hello Steve, > > I never works with svg file but try to use image.load > hImage = Image.Load("/home/bungayst/Graphics/SVGFiles/TestImage1.svg") > > Jacky > Hi Jacky That sort-of works... the image comes up with lots of black bars in it... it's not really usable. Thanks for the suggestion though... > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From _root at ...324... Tue Aug 26 15:12:44 2008 From: _root at ...324... (Fox) Date: Tue, 26 Aug 2008 15:12:44 +0200 Subject: [Gambas-user] Columnview, how to read? In-Reply-To: <200808261450.44471.jscops@...11...> References: <48B3BFB8.1080607@...324...> <200808261220.50700.jscops@...11...> <48B3ECE0.1090300@...324...> <200808261450.44471.jscops@...11...> Message-ID: <48B4014C.9050304@...324...> Jacky wrote: > Le Tuesday 26 August 2008 13:45:36 Fox, vous avez ?crit : > >> Jacky wrote: >> >>> Columnview.MoveFirst >>> REPEAT >>> Columnview.Item.Selected = TRUE >>> 'here that you want to do with each data, Columnview.Item[1], >>> Columnview.Item[2], Columnview.item[3] etc... >>> >>> UNTIL Columnview.Movenext() >>> >> Movenext is not documented,(it exist?) >> but it give me the same result as using MoveBelow: >> >> Type mismatch: wanted Boolean, got Function Instead >> > > Movenext() but not movenext. Use bracket ! > > Sorry! you are right! but: PUBLIC SUB TESTB_Click() Columnview1.MoveFirst REPEAT Columnview1.Item.Selected = TRUE TextBox1.text = Columnview1.Item[3] UNTIL Columnview1.MoveNext() END If I place a breakpoint on "TextBox1.text = Columnview1.Item[3]" I can observe that it doesn't change. Columnview1.Item[3] show me ever the first the content of first row, column 3 Seems that using ColumnView1.Item.MoveFirst do something... but really, i can't understand how this control works. -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Libera la tua voglia di giocare. Scarica Videogames sul cellulare! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7753&d=26-8 From wdahn at ...1000... Tue Aug 26 15:59:02 2008 From: wdahn at ...1000... (Werner) Date: Tue, 26 Aug 2008 21:59:02 +0800 Subject: [Gambas-user] Columnview, how to read? In-Reply-To: <48B4014C.9050304@...324...> References: <48B3BFB8.1080607@...324...> <200808261220.50700.jscops@...11...> <48B3ECE0.1090300@...324...> <200808261450.44471.jscops@...11...> <48B4014C.9050304@...324...> Message-ID: <48B40C26.4070104@...1000...> > > Seems that using ColumnView1.Item.MoveFirst do something... > but really, i can't understand how this control works. > > It is true, understanding a ColumnView is not so easy. There are so many parameters. I have included a mockup JukeBox application with 2 columnviews where data is copied between 2 columnviews; sorting and a few other things. Maybe it helps. Especially, the subroutine MovecvwItems might interest you. Regards Werner -------------- next part -------------- A non-text attachment was scrubbed... Name: cvwDemo.tar.gz Type: application/x-gzip Size: 11842 bytes Desc: not available URL: From robertsonhamish at ...626... Tue Aug 26 16:07:46 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Tue, 26 Aug 2008 21:07:46 +0700 Subject: [Gambas-user] Edit a text file? Message-ID: Hi guys, I'm making a metapackage creator script in gambas and need some help manipulating text. I have a txt file like this... Package: barry Version: 1.0 Section: unknown Priority: optional Maintainer: Superdeb! Architecture: i386 Depends: ckermit_211-8ubuntu1, libsocksd_1.1.18-2.1, openbsd-inetd_0.20050402-6 Description: This is the metapackage used to install barry But i need it to look like this; Package: barry Version: 1.0 Section: unknown Priority: optional Maintainer: Superdeb! Architecture: i386 Depends: ckermit, libsocksd, openbsd-inetd Description: This is the metapackage used to install barry Any Ideas on how to do this with Gambas or perl or awk? Thanks guys! From _root at ...324... Tue Aug 26 16:11:18 2008 From: _root at ...324... (Fox) Date: Tue, 26 Aug 2008 16:11:18 +0200 Subject: [Gambas-user] Columnview, how to read? In-Reply-To: <48B40C26.4070104@...1000...> References: <48B3BFB8.1080607@...324...> <200808261220.50700.jscops@...11...> <48B3ECE0.1090300@...324...> <200808261450.44471.jscops@...11...> <48B4014C.9050304@...324...> <48B40C26.4070104@...1000...> Message-ID: <48B40F06.3000501@...324...> Werner wrote: > It is true, understanding a ColumnView is not so easy. There are so > many parameters. > I have included a mockup JukeBox application with 2 columnviews where > data is copied between 2 columnviews; sorting and a few other things. > Maybe it helps. > > Especially, the subroutine MovecvwItems might interest you. > Thankyou but I think that now is ok.... it works: simply the first example: ... CVListamateriale.MoveFirst FOR i = 0 TO (CVListamateriale.count - 1) S_picture = CVListamateriale.Item.Picture S_UM = CVListamateriale.Item[0] S_Q = CVListamateriale.Item[1] S_cod = CVListamateriale.Item[2] S_desc = CVListamateriale.Item[3] S_costo = CVListamateriale.Item[4] S_data = CVListamateriale.Item[5] FMain.GLM_additems(S_picture, S_UM, S_Q, S_cod, S_desc, S_costo, S_data) CVListamateriale.MoveBelow NEXT ... I don't know why, i remake sub after sub, now it works. seems that if you put something in the process make the pointer reset his position For example, is i put instead of: S_picture = CVListamateriale.Item.Picture --> S_picture = CVListamateriale.Item.Picture it doesn't work correctly. Also is a bit difficult because in the example you can see Items numbered in vertical mode, but item refers to columns instead. *mumble...* sorry for this thread... and thankyou very much Thankyou all. -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Impazzisci per Vasco? Scarica ora il mondo che vorrei sul cellulare Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7750&d=26-8 From ron at ...1740... Tue Aug 26 16:13:19 2008 From: ron at ...1740... (Ron) Date: Tue, 26 Aug 2008 16:13:19 +0200 Subject: [Gambas-user] Feature request IDE Message-ID: <48B40F7F.2070003@...1740...> One small suggestion; When you edit a form, specially the code below it, when you switch to another form to edit, and you go back to the previous form, you end up in the GUI editor of that form, instead of the code window you where before. Is it possible to remember this, and go directly back to the code window of a form if that was open during the last edit of that form? (hope my explanation is not to chaotic), now if you copy code from one form to another, you have to switch modes everytime. Regards, Ron_2nd From nando_f at ...951... Tue Aug 26 19:42:18 2008 From: nando_f at ...951... (nando) Date: Tue, 26 Aug 2008 12:42:18 -0500 Subject: [Gambas-user] text files In-Reply-To: <200808260848.39096.sourceforge-raindog2@...94...> References: <20080826111715.46F003DA16D@...1961...> <200808260848.39096.sourceforge-raindog2@...94...> Message-ID: <20080826173852.M1525@...951...> I use WRITE a lot and was confused at the beginning. There are two different methods... WRITE #hfile, "Stuff" 'This writes 7 bytes to file <2 Byte length> + 'Stuff' WRITE #hfile, "Stuff",5 'This writes 5 bytes to file 'Stuff' with nothing extra. If you do not have the length, then the 2 byte is always prefixed indicating the actual length written. -Fernando ---------- Original Message ----------- From: Rob To: gambas-user at lists.sourceforge.net Sent: Tue, 26 Aug 2008 08:48:38 -0400 Subject: Re: [Gambas-user] text files > On Tuesday 26 August 2008 07:17, Mike wrote: > > How do I save a text file without extra chars at the start of the file. > > If I save with the following code there is one extra char added to the > > start of the file. > > WRITE #hfile, "Stuff" > > If I use a very long string I get two chars added at the start of the file. > > "WRITE" writes its arguments in binary format, which includes the length of > the string in this case. You want PRINT. > > Rob > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From ron at ...1740... Tue Aug 26 20:50:47 2008 From: ron at ...1740... (Ron) Date: Tue, 26 Aug 2008 20:50:47 +0200 Subject: [Gambas-user] buttons at runtine, but then.. Message-ID: <48B45087.7000702@...1740...> Hi, I have to create number of buttons at runtime, (from a database) this works with this for example: hButton = NEW Button(FControl) WITH hButton .X = 200 .Y = iYy .Text = rDevice!name .height = 40 .width = 130 END WITH But how can I create the corresponding click events at runtime? The events needs to call a subroutine with an parameter also from the database. Do I need to create objects,and then add a string to a button name to create unique names? Someone has a pointer? Regards, Ron_2nd From m0e.lnx at ...626... Tue Aug 26 21:01:07 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 26 Aug 2008 14:00:07 -0501 Subject: [Gambas-user] buttons at runtine, but then.. In-Reply-To: <48B45087.7000702@...1740...> References: <48B45087.7000702@...1740...> Message-ID: <1f1e8c1b0808261201j247a4198h6a86dcf9bc353a14@...627...> What I do in a case like this is... first... assign a label to button instances.. Also, add a .tag property to each one of them (this helps adress them individually if you need to) Take a look as this hbutton = new Button(FControl) as "ControlBtn" WITH hButton .x = 200 .y = iYy .text = rDevice!name .height = 40 .width = 130 .tag = rDevice!name (you can change this as you want... it's a good idea to store a unique value here) END WITH Then, to create your click event you do it like this PUBLIC SUB ControlBtn_Click() message(last.tag & " Was clicked") END HTH On Tue, Aug 26, 2008 at 1:49 PM, Ron wrote: > Hi, > > I have to create number of buttons at runtime, (from a database) this > works with this for example: > > hButton = NEW Button(FControl) > WITH hButton > .X = 200 > .Y = iYy > .Text = rDevice!name > .height = 40 > .width = 130 > END WITH > > But how can I create the corresponding click events at runtime? > > The events needs to call a subroutine with an parameter also from the > database. > > Do I need to create objects,and then add a string to a button name to > create unique names? > > Someone has a pointer? > > Regards, > Ron_2nd > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Tue Aug 26 21:20:02 2008 From: ron at ...1740... (Ron) Date: Tue, 26 Aug 2008 21:20:02 +0200 Subject: [Gambas-user] buttons at runtine, but then.. In-Reply-To: <1f1e8c1b0808261201j247a4198h6a86dcf9bc353a14@...627...> References: <48B45087.7000702@...1740...> <1f1e8c1b0808261201j247a4198h6a86dcf9bc353a14@...627...> Message-ID: <48B45762.8050809@...1740...> Hi, Great, it works.... Thanks a lot for your fast and helpful response! Regards, Ron_2nd > What I do in a case like this is... first... assign a label to button > instances.. > Also, add a .tag property to each one of them (this helps adress them > individually if you need to) > > Take a look as this > hbutton = new Button(FControl) as "ControlBtn" > WITH hButton > .x = 200 > .y = iYy > .text = rDevice!name > .height = 40 > .width = 130 > .tag = rDevice!name (you can change this as you want... it's a good > idea to store a unique value here) > END WITH > > Then, to create your click event you do it like this > > PUBLIC SUB ControlBtn_Click() > message(last.tag & " Was clicked") > END > > > > HTH > > On Tue, Aug 26, 2008 at 1:49 PM, Ron wrote: > >> Hi, >> >> I have to create number of buttons at runtime, (from a database) this >> works with this for example: >> >> hButton = NEW Button(FControl) >> WITH hButton >> .X = 200 >> .Y = iYy >> .Text = rDevice!name >> .height = 40 >> .width = 130 >> END WITH >> >> But how can I create the corresponding click events at runtime? >> >> The events needs to call a subroutine with an parameter also from the >> database. >> >> Do I need to create objects,and then add a string to a button name to >> create unique names? >> >> Someone has a pointer? >> >> Regards, >> Ron_2nd >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> 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 Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From admin at ...1080... Tue Aug 26 23:36:41 2008 From: admin at ...1080... (werner 007) Date: Tue, 26 Aug 2008 14:36:41 -0700 (PDT) Subject: [Gambas-user] Edit a text file? In-Reply-To: References: Message-ID: <19170893.post@...1379...> Hi Hamish Not really sure what you mean, but.. you need to open the file, find the position "Depends:" change the text until position "Description" and save it. There are many possibilities to do it with Gambas, look at the help (open, input, read, print and so on). A solution could also be to manipulate with arrays: DIM content1 AS String[] DIM content2 AS String[] DIM row1 AS String DIM row2 AS String content1 = Split(File.Load("YourFile"), "\n") 'load textfile in array FOR EACH row1 IN content ' and loop trough IF LEFT(row1,8)="Depends:" then ' position to change content2=Split(MID(row1,8),",") ' load the parts for EACH row2 in content2 ' loop to manipulate row2 = left(row2,instr(row2,"_")-1) ' cut version info NEXT row1="Depends: " & JOIN(content2,",") ' put it together end if NEXT OPEN "YourFile" FOR CREATE AS #FileID ' create file PRINT #fileID, JOIN(content,"\n") ' write CLOSE #fileID Wrote this out of my head, so you would need to correct many things. Meant only as idea. Anyway i would prefer to use the file stream object and read/write direct to it. Regards, Werner(007) -- View this message in context: http://www.nabble.com/Edit-a-text-file--tp19162815p19170893.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Aug 27 10:53:26 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 27 Aug 2008 10:53:26 +0200 Subject: [Gambas-user] wiki DeskTop.Find missing syntax In-Reply-To: <200808221737.46488.ronstk@...239...> References: <200808221737.46488.ronstk@...239...> Message-ID: <200808271053.26528.gambas@...1...> On vendredi 22 ao?t 2008, Ron Onstenk wrote: > In the wiki the DeskTop.Find is missing the 'Syntax' box. > Also the in the 3.0 version and both differs in the head. > DeskTop.Find versus Find > > Ron 1st It should be fixed now. -- Benoit Minisini From gambas at ...1... Wed Aug 27 10:55:56 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 27 Aug 2008 10:55:56 +0200 Subject: [Gambas-user] gambasdoc.org bug In-Reply-To: <200808241631.55941.lordheavym@...626...> References: <200808241631.55941.lordheavym@...626...> Message-ID: <200808271055.56930.gambas@...1...> On dimanche 24 ao?t 2008, Laurent Carlier wrote: > The title of the page is always added when using then syntax{....} > statement. > > See http://www.gambasdoc.org/help/tutorial/testloop > > When using the {syntax ... } box, you must specify "no-title" after the "syntax" keyword, otherwise the page title is automatically repeated. This is a feature, not a bug. :-) Regards, -- Benoit Minisini From gambas at ...1... Wed Aug 27 10:45:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 27 Aug 2008 10:45:13 +0200 Subject: [Gambas-user] Autoconf tools question In-Reply-To: <1f1e8c1b0808181902q7833a145rf973b789898914ae@...627...> References: <1f1e8c1b0808181902q7833a145rf973b789898914ae@...627...> Message-ID: <200808271045.13725.gambas@...1...> On mardi 19 ao?t 2008, M0E Lnx wrote: > I've gotten my application to package with the autoconf tools creator > from the IDE (very nice (in version 2.8 the DESTDIR is supported)). I > have a question > How can I make these scripts run additional tests?. > My application for instance uses other things such as Python, CMake... > etc, how can I make the configure script check for these too? > > Any help is appreciated > > Thanks > Alas, at the moment, this is not possible. Unless you modify the autoconf package by hand each time it is generated! Something to enhance in the package generator... -- Benoit Minisini From lordheavym at ...626... Wed Aug 27 11:47:03 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 27 Aug 2008 11:47:03 +0200 Subject: [Gambas-user] Autoconf tools question In-Reply-To: <200808271045.13725.gambas@...1...> References: <1f1e8c1b0808181902q7833a145rf973b789898914ae@...627...> <200808271045.13725.gambas@...1...> Message-ID: <200808271147.05568.lordheavym@...626...> Le Wednesday 27 August 2008 10:45:13 Benoit Minisini, vous avez ?crit : > On mardi 19 ao?t 2008, M0E Lnx wrote: > > I've gotten my application to package with the autoconf tools creator > > from the IDE (very nice (in version 2.8 the DESTDIR is supported)). I > > have a question > > How can I make these scripts run additional tests?. > > My application for instance uses other things such as Python, CMake... > > etc, how can I make the configure script check for these too? > > > > Any help is appreciated > > > > Thanks > > Alas, at the moment, this is not possible. Unless you modify the autoconf > package by hand each time it is generated! > > Something to enhance in the package generator... Perhaps it should be feasable through a m4 macro, something like GB_EXTRA_CHECKS() and a failed var (.disable file the gambas included components ?). Next step should be where in the project we can place this file in the project (or import it everytime we build the autoconf/.... package). So it's feasable in the 3.0 branch and perhaps a backport is possible for 2.0 branch. ++ From m0e.lnx at ...626... Wed Aug 27 14:54:07 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 27 Aug 2008 07:53:07 -0501 Subject: [Gambas-user] Autoconf tools question In-Reply-To: <200808271147.05568.lordheavym@...626...> References: <1f1e8c1b0808181902q7833a145rf973b789898914ae@...627...> <200808271045.13725.gambas@...1...> <200808271147.05568.lordheavym@...626...> Message-ID: <1f1e8c1b0808270554s23412f85vdc3a069275fb7050@...627...> I'm willing to test (pretty much all I can do) but I do appreciate you guys considering it. I suposse many people will write their appliactions in gambas and will need to depend on something else... so it'll help to have it run checks for those dependancies as well. Even if it means specifying them by name (each developer should know what his/her app depends on) On Wed, Aug 27, 2008 at 4:46 AM, Laurent Carlier wrote: > Le Wednesday 27 August 2008 10:45:13 Benoit Minisini, vous avez ?crit : >> On mardi 19 ao?t 2008, M0E Lnx wrote: >> > I've gotten my application to package with the autoconf tools creator >> > from the IDE (very nice (in version 2.8 the DESTDIR is supported)). I >> > have a question >> > How can I make these scripts run additional tests?. >> > My application for instance uses other things such as Python, CMake... >> > etc, how can I make the configure script check for these too? >> > >> > Any help is appreciated >> > >> > Thanks >> >> Alas, at the moment, this is not possible. Unless you modify the autoconf >> package by hand each time it is generated! >> >> Something to enhance in the package generator... > > Perhaps it should be feasable through a m4 macro, something like > GB_EXTRA_CHECKS() and a failed var (.disable file the gambas included > components ?). Next step should be where in the project we can place this file > in the project (or import it everytime we build the autoconf/.... package). > > So it's feasable in the 3.0 branch and perhaps a backport is possible for 2.0 > branch. > > ++ > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kazutaka802 at ...1907... Wed Aug 27 15:40:38 2008 From: kazutaka802 at ...1907... (HARADA Kazutaka) Date: Wed, 27 Aug 2008 22:40:38 +0900 Subject: [Gambas-user] Tray icon not updated sometimes Message-ID: <48B55956.8010000@...1907...> Hi, Another problem for tray icon found. With gambas2-2.8.1, I found that the picture of tray icon is not updated (changed) sometimes. I wrote a small project to reproduce it. - create new form and put a trayicon in it - set default picutre of trayicon (TrayIcon1.Picture="blue.png") - then put following code in the class PUBLIC SUB Form_Show() SLEEP 3 TrayIcon1.Picture = Picture["green.png"] SLEEP 3 TrayIcon1.Picture = Picture["yhellow.png"] SLEEP 3 TrayIcon1.Picture = Picture["red.png"] END Then run it and wait for 10 seconds. Finally "red.png" picture is shown on trayicon but "green.png" and "yellow.png" are not. This happens both gb.qt and gb.gtk. I'm using gtk+-2.12.11 and qt-3.3.8 with gnome-2.22.3. -- -------------------------------------- Kazutaka HARADA e-mail:kazutaka802 at ...1907... -------------------------------------- From gambas at ...1... Wed Aug 27 15:56:21 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 27 Aug 2008 15:56:21 +0200 Subject: [Gambas-user] Tray icon not updated sometimes In-Reply-To: <48B55956.8010000@...1907...> References: <48B55956.8010000@...1907...> Message-ID: <200808271556.21614.gambas@...1...> On mercredi 27 ao?t 2008, HARADA Kazutaka wrote: > Hi, > > Another problem for tray icon found. > > With gambas2-2.8.1, I found that the picture of tray icon is not > updated (changed) sometimes. > > I wrote a small project to reproduce it. > - create new form and put a trayicon in it > - set default picutre of trayicon (TrayIcon1.Picture="blue.png") > - then put following code in the class > > PUBLIC SUB Form_Show() > > SLEEP 3 > TrayIcon1.Picture = Picture["green.png"] > SLEEP 3 > TrayIcon1.Picture = Picture["yhellow.png"] > SLEEP 3 > TrayIcon1.Picture = Picture["red.png"] > > END > > Then run it and wait for 10 seconds. > Finally "red.png" picture is shown on trayicon but "green.png" and > "yellow.png" are not. > > This happens both gb.qt and gb.gtk. > > I'm using gtk+-2.12.11 and qt-3.3.8 with gnome-2.22.3. What happens if you replace "SLEEP" by "WAIT"? -- Benoit Minisini From kazutaka802 at ...1907... Wed Aug 27 16:35:54 2008 From: kazutaka802 at ...1907... (HARADA Kazutaka) Date: Wed, 27 Aug 2008 23:35:54 +0900 Subject: [Gambas-user] Tray icon not updated sometimes In-Reply-To: <200808271556.21614.gambas@...1...> References: <48B55956.8010000@...1907...> <200808271556.21614.gambas@...1...> Message-ID: <48B5664A.1090101@...1907...> Benoit Minisini wrote: >> PUBLIC SUB Form_Show() >> >> SLEEP 3 >> TrayIcon1.Picture = Picture["green.png"] >> SLEEP 3 >> TrayIcon1.Picture = Picture["yhellow.png"] >> SLEEP 3 >> TrayIcon1.Picture = Picture["red.png"] >> >> END >> > What happens if you replace "SLEEP" by "WAIT"? > Woks fine! But, in my another project, which using trayicon, does not works fine. TrayIcon.Picture is not updated immediately. OK, I will check it again and report it later if I found something.^^; Thaks, -- -------------------------------------- Kazutaka HARADA e-mail:kazutaka802 at ...1907... -------------------------------------- From kazutaka802 at ...1907... Wed Aug 27 16:43:05 2008 From: kazutaka802 at ...1907... (HARADA Kazutaka) Date: Wed, 27 Aug 2008 23:43:05 +0900 Subject: [Gambas-user] Tray icon not updated sometimes In-Reply-To: <48B5664A.1090101@...1907...> References: <48B55956.8010000@...1907...> <200808271556.21614.gambas@...1...> <48B5664A.1090101@...1907...> Message-ID: <48B567F9.8090905@...1907...> HARADA Kazutaka wrote: > Woks fine! > > But, in my another project, which using trayicon, does not works fine. > TrayIcon.Picture is not updated immediately. > > OK, I will check it again and report it later if I found something.^^; > Sorry, my previous post was bit wrong. This only happens for gb.gtk, not for gb.qt. If I change SLEEP to WAIT, then qb.qt works good but gb.gtk doesn't. Seems bug in gb.gtk. Mmm... -- -------------------------------------- Kazutaka HARADA e-mail:kazutaka802 at ...1907... -------------------------------------- From gambas at ...1... Wed Aug 27 16:46:54 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 27 Aug 2008 16:46:54 +0200 Subject: [Gambas-user] Tray icon not updated sometimes In-Reply-To: <48B567F9.8090905@...1907...> References: <48B55956.8010000@...1907...> <48B5664A.1090101@...1907...> <48B567F9.8090905@...1907...> Message-ID: <200808271646.54059.gambas@...1...> On mercredi 27 ao?t 2008, HARADA Kazutaka wrote: > HARADA Kazutaka wrote: > > Woks fine! > > > > But, in my another project, which using trayicon, does not works fine. > > TrayIcon.Picture is not updated immediately. > > > > OK, I will check it again and report it later if I found something.^^; > > Sorry, my previous post was bit wrong. > > This only happens for gb.gtk, not for gb.qt. > > If I change SLEEP to WAIT, then qb.qt works good but gb.gtk doesn't. > > Seems bug in gb.gtk. > > Mmm... Yes, actually the icon is not automatically refreshed. It will be fixed in a next commit. Regards, -- Benoit Minisini From joshiggins at ...1601... Wed Aug 27 20:39:52 2008 From: joshiggins at ...1601... (joshiggins) Date: Wed, 27 Aug 2008 11:39:52 -0700 (PDT) Subject: [Gambas-user] gambas program to see screen resolution Message-ID: <19187146.post@...1379...> Hello. Is there a built in routine for gambas to detect the current screen resolution? -- View this message in context: http://www.nabble.com/gambas-program-to-see-screen-resolution-tp19187146p19187146.html Sent from the gambas-user mailing list archive at Nabble.com. From rospolosco at ...152... Wed Aug 27 20:54:17 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 27 Aug 2008 20:54:17 +0200 Subject: [Gambas-user] gambas program to see screen resolution In-Reply-To: <19187146.post@...1379...> References: <19187146.post@...1379...> Message-ID: <200808272054.17586.rospolosco@...152...> Il mercoled? 27 agosto 2008 20:39:52 joshiggins ha scritto: > Hello. > > Is there a built in routine for gambas to detect the current screen > resolution? PRINT Desktop.Height PRINT Desktop.Width PRINT Desktop.Resolution Bye. From lordheavym at ...626... Thu Aug 28 02:30:16 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 28 Aug 2008 02:30:16 +0200 Subject: [Gambas-user] Autoconf tools question In-Reply-To: <1f1e8c1b0808270554s23412f85vdc3a069275fb7050@...627...> References: <1f1e8c1b0808181902q7833a145rf973b789898914ae@...627...> <200808271147.05568.lordheavym@...626...> <1f1e8c1b0808270554s23412f85vdc3a069275fb7050@...627...> Message-ID: <200808280230.16381.lordheavym@...626...> Le Wednesday 27 August 2008 14:54:07 M0E Lnx, vous avez ?crit : > I'm willing to test (pretty much all I can do) but I do appreciate you > guys considering it. I suposse many people will write their > appliactions in gambas and will need to depend on something else... so > it'll help to have it run checks for those dependancies as well. Even > if it means specifying them by name (each developer should know what > his/her app depends on) > > On Wed, Aug 27, 2008 at 4:46 AM, Laurent Carlier wrote: > > Le Wednesday 27 August 2008 10:45:13 Benoit Minisini, vous avez ?crit : > >> On mardi 19 ao?t 2008, M0E Lnx wrote: > >> > I've gotten my application to package with the autoconf tools creator > >> > from the IDE (very nice (in version 2.8 the DESTDIR is supported)). I > >> > have a question > >> > How can I make these scripts run additional tests?. > >> > My application for instance uses other things such as Python, CMake... > >> > etc, how can I make the configure script check for these too? > >> > > >> > Any help is appreciated > >> > > >> > Thanks > >> You can find some preliminary work on the 3.0 branch. You can add extra tests (you need to know how configure script work (see autoconf.automake docs)). Your script will be add at the end of the configure script. See http://gambas.svn.sourceforge.net/gambas/?rev=1520&view=rev ++ From tomas.eroles at ...277... Thu Aug 28 11:51:31 2008 From: tomas.eroles at ...277... (Tomas Eroles i Forner) Date: Thu, 28 Aug 2008 11:51:31 +0200 Subject: [Gambas-user] Best control for a game Message-ID: <1219917091.4753.4.camel@...1787...> Hi all I'm trying to write a gambas scrabble (yes, I'm in holidays :-), and I'm thinking which is the best control to do that. I've tried to use a 15x15 matrix text label, but I think perhaps there is a better control. What do you think about? If using a GridView or TableView, is it possible to paint some squares (for 2xWord, 3xWord, 2xLetter...) Thanks in advance From gambas at ...1... Thu Aug 28 11:57:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 28 Aug 2008 11:57:03 +0200 Subject: [Gambas-user] Best control for a game In-Reply-To: <1219917091.4753.4.camel@...1787...> References: <1219917091.4753.4.camel@...1787...> Message-ID: <200808281157.04022.gambas@...1...> On jeudi 28 ao?t 2008, Tomas Eroles i Forner wrote: > Hi all > I'm trying to write a gambas scrabble (yes, I'm in holidays :-), and I'm > thinking which is the best control to do that. > I've tried to use a 15x15 matrix text label, but I think perhaps there > is a better control. > > What do you think about? > If using a GridView or TableView, is it possible to paint some squares > (for 2xWord, 3xWord, 2xLetter...) > > Thanks in advance Draw everything yourself in a DrawingArea, this is the fastest. Or create your own "scrabble cell" control based on a DrawingArea, and put 225 of them inside a container. Regards, -- Benoit Minisini From tomas.eroles at ...277... Thu Aug 28 12:03:38 2008 From: tomas.eroles at ...277... (Tomas Eroles i Forner) Date: Thu, 28 Aug 2008 12:03:38 +0200 Subject: [Gambas-user] Best control for a game In-Reply-To: <1219917091.4753.4.camel@...1787...> References: <1219917091.4753.4.camel@...1787...> Message-ID: <1219917818.4753.7.camel@...1787...> Hello anyway. Don't worry, I've found it. I will use a GridView. It seems to work: I can colour the cells, put some text and so on. Thanks anyway El dj 28 de 08 del 2008 a les 11:51 +0200, en/na Tomas Eroles i Forner va escriure: > Hi all > I'm trying to write a gambas scrabble (yes, I'm in holidays :-), and I'm > thinking which is the best control to do that. > I've tried to use a 15x15 matrix text label, but I think perhaps there > is a better control. > > What do you think about? > If using a GridView or TableView, is it possible to paint some squares > (for 2xWord, 3xWord, 2xLetter...) > > Thanks in advance > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From tomas.eroles at ...277... Thu Aug 28 12:07:07 2008 From: tomas.eroles at ...277... (Tomas Eroles i Forner) Date: Thu, 28 Aug 2008 12:07:07 +0200 Subject: [Gambas-user] Best control for a game In-Reply-To: <200808281157.04022.gambas@...1...> References: <1219917091.4753.4.camel@...1787...> <200808281157.04022.gambas@...1...> Message-ID: <1219918027.4753.9.camel@...1787...> Thanks Benoit. I will work on it El dj 28 de 08 del 2008 a les 11:57 +0200, en/na Benoit Minisini va escriure: > On jeudi 28 ao?t 2008, Tomas Eroles i Forner wrote: > > Hi all > > I'm trying to write a gambas scrabble (yes, I'm in holidays :-), and I'm > > thinking which is the best control to do that. > > I've tried to use a 15x15 matrix text label, but I think perhaps there > > is a better control. > > > > What do you think about? > > If using a GridView or TableView, is it possible to paint some squares > > (for 2xWord, 3xWord, 2xLetter...) > > > > Thanks in advance > > Draw everything yourself in a DrawingArea, this is the fastest. > > Or create your own "scrabble cell" control based on a DrawingArea, and put 225 > of them inside a container. > > Regards, > From m0e.lnx at ...626... Thu Aug 28 16:21:00 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 28 Aug 2008 09:21:00 -0500 Subject: [Gambas-user] Autoconf tools question In-Reply-To: <200808280230.16381.lordheavym@...626...> References: <1f1e8c1b0808181902q7833a145rf973b789898914ae@...627...> <200808271147.05568.lordheavym@...626...> <1f1e8c1b0808270554s23412f85vdc3a069275fb7050@...627...> <200808280230.16381.lordheavym@...626...> Message-ID: <1f1e8c1b0808280721q3ba70780v7d630789149b6b2@...627...> Any way to test this in gambas2 yet? my app is written in g2 On Wed, Aug 27, 2008 at 7:30 PM, Laurent Carlier wrote: > Le Wednesday 27 August 2008 14:54:07 M0E Lnx, vous avez ?crit : >> I'm willing to test (pretty much all I can do) but I do appreciate you >> guys considering it. I suposse many people will write their >> appliactions in gambas and will need to depend on something else... so >> it'll help to have it run checks for those dependancies as well. Even >> if it means specifying them by name (each developer should know what >> his/her app depends on) >> >> On Wed, Aug 27, 2008 at 4:46 AM, Laurent Carlier > wrote: >> > Le Wednesday 27 August 2008 10:45:13 Benoit Minisini, vous avez ?crit : >> >> On mardi 19 ao?t 2008, M0E Lnx wrote: >> >> > I've gotten my application to package with the autoconf tools creator >> >> > from the IDE (very nice (in version 2.8 the DESTDIR is supported)). I >> >> > have a question >> >> > How can I make these scripts run additional tests?. >> >> > My application for instance uses other things such as Python, CMake... >> >> > etc, how can I make the configure script check for these too? >> >> > >> >> > Any help is appreciated >> >> > >> >> > Thanks >> >> > > You can find some preliminary work on the 3.0 branch. > > You can add extra tests (you need to know how configure script work (see > autoconf.automake docs)). Your script will be add at the end of the configure > script. > > See http://gambas.svn.sourceforge.net/gambas/?rev=1520&view=rev > > ++ > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wspinto at ...1405... Thu Aug 28 15:12:15 2008 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Thu, 28 Aug 2008 10:12:15 -0300 Subject: [Gambas-user] Problem with migration of gambas2.81 to gambas3 Message-ID: <1219929135.48b6a42f72f64@...1418...> Hi! My project is in gambas2.80 and i interested in migrate for gambas3. I copy my project for other directory. When i call in gambas3, my fonts and objects in forms are crazy. Any small size, others very big sizes. Any ideia???? PS: My english is not very well. Reguards, Souza, Wellington --------------------------------------------------------------- |||||/ Wellington de Souza Pinto C o o ] wspinto at ...1405... ^ -x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x- ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From steven at ...1652... Thu Aug 28 21:38:34 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Thu, 28 Aug 2008 21:38:34 +0200 Subject: [Gambas-user] Allocations non freed Message-ID: <1219952314.3600.22.camel@...1936...> Hi, I'm getting more and more messages like this : WARNING: 978 allocation(s) non freed. What does it mean ? Is it serious ? What can I do if it is ? Steven From rterry at ...1946... Thu Aug 28 23:22:21 2008 From: rterry at ...1946... (richard terry) Date: Fri, 29 Aug 2008 07:22:21 +1000 Subject: [Gambas-user] Q:how to save a file.png into Postgresql Message-ID: <200808290722.21869.rterry@...1946...> I've adapted the IDE icon editor to load my own pictures in my program, draw on them and save the file, but now need to save the result to disk. Two options. 1) Save the changed diagram. 2) or somehow just save the changed bits of the picture - perhaps one can just paint on a transparent overlay? I've no idea. Anway, as an interim step I wondered if anyone could give me a line of sql code to insert a picture into postgres. I looked at the docs and the nearest I could think was maybe using the bytea type of data field. Any help appreciated. Thanks Richard From sbungay at ...981... Fri Aug 29 06:24:14 2008 From: sbungay at ...981... (Stephen Bungay) Date: Fri, 29 Aug 2008 00:24:14 -0400 Subject: [Gambas-user] Q:how to save a file.png into Postgresql In-Reply-To: <200808290722.21869.rterry@...1946...> References: <200808290722.21869.rterry@...1946...> Message-ID: <48B779EE.9000405@...981...> Just because something can be done one has to ask the question should it be done? While saving things like PNG or audio files in a database certainly has the appeal of convenience, over the long-haul such a practice may end up coming back to haunt the programmer/designer. File systems are very good at storing and organizing... well... files. Relational databases are very good at storing and retrieving information that is not well suited to raw file systems. In my experience (and I can only speak for myself) the use of a database to store a the path and filename, but not the actual file, puts the tools at our disposal to good effective use, essentially allowing the programmer to index the file system within the database. Storing Large Binary objects in a database can negatively impact caching (and therefore overall database performance). On the other hand, storing the file names and locations as simple text strings allows the programmer to treat the data as a pointer and pass the "pointer" to other more specialized programs. The image-viewers, audio players, or what-have-you, are then left to do what they do best, deal with the files they are pointed at. I know I didn't answer your question, I'm not all that familiar with Postgres. Some quick googling finds that bytea, large object, and text can all store 2GB... with different performance hits, limitations, and general "gotchas". Steve. richard terry wrote: > I've adapted the IDE icon editor to load my own pictures in my program, draw > on them and save the file, but now need to save the result to disk. > > Two options. > 1) Save the changed diagram. > 2) or somehow just save the changed bits of the picture - perhaps one can just > paint on a transparent overlay? I've no idea. > > Anway, as an interim step I wondered if anyone could give me a line of sql > code to insert a picture into postgres. I looked at the docs and the nearest > I could think was maybe using the bytea type of data field. > > Any help appreciated. > > Thanks > > Richard > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Fri Aug 29 06:49:38 2008 From: rterry at ...1946... (richard terry) Date: Fri, 29 Aug 2008 14:49:38 +1000 Subject: [Gambas-user] Q:how to save a file.png into Postgresql In-Reply-To: <48B779EE.9000405@...981...> References: <200808290722.21869.rterry@...1946...> <48B779EE.9000405@...981...> Message-ID: <200808291449.38963.rterry@...1946...> On Fri, 29 Aug 2008 02:24:14 pm Stephen Bungay wrote: > Just because something can be done one has to ask the question should > it be done? Thanks stephen for your reply. This is a mission-critical database - its an updated version of my medical records program which I've used for 10 years, I'm re-writing for linux. Mission-critical and medico-legal. The files are only 2k each for simple sketches, larger of course when I get around to saving photo's of skin lesions. In my old program I did exactly as you say - stored the name/path of the files, but in this one I want to (at least attempt) to save the file into the database for back-up purposes. Daily database backups are probably less likely to lose data than files exposed to the native file-system with inadvertant deletion possible. I have looked at the bytea - I just cannot interpret how to use it, or to know how to start in gambas. Regards Richard > While saving things like PNG or audio files in a database certainly > has the appeal of convenience, over the long-haul such a practice may > end up coming back to haunt the programmer/designer. > File systems are very good at storing and organizing... well... > files. Relational databases are very good at storing and retrieving > information that is not well suited to raw file systems. > In my experience (and I can only speak for myself) the use of a > database to store a the path and filename, but not the actual file, puts > the tools at our disposal to good effective use, essentially allowing > the programmer to index the file system within the database. > Storing Large Binary objects in a database can negatively impact > caching (and therefore overall database performance). On the other hand, > storing the file names and locations as simple text strings allows the > programmer to treat the data as a pointer and pass the "pointer" to > other more specialized programs. The image-viewers, audio players, or > what-have-you, are then left to do what they do best, deal with the > files they are pointed at. > I know I didn't answer your question, I'm not all that familiar with > Postgres. Some quick googling finds that bytea, large object, and text > can all store 2GB... with different performance hits, limitations, and > general "gotchas". > > Steve. > > richard terry wrote: > > I've adapted the IDE icon editor to load my own pictures in my program, > > draw on them and save the file, but now need to save the result to disk. > > > > Two options. > > 1) Save the changed diagram. > > 2) or somehow just save the changed bits of the picture - perhaps one can > > just paint on a transparent overlay? I've no idea. > > > > Anway, as an interim step I wondered if anyone could give me a line of > > sql code to insert a picture into postgres. I looked at the docs and the > > nearest I could think was maybe using the bytea type of data field. > > > > Any help appreciated. > > > > Thanks > > > > Richard > > > > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge Build the coolest Linux based applications with Moblin SDK & > > win great prizes Grand prize is a trip for two to an Open Source event > > anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From wdahn at ...1000... Fri Aug 29 07:35:03 2008 From: wdahn at ...1000... (Werner) Date: Fri, 29 Aug 2008 13:35:03 +0800 Subject: [Gambas-user] Q:how to save a file.png into Postgresql In-Reply-To: <200808291449.38963.rterry@...1946...> References: <200808290722.21869.rterry@...1946...> <48B779EE.9000405@...981...> <200808291449.38963.rterry@...1946...> Message-ID: <48B78A87.5030101@...1000...> richard terry wrote: > On Fri, 29 Aug 2008 02:24:14 pm Stephen Bungay wrote: > >> Just because something can be done one has to ask the question should >> it be done? >> > Thanks stephen for your reply. > > This is a mission-critical database - its an updated version of my medical > records program which I've used for 10 years, I'm re-writing for linux. > Mission-critical and medico-legal. > > The files are only 2k each for simple sketches, larger of course when I get > around to saving photo's of skin lesions. In my old program I did exactly as > you say - stored the name/path of the files, but in this one I want to (at > least attempt) to save the file into the database for back-up purposes. Daily > database backups are probably less likely to lose data than files exposed to > the native file-system with inadvertant deletion possible. > > I have looked at the bytea - I just cannot interpret how to use it, or to know > how to start in gambas. > > Regards > > Richard > > Yet another unhelpful post :-( If it is medical, why not go all the way and use DICOM? There are heaps of open source toolkits around. http://www.idoimaging.com/cgi-sys/cgiwrap/acrabb/imaging/programs.pl?func=4&page=7 Regards Werner From nxgtrturbo at ...626... Fri Aug 29 07:57:59 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Thu, 28 Aug 2008 22:57:59 -0700 Subject: [Gambas-user] Can create but not edit time-type fields Message-ID: <688afe140808282257l21eef680ja069163042b165ff@...627...> Can create but not edit time-type fields Hi, I have a problem with Gambas, I can create new records for a time-type field, but once created I cant edit them, all others field-types works perfect. The exact problem: "The old value replace the tried new value at save time" The database structure for the table is: CREATE TABLE pendientes ( folio INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, usuarios_nombre VARCHAR(20) NOT NULL, fecharegistro DATE NULL, fechapendiente DATE NULL, horapendiente TIME NULL, lugar VARCHAR(45) NULL, actividad VARCHAR(45) NULL, atiende VARCHAR(20) NULL, costo FLOAT NULL, fecharecordar DATE NULL, horapendiente_2 TIME NULL, alertacelular BOOL NULL, numerocelular VARCHAR(20) NULL, PRIMARY KEY(folio), INDEX pendientes_FKIndex1(usuarios_nombre) ); The problem is with the TIME fields, is a known problem or something? Any workaround? Thanks in advance, Nx GTR http://systemarpi.googlepages.com/arpi.tar.gz -- http://tallerhuertas.googlepages.com/ http://systemarpi.googlepages.com/ From rterry at ...1946... Fri Aug 29 09:59:21 2008 From: rterry at ...1946... (richard terry) Date: Fri, 29 Aug 2008 17:59:21 +1000 Subject: [Gambas-user] Q:how to save a file.png into Postgresql In-Reply-To: <48B78A87.5030101@...1000...> References: <200808290722.21869.rterry@...1946...> <200808291449.38963.rterry@...1946...> <48B78A87.5030101@...1000...> Message-ID: <200808291759.21471.rterry@...1946...> snip > Yet another unhelpful post :-( Ah, no not true. Will look at the DICOM if/when get around to imaging stuff. Much of the medical stuff is viewable over the web, and one wouldn't download CT's etc. My little drawings as 2K are miniscule things. My App is currently only a prototype in progress or rather should I say a feasability study in progress for myself to see if is possible/worthwhile completing it for my use next year. As I mentioned I've written medical software in the past, and what I didn't mention is that I was involved with the gnuMed project for quite some time (www.gnumed.net), but quit my involvment a couple of years back, because of the slow pace of develolpment and philosophical differences with some other team members. I became very proficient in gui-design on wxPython/python - liked the python language, but wx I still think sucks compared to Gambas. Gambas is pure joy!!!! for a gui designer. Having said that I still contribute to gnumed through both some of my legacy work and by passing on to Karsten the main developer, any new postgres schema structures that I've come up with for my own use which are AU specific, and we remain on good terms. My main interest in programming is the functionality and not the programming, as I am not (as you will have noticed from my posts) a particularly talented programmer - I often have huge amounts of trouble getting me head around it. Regards Richard > If it is medical, why not go all the way and use DICOM? There are heaps > of open source toolkits around. > > http://www.idoimaging.com/cgi-sys/cgiwrap/acrabb/imaging/programs.pl?func=4 >&page=7 > > Regards > Werner > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Aug 29 10:08:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 29 Aug 2008 10:08:57 +0200 Subject: [Gambas-user] Q:how to save a file.png into Postgresql In-Reply-To: <200808291759.21471.rterry@...1946...> References: <200808290722.21869.rterry@...1946...> <48B78A87.5030101@...1000...> <200808291759.21471.rterry@...1946...> Message-ID: <200808291008.57063.gambas@...1...> On vendredi 29 ao?t 2008, richard terry wrote: > snip > > > Yet another unhelpful post :-( > > Ah, no not true. > > Will look at the DICOM if/when get around to imaging stuff. Much of the > medical stuff is viewable over the web, and one wouldn't download CT's etc. > > My little drawings as 2K are miniscule things. > > My App is currently only a prototype in progress or rather should I say a > feasability study in progress for myself to see if is possible/worthwhile > completing it for my use next year. > > As I mentioned I've written medical software in the past, and what I didn't > mention is that I was involved with the gnuMed project for quite some time > (www.gnumed.net), but quit my involvment a couple of years back, because of > the slow pace of develolpment and philosophical differences with some other > team members. I became very proficient in gui-design on wxPython/python - > liked the python language, but wx I still think sucks compared to Gambas. > Gambas is pure joy!!!! for a gui designer. > > > Having said that I still contribute to gnumed through both some of my > legacy work and by passing on to Karsten the main developer, any new > postgres schema structures that I've come up with for my own use which are > AU specific, and we remain on good terms. > > My main interest in programming is the functionality and not the > programming, as I am not (as you will have noticed from my posts) a > particularly talented programmer - I often have huge amounts of trouble > getting me head around it. > > Regards > > Richard > Did you look at the "PictureDatabase" example? It stores images files from disk into a database, and retrieves them. Regards, -- Benoit Minisini From gambas at ...1... Fri Aug 29 10:11:17 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 29 Aug 2008 10:11:17 +0200 Subject: [Gambas-user] Feature request IDE In-Reply-To: <48B40F7F.2070003@...1740...> References: <48B40F7F.2070003@...1740...> Message-ID: <200808291011.17506.gambas@...1...> On mardi 26 ao?t 2008, Ron wrote: > One small suggestion; > > When you edit a form, specially the code below it, when you switch to > another form to edit, and you go back to the previous form, you end up > in the GUI editor of that form, instead of the code window you where > before. > > Is it possible to remember this, and go directly back to the code window > of a form if that was open during the last edit of that form? > (hope my explanation is not to chaotic), now if you copy code from one > form to another, you have to switch modes everytime. > > Regards, > Ron_2nd > Can you give more explanation please? I am not sure to really understand... -- Benoit Minisini From gambas at ...1... Fri Aug 29 10:14:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 29 Aug 2008 10:14:28 +0200 Subject: [Gambas-user] about combobox In-Reply-To: <48B3BB5C.7010203@...324...> References: <48B3BB5C.7010203@...324...> Message-ID: <200808291014.28844.gambas@...1...> On mardi 26 ao?t 2008, Fox wrote: > About combobox, we are talking about this control a little time ago. > There is a big difference from QT and GTK combobox. > Gtk combobox have trouble to manage long lists, try to fill with many > items, it make load for time and also you have trouble to search what > you need. > > QT combobox is not fast, is better, and also, when you have many items > you can find what you need very quickly because you can type the start > characters of you matching word. > > > I'm on a Debian sid 64b > Gambas 2.7 > > Are you talking about read-only combo-boxes or read/write combo-boxes? The implementation of GTK+ combo-box is not really optimal: can you detail what is slow exactly? With some code, or, better, a full project. Regards, -- Benoit Minisini From ron at ...1740... Fri Aug 29 10:42:40 2008 From: ron at ...1740... (Ron) Date: Fri, 29 Aug 2008 10:42:40 +0200 Subject: [Gambas-user] Feature request IDE In-Reply-To: <200808291011.17506.gambas@...1...> References: <48B40F7F.2070003@...1740...> <200808291011.17506.gambas@...1...> Message-ID: <48B7B680.2090107@...1740...> Benoit Minisini schreef: > On mardi 26 ao?t 2008, Ron wrote: > >> One small suggestion; >> >> When you edit a form, specially the code below it, when you switch to >> another form to edit, and you go back to the previous form, you end up >> in the GUI editor of that form, instead of the code window you where >> before. >> >> Is it possible to remember this, and go directly back to the code window >> of a form if that was open during the last edit of that form? >> (hope my explanation is not to chaotic), now if you copy code from one >> form to another, you have to switch modes everytime. >> >> Regards, >> Ron_2nd >> >> > > Can you give more explanation please? I am not sure to really understand... > > I'll try.. If you have several forms opened in the editor, and for some you have opened the .class of it to edit code, if you switch documents by double clicking on the form entry in the treeview on the left you always go to the already opened form (gui editor mode), and not the .class file which belongs to it. I think it would be nice if it opened the .class file instead of the form if that was the last state you where in before you opened another file. So open FTest.class instead of FTest.form if you where editing code in that .class file before and it's already open in the project. (basically remember the state of editing a form, .form or .class lastly opened) Hmm dunno if this is more clear, or i'm (which isn't the first time) the only one with this request, if so disregard it... Regards, Ron_2nd PS: I have donated some a few days ago , buy a beer on me for it ;-) From gambas at ...1... Fri Aug 29 10:48:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 29 Aug 2008 10:48:13 +0200 Subject: [Gambas-user] Feature request IDE In-Reply-To: <48B7B680.2090107@...1740...> References: <48B40F7F.2070003@...1740...> <200808291011.17506.gambas@...1...> <48B7B680.2090107@...1740...> Message-ID: <200808291048.13675.gambas@...1...> On vendredi 29 ao?t 2008, Ron wrote: > Benoit Minisini schreef: > > On mardi 26 ao?t 2008, Ron wrote: > >> One small suggestion; > >> > >> When you edit a form, specially the code below it, when you switch to > >> another form to edit, and you go back to the previous form, you end up > >> in the GUI editor of that form, instead of the code window you where > >> before. > >> > >> Is it possible to remember this, and go directly back to the code window > >> of a form if that was open during the last edit of that form? > >> (hope my explanation is not to chaotic), now if you copy code from one > >> form to another, you have to switch modes everytime. > >> > >> Regards, > >> Ron_2nd > > > > Can you give more explanation please? I am not sure to really > > understand... > > I'll try.. > > If you have several forms opened in the editor, and for some you have > opened the .class of it to edit code, if you switch documents by double > clicking on the form entry in the treeview on the left you always go to > the already opened form (gui editor mode), and not the .class file which > belongs to it. > > I think it would be nice if it opened the .class file instead of the > form if that was the last state you where in before you opened another > file. > > So open FTest.class instead of FTest.form if you where editing code in > that .class file before and it's already open in the project. > (basically remember the state of editing a form, .form or .class lastly > opened) > > Hmm dunno if this is more clear, or i'm (which isn't the first time) the > only one with this request, if so disregard it... > > Regards, > Ron_2nd Do you know that pressing CTRL while double-clikcing opens the code and not the form? > > PS: I have donated some a few days ago , buy a beer on me for it ;-) > I don't drink beer, but thanks for the donation. I will go eating sorbets at Berthillon (http://www.berthillon.fr) instead. :-) Regards, -- Benoit Minisini From ron at ...1740... Fri Aug 29 11:08:29 2008 From: ron at ...1740... (Ron) Date: Fri, 29 Aug 2008 11:08:29 +0200 Subject: [Gambas-user] Feature request IDE In-Reply-To: <200808291048.13675.gambas@...1...> References: <48B40F7F.2070003@...1740...> <200808291011.17506.gambas@...1...> <48B7B680.2090107@...1740...> <200808291048.13675.gambas@...1...> Message-ID: <48B7BC8D.1040107@...1740...> Benoit Minisini schreef: > On vendredi 29 ao?t 2008, Ron wrote: > >> Benoit Minisini schreef: >> >>> On mardi 26 ao?t 2008, Ron wrote: >>> >>>> One small suggestion; >>>> >>>> When you edit a form, specially the code below it, when you switch to >>>> another form to edit, and you go back to the previous form, you end up >>>> in the GUI editor of that form, instead of the code window you where >>>> before. >>>> >>>> Is it possible to remember this, and go directly back to the code window >>>> of a form if that was open during the last edit of that form? >>>> (hope my explanation is not to chaotic), now if you copy code from one >>>> form to another, you have to switch modes everytime. >>>> >>>> Regards, >>>> Ron_2nd >>>> >>> Can you give more explanation please? I am not sure to really >>> understand... >>> >> I'll try.. >> >> If you have several forms opened in the editor, and for some you have >> opened the .class of it to edit code, if you switch documents by double >> clicking on the form entry in the treeview on the left you always go to >> the already opened form (gui editor mode), and not the .class file which >> belongs to it. >> >> I think it would be nice if it opened the .class file instead of the >> form if that was the last state you where in before you opened another >> file. >> >> So open FTest.class instead of FTest.form if you where editing code in >> that .class file before and it's already open in the project. >> (basically remember the state of editing a form, .form or .class lastly >> opened) >> >> Hmm dunno if this is more clear, or i'm (which isn't the first time) the >> only one with this request, if so disregard it... >> >> Regards, >> Ron_2nd >> > > Do you know that pressing CTRL while double-clikcing opens the code and not > the form? > > Aha, no /I /didn't know that. Thats good enough, disregard my request! > >> PS: I have donated some a few days ago , buy a beer on me for it ;-) >> >> > > I don't drink beer, but thanks for the donation. I will go eating sorbets at > Berthillon (http://www.berthillon.fr) instead. :-) > > Ok, bon appetit! ;) Regards, Ron_2nd From steven at ...1652... Fri Aug 29 12:57:23 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Fri, 29 Aug 2008 12:57:23 +0200 Subject: [Gambas-user] Grideditor Message-ID: <1220007443.3866.50.camel@...1936...> Hi, I want to add a row to the gridedito from code, so i do this : PUBLIC SUB Button5_Click() ' on ajoute la selection du listbox gridd.GridEditor_Create() ' met les donn?es dans le grid gridd.putData(gridd.Table.Row, 2, "Tout-Bien") gridd.putData(gridd.Table.Row, 4, "Request") gridd.putData(gridd.Table.Row, 3, Format(Now, "dd/mm/yyyy")) gridd.putData(gridd.Table.Row, 5, ListBox1.Text) END The data is visible and correct in the gridview. A little + is written in the fist column, so all is ok. Then a use the save button to save the row. Now a row is saved, but with no data in it. Any ideas ? Steven From lordheavym at ...626... Fri Aug 29 13:10:26 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 29 Aug 2008 13:10:26 +0200 Subject: [Gambas-user] gambasdoc.org bug In-Reply-To: <200808271055.56930.gambas@...1...> References: <200808241631.55941.lordheavym@...626...> <200808271055.56930.gambas@...1...> Message-ID: <200808291310.26832.lordheavym@...626...> Le Wednesday 27 August 2008 10:55:56 Benoit Minisini, vous avez ?crit : > On dimanche 24 ao?t 2008, Laurent Carlier wrote: > > The title of the page is always added when using then syntax{....} > > statement. > > > > See http://www.gambasdoc.org/help/tutorial/testloop > > When using the {syntax ... } box, you must specify "no-title" after > the "syntax" keyword, otherwise the page title is automatically repeated. > This is a feature, not a bug. :-) > > Regards, Damn an undocumented feature, i know now that gambas has some secret API to take some advantages from others :-p Will fix the wiki to document that s/bug/feature. Regards, From lordheavym at ...626... Fri Aug 29 13:34:21 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 29 Aug 2008 13:34:21 +0200 Subject: [Gambas-user] Autoconf tools question In-Reply-To: <1f1e8c1b0808280721q3ba70780v7d630789149b6b2@...627...> References: <1f1e8c1b0808181902q7833a145rf973b789898914ae@...627...> <200808280230.16381.lordheavym@...626...> <1f1e8c1b0808280721q3ba70780v7d630789149b6b2@...627...> Message-ID: <200808291334.21233.lordheavym@...626...> Le Thursday 28 August 2008 16:21:00 M0E Lnx, vous avez ?crit : > Any way to test this in gambas2 yet? > > my app is written in g2 > > On Wed, Aug 27, 2008 at 7:30 PM, Laurent Carlier wrote: > > Le Wednesday 27 August 2008 14:54:07 M0E Lnx, vous avez ?crit : > >> I'm willing to test (pretty much all I can do) but I do appreciate you > >> guys considering it. I suposse many people will write their > >> appliactions in gambas and will need to depend on something else... so > >> it'll help to have it run checks for those dependancies as well. Even > >> if it means specifying them by name (each developer should know what > >> his/her app depends on) > >> > >> On Wed, Aug 27, 2008 at 4:46 AM, Laurent Carlier > > > > wrote: > >> > Le Wednesday 27 August 2008 10:45:13 Benoit Minisini, vous avez ?crit : > >> >> On mardi 19 ao?t 2008, M0E Lnx wrote: > >> >> > I've gotten my application to package with the autoconf tools > >> >> > creator from the IDE (very nice (in version 2.8 the DESTDIR is > >> >> > supported)). I have a question > >> >> > How can I make these scripts run additional tests?. > >> >> > My application for instance uses other things such as Python, > >> >> > CMake... etc, how can I make the configure script check for these > >> >> > too? > >> >> > > >> >> > Any help is appreciated > >> >> > > >> >> > Thanks > > > > You can find some preliminary work on the 3.0 branch. > > > > You can add extra tests (you need to know how configure script work (see > > autoconf.automake docs)). Your script will be add at the end of the > > configure script. > > > > See http://gambas.svn.sourceforge.net/gambas/?rev=1520&view=rev > > > > ++ > > I can put this in stable branch if benoit agrees, but as it's pretty untested, i prefer if you can test this feature i.e. install G3, just create a dummy project, then create a package with autotools, and add your test ! So you axtract the dummy package and run ./configure script. Try all these steps, so send your comments, feature missing, the bugs found. If it's pretty bugfree and useful them it will be backported for the next 2.x release. Regards, From m0e.lnx at ...626... Fri Aug 29 14:55:20 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 29 Aug 2008 07:55:20 -0500 Subject: [Gambas-user] Autoconf tools question In-Reply-To: <200808291334.21233.lordheavym@...626...> References: <1f1e8c1b0808181902q7833a145rf973b789898914ae@...627...> <200808280230.16381.lordheavym@...626...> <1f1e8c1b0808280721q3ba70780v7d630789149b6b2@...627...> <200808291334.21233.lordheavym@...626...> Message-ID: <1f1e8c1b0808290555s27420c10y6ac1d6370df2472e@...627...> Will do as soon as I get a chance What are the chances of a g2 project to work under g3? On Fri, Aug 29, 2008 at 6:34 AM, Laurent Carlier wrote: > Le Thursday 28 August 2008 16:21:00 M0E Lnx, vous avez ?crit : >> Any way to test this in gambas2 yet? >> >> my app is written in g2 >> >> On Wed, Aug 27, 2008 at 7:30 PM, Laurent Carlier > wrote: >> > Le Wednesday 27 August 2008 14:54:07 M0E Lnx, vous avez ?crit : >> >> I'm willing to test (pretty much all I can do) but I do appreciate you >> >> guys considering it. I suposse many people will write their >> >> appliactions in gambas and will need to depend on something else... so >> >> it'll help to have it run checks for those dependancies as well. Even >> >> if it means specifying them by name (each developer should know what >> >> his/her app depends on) >> >> >> >> On Wed, Aug 27, 2008 at 4:46 AM, Laurent Carlier >> > >> > wrote: >> >> > Le Wednesday 27 August 2008 10:45:13 Benoit Minisini, vous avez ?crit : >> >> >> On mardi 19 ao?t 2008, M0E Lnx wrote: >> >> >> > I've gotten my application to package with the autoconf tools >> >> >> > creator from the IDE (very nice (in version 2.8 the DESTDIR is >> >> >> > supported)). I have a question >> >> >> > How can I make these scripts run additional tests?. >> >> >> > My application for instance uses other things such as Python, >> >> >> > CMake... etc, how can I make the configure script check for these >> >> >> > too? >> >> >> > >> >> >> > Any help is appreciated >> >> >> > >> >> >> > Thanks >> > >> > You can find some preliminary work on the 3.0 branch. >> > >> > You can add extra tests (you need to know how configure script work (see >> > autoconf.automake docs)). Your script will be add at the end of the >> > configure script. >> > >> > See http://gambas.svn.sourceforge.net/gambas/?rev=1520&view=rev >> > >> > ++ >> > > > I can put this in stable branch if benoit agrees, but as it's pretty untested, > i prefer if you can test this feature i.e. install G3, just create a dummy > project, then create a package with autotools, and add your test ! > > So you axtract the dummy package and run ./configure script. > > Try all these steps, so send your comments, feature missing, the bugs found. > If it's pretty bugfree and useful them it will be backported for the next 2.x > release. > > Regards, > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Fri Aug 29 15:07:35 2008 From: ron at ...1740... (Ron) Date: Fri, 29 Aug 2008 15:07:35 +0200 Subject: [Gambas-user] Question about var declaration Message-ID: <48B7F497.9040007@...1740...> Variables declared with a DIM inside a SUB or FUNCTION can be put together like this: DIM sVar1, sVar2 AS String This is not valid syntax for public vars at the beginning of a module of class, like this: PUBLIC sVar1, sVar2 AS String This results in an error 'Missing AS' Is this on purpose? Or is the compiler too strict? Regards, Ron_2nd From gambas at ...1... Fri Aug 29 15:11:36 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 29 Aug 2008 15:11:36 +0200 Subject: [Gambas-user] Question about var declaration In-Reply-To: <48B7F497.9040007@...1740...> References: <48B7F497.9040007@...1740...> Message-ID: <200808291511.36105.gambas@...1...> On vendredi 29 ao?t 2008, Ron wrote: > Variables declared with a DIM inside a SUB or FUNCTION can be put > together like this: > > DIM sVar1, sVar2 AS String > > This is not valid syntax for public vars at the beginning of a module of > class, like this: > > PUBLIC sVar1, sVar2 AS String > > This results in an error 'Missing AS' > > Is this on purpose? Or is the compiler too strict? > > Regards, > Ron_2nd > The compiler is too strict. :-) -- Benoit Minisini From ron at ...1740... Fri Aug 29 15:15:49 2008 From: ron at ...1740... (Ron) Date: Fri, 29 Aug 2008 15:15:49 +0200 Subject: [Gambas-user] Question about var declaration In-Reply-To: <200808291511.36105.gambas@...1...> References: <48B7F497.9040007@...1740...> <200808291511.36105.gambas@...1...> Message-ID: <48B7F685.1040109@...1740...> Benoit Minisini schreef: > On vendredi 29 ao?t 2008, Ron wrote: > >> Variables declared with a DIM inside a SUB or FUNCTION can be put >> together like this: >> >> DIM sVar1, sVar2 AS String >> >> This is not valid syntax for public vars at the beginning of a module of >> class, like this: >> >> PUBLIC sVar1, sVar2 AS String >> >> This results in an error 'Missing AS' >> >> Is this on purpose? Or is the compiler too strict? >> >> Regards, >> Ron_2nd >> >> > > The compiler is too strict. :-) > > Hmm, I smell a little VB like inconsistancy, yukk! ;-) Regards, Ron_2nd From nxgtrturbo at ...626... Fri Aug 29 15:32:30 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Fri, 29 Aug 2008 06:32:30 -0700 Subject: [Gambas-user] Gambas Apps Dependencies Message-ID: <688afe140808290632s5285c2fbi7f97d6f84bb458ee@...627...> Gambas Apps Dependencies Hi, I have reach a point where I cant code all by me, so I have decide to use a program to send emails notifications from sendmail. So I want my app check for the program, if found, use it, if not, install it. For check the app existence I was thinking something like "whereis sendmail" But how do I catch the console answer? Now, another question, if the program exist, its Ok, but if not, what would be the best way to install it as easy as possible for the user? I was thinking: su (or sudo?), apt-get install sendmail, and then wait (how do I know when its done?) for the installation. Of course theres another issues like internet problems and so on, but will try ti figure out the solution later, now the most important is to catch console results. Thanks in advance, NxGTR -- http://tallerhuertas.googlepages.com/ http://systemarpi.googlepages.com/ From lordheavym at ...626... Fri Aug 29 15:40:13 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 29 Aug 2008 15:40:13 +0200 Subject: [Gambas-user] Autoconf tools question In-Reply-To: <1f1e8c1b0808290555s27420c10y6ac1d6370df2472e@...627...> References: <1f1e8c1b0808181902q7833a145rf973b789898914ae@...627...> <200808291334.21233.lordheavym@...626...> <1f1e8c1b0808290555s27420c10y6ac1d6370df2472e@...627...> Message-ID: <200808291540.14159.lordheavym@...626...> Le Friday 29 August 2008 14:55:20 M0E Lnx, vous avez ?crit : > Will do as soon as I get a chance > > What are the chances of a g2 project to work under g3? > There is pretty good chances of success. Regards, From ronstk at ...239... Fri Aug 29 19:26:19 2008 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 29 Aug 2008 19:26:19 +0200 Subject: [Gambas-user] Feature request IDE In-Reply-To: <48B7BC8D.1040107@...1740...> References: <48B40F7F.2070003@...1740...> <200808291048.13675.gambas@...1...> <48B7BC8D.1040107@...1740...> Message-ID: <200808291926.19438.ronstk@...239...> On Friday 29 August 2008, Ron wrote: > > Do you know that pressing CTRL while double-clikcing opens the code and not > > the form? > > > > ? > Aha, no /I /didn't know that. > Thats good enough, disregard my request! > Good news to me too, the CTRL key trick :) Would be nice to have those secret key/mouse combinations somewhere into the wiki. > > ? > >> PS: I have donated some a few days ago , buy a beer on me for it ;-) > >> > >> ? ? > > > > I don't drink beer, but thanks for the donation. I will go eating sorbets at > > Berthillon (http://www.berthillon.fr) instead. :-) > > Looks good, a nice place to get ideas and inspiration for gambas there. > > ? > > Ok, bon appetit! ;) > > Regards, > Ron_2nd > Ron_1st Ik mooet daar ook maar eens een sorbet gaan halen :) :) -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From gambas at ...1... Sat Aug 30 14:30:50 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 30 Aug 2008 14:30:50 +0200 Subject: [Gambas-user] Release of gambas 2.8.2 Message-ID: <200808301430.50974.gambas@...1...> Hi, This maintenance release fixes the following bugs: * Thanks to ? (Liang Wei) tests, the bits manipulation functions now work correctly. * The tray icons are correctly refreshed when the icon has changed. * The interpreter is now linked with the thread library on Linux systems. * When opening a project in the IDE, the packager information is correctly reset. * The simplified chinese translation has been completed too. Do you know that donkeys prefer stale bread to carrots? Regards, -- Benoit Minisini From gambas at ...1... Sat Aug 30 14:33:02 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 30 Aug 2008 14:33:02 +0200 Subject: [Gambas-user] Can create but not edit time-type fields In-Reply-To: <688afe140808282257l21eef680ja069163042b165ff@...627...> References: <688afe140808282257l21eef680ja069163042b165ff@...627...> Message-ID: <200808301433.02033.gambas@...1...> On vendredi 29 ao?t 2008, Nx GT-R BOY wrote: > Can create but not edit time-type fields > > Hi, I have a problem with Gambas, I can create new records for a time-type > field, but once created I cant edit them, all others field-types works > perfect. > > The exact problem: "The old value replace the tried new value at save time" > > The database structure for the table is: > CREATE TABLE pendientes ( > folio INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, > usuarios_nombre VARCHAR(20) NOT NULL, > fecharegistro DATE NULL, > fechapendiente DATE NULL, > horapendiente TIME NULL, > lugar VARCHAR(45) NULL, > actividad VARCHAR(45) NULL, > atiende VARCHAR(20) NULL, > costo FLOAT NULL, > fecharecordar DATE NULL, > horapendiente_2 TIME NULL, > alertacelular BOOL NULL, > numerocelular VARCHAR(20) NULL, > PRIMARY KEY(folio), > INDEX pendientes_FKIndex1(usuarios_nombre) > ); > > The problem is with the TIME fields, is a known problem or something? Any > workaround? > > Thanks in advance, Nx GTR > http://systemarpi.googlepages.com/arpi.tar.gz Do you use MySQL or something other? Is your problem the contents of an error message? Apparently you didn't create your database with the database manager, did you? If you replace your DATE and TIME fields by DATETIME fields, does it work? -- Benoit Minisini From wspinto at ...1405... Sat Aug 30 15:49:35 2008 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Sat, 30 Aug 2008 10:49:35 -0300 Subject: [Gambas-user] WebBrowser question (????????????) Message-ID: <1220104175.48b94fef0994a@...1547...> Hi everyone!!!! I'm using gb2.8.x with webbrowser component. When i call any sites with applets show for me. Enable aplets..... How enable applets in my webbroser object??? When i use firefox or konqueror not show this message. Reguards, --------------------------------------------------------------- |||||/ Wellington de Souza Pinto C o o ] wspinto at ...1405... ^ -x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x- ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From leonardo at ...1237... Sat Aug 30 16:35:15 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 30 Aug 2008 16:35:15 +0200 Subject: [Gambas-user] Release of gambas 2.8.2 In-Reply-To: <200808301430.50974.gambas@...1...> References: <200808301430.50974.gambas@...1...> Message-ID: <48B95AA3.1000600@...1237...> Benoit Minisini ha scritto: > Hi, > > This maintenance release fixes the following bugs: > > * Thanks to ? (Liang Wei) tests, the bits manipulation functions now work > correctly. I use the bit manipulation functions in some cryptographic projects. Could you please specify what are these bugs and Which are the functions involved? -- 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 kazutaka802 at ...1907... Sat Aug 30 17:01:48 2008 From: kazutaka802 at ...1907... (HARADA Kazutaka) Date: Sun, 31 Aug 2008 00:01:48 +0900 Subject: [Gambas-user] Tray icon not updated sometimes In-Reply-To: <200808271646.54059.gambas@...1...> References: <48B55956.8010000@...1907...> <48B5664A.1090101@...1907...> <48B567F9.8090905@...1907...> <200808271646.54059.gambas@...1...> Message-ID: <48B960DC.4010506@...1907...> Benoit Minisini wrote: > Yes, actually the icon is not automatically refreshed. It will be fixed in a > next commit. > I confirmed that the bug is fixed in 2.8.2. Thank you Benoit. -- -------------------------------------- Kazutaka HARADA e-mail:kazutaka802 at ...1907... -------------------------------------- From gambas at ...1... Sat Aug 30 18:10:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 30 Aug 2008 18:10:46 +0200 Subject: [Gambas-user] Release of gambas 2.8.2 In-Reply-To: <48B95AA3.1000600@...1237...> References: <200808301430.50974.gambas@...1...> <48B95AA3.1000600@...1237...> Message-ID: <200808301810.46541.gambas@...1...> On samedi 30 ao?t 2008, Leonardo Miliani wrote: > Benoit Minisini ha scritto: > > Hi, > > > > This maintenance release fixes the following bugs: > > > > * Thanks to ? (Liang Wei) tests, the bits manipulation functions now work > > correctly. > > I use the bit manipulation functions in some cryptographic projects. > Could you please specify what are these bugs and Which are the functions > involved? I can: almost every bit manipulation function was wrongly implemented (shame on me). If I remember, they were safe only if you use Long values, and I'm not sure for Asl/Asr. Regards, -- Benoit Minisini From kari.laine at ...1400... Sat Aug 30 19:28:45 2008 From: kari.laine at ...1400... (Kari Laine) Date: Sat, 30 Aug 2008 20:28:45 +0300 Subject: [Gambas-user] Gambas as programming language option in SF Message-ID: <48B9834D.6020905@...1400...> Hi, I would suggest it myself to SF, but don't know how. In SourceForge you can list projects selected by programming language they are written. Gambas is not an option at the moment. I think it should be. Best Regards Kari Laine From joshiggins at ...1601... Sun Aug 31 00:00:53 2008 From: joshiggins at ...1601... (Joshua Higgins) Date: Sat, 30 Aug 2008 23:00:53 +0100 Subject: [Gambas-user] Gambas as programming language option in SF In-Reply-To: <48B9834D.6020905@...1400...> References: <48B9834D.6020905@...1400...> Message-ID: <4247f5440808301500wa80b08ds349b9edb6d75a4ae@...627...> I second that. On Sat, Aug 30, 2008 at 6:28 PM, Kari Laine wrote: > Hi, > > I would suggest it myself to SF, but don't know how. In SourceForge you > can list projects selected by programming language they are written. > Gambas is not an option at the moment. I think it should be. > > Best Regards > Kari Laine > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From gambas at ...1... Sun Aug 31 00:08:26 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 31 Aug 2008 00:08:26 +0200 Subject: [Gambas-user] Gambas as programming language option in SF In-Reply-To: <4247f5440808301500wa80b08ds349b9edb6d75a4ae@...627...> References: <48B9834D.6020905@...1400...> <4247f5440808301500wa80b08ds349b9edb6d75a4ae@...627...> Message-ID: <200808310008.26372.gambas@...1...> On dimanche 31 ao?t 2008, Joshua Higgins wrote: > I second that. > There is a community forum on the home page: http://sourceforge.net/community/forum/forum.php?id=12&page -- Benoit Minisini From rterry at ...1946... Sun Aug 31 03:10:49 2008 From: rterry at ...1946... (richard terry) Date: Sun, 31 Aug 2008 11:10:49 +1000 Subject: [Gambas-user] Q:how to save a file.png into Postgresql In-Reply-To: <200808291008.57063.gambas@...1...> References: <200808290722.21869.rterry@...1946...> <200808291759.21471.rterry@...1946...> <200808291008.57063.gambas@...1...> Message-ID: <200808311110.49289.rterry@...1946...> snip.. > Did you look at the "PictureDatabase" example? It stores images files from > disk into a database, and retrieves them. Thanks, yes I've done that overnight since your suggestion, and now have this problem: My gambas code goes something like this and I've selected the png file to load which has been passed to this routine as ImagePath. Public sub Save_Image(ImagePath as string) Dim img As Image Dim pictureData As String Dim sql As String img = Image.Load(ImagePath) ' Save temp image as png file tempFile = Temp() & ".png" img.Save(tempFile) pictureData = File.Load(tempFile) 'reload as a string At this point the pictureData string seems to be ok. I Then tried writing to the database: sql = "insert into temp_image(piccie)" "values($$" sql = sql & pictureData & "$$)" and got back this message: Query failed:ERROR: invalid byte sequence for encoding "UTF8":0x89 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding" Spent a couple of hours trawling the postgres help and looking up client-encoding, pg_types etc etc, but with my limited brain power I got nowhere Any idea's? Regards Richard From nxgtrturbo at ...626... Sun Aug 31 03:46:33 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Sat, 30 Aug 2008 18:46:33 -0700 Subject: [Gambas-user] Can create but not edit time-type fields (NxGTR) Message-ID: <688afe140808301846wb57f5fdm282b377c4ec02770@...627...> I am using MySQL, and there wasn't any error, just the problem I notice. I don't create the DB with database manager, actually I don't work in the DB design, that is done by a coder under Windows who work with DBDesigner for some features like XML and test our project under Windows Vista (Yes, gambas app runs great under Windows). But I found the solution anyway, it was my fault since I didn't notice the names: ... horapendiente TIME NULL, ... horapendiente_2 TIME NULL, ... And, under Gambas I made dual reference in a component to horapendiente, I miss the "_2" part, the DB designer already fix that, and I now set the correct names, it works perfect. Sorry for the inconvenience. -- http://systemarpi.googlepages.com/ From gambas at ...1... Sun Aug 31 09:34:47 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 31 Aug 2008 09:34:47 +0200 Subject: [Gambas-user] Q:how to save a file.png into Postgresql In-Reply-To: <200808311110.49289.rterry@...1946...> References: <200808290722.21869.rterry@...1946...> <200808291008.57063.gambas@...1...> <200808311110.49289.rterry@...1946...> Message-ID: <200808310934.47357.gambas@...1...> On dimanche 31 ao?t 2008, richard terry wrote: > snip.. > > > Did you look at the "PictureDatabase" example? It stores images files > > from disk into a database, and retrieves them. > > Thanks, yes I've done that overnight since your suggestion, and now have > this problem: > > My gambas code goes something like this and I've selected the png file to > load which has been passed to this routine as ImagePath. > > Public sub Save_Image(ImagePath as string) > > Dim img As Image > Dim pictureData As String > Dim sql As String > > img = Image.Load(ImagePath) ' Save temp image as png file > tempFile = Temp() & ".png" > img.Save(tempFile) > > > pictureData = File.Load(tempFile) 'reload as a string > > > At this point the pictureData string seems to be ok. > > I Then tried writing to the database: > > sql = "insert into temp_image(piccie)" > "values($$" > sql = sql & pictureData & "$$)" > > and got back this message: > > Query failed:ERROR: invalid byte sequence for encoding "UTF8":0x89 HINT: > This error can also happen if the byte sequence does not match the encoding > expected by the server, which is controlled by "client_encoding" > > Spent a couple of hours trawling the postgres help and looking up > client-encoding, pg_types etc etc, but with my limited brain power I got > nowhere > > Any idea's? > > > Regards > > Richard > 1) Check that piccie is actually a Blob field (did you create your database with the database manager?) 2) Do not forge your query yourself. Use the substitution parameters of the Exec command: DB.Exec("insert into temp_image(piccie) values(&1)", pictureData) Regards, -- Benoit Minisini From rolf.frogs at ...221... Sun Aug 31 11:42:49 2008 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Sun, 31 Aug 2008 11:42:49 +0200 Subject: [Gambas-user] Q:how to save a file.png into Postgresql In-Reply-To: <200808311110.49289.rterry@...1946...> References: <200808290722.21869.rterry@...1946...> <200808291008.57063.gambas@...1...> <200808311110.49289.rterry@...1946...> Message-ID: <200808311142.52986.rolf.frogs@...221...> Hi richard > Public sub Save_Image(ImagePath as string) > > Dim img As Image > Dim pictureData As String > Dim sql As String > > img = Image.Load(ImagePath) ' Save temp image as png file > tempFile = Temp() & ".png" > img.Save(tempFile) > > > pictureData = File.Load(tempFile) 'reload as a string > > > At this point the pictureData string seems to be ok. > > I Then tried writing to the database: > > sql = "insert into temp_image(piccie)" > "values($$" > sql = sql & pictureData & "$$)" > > and got back this message: > > Query failed:ERROR: invalid byte sequence for encoding "UTF8":0x89 HINT: > This error can also happen if the byte sequence does not match the encoding > expected by the server, which is controlled by "client_encoding" Hope you defined your database field as byta for blob. Then you have to mask out a lot of byte codes in your picture data. I did it like this: PUBLIC SUB SavePic_Click() DIM hFile AS Stream DIM buffer AS Byte DIM picText AS String OPEN NameOfPic FOR INPUT AS #hFile WHILE NOT Eof(hFile) READ #hFile, buffer, lof(hFile) IF buffer < 32 OR buffer > 126 THEN picText = picText & "\\\\" & Coct(buffer) ELSE SELECT buffer CASE 92 ' mask "|" char picText = picText & "\\\\134" CASE 39 ' mask "'" char picText = picText & "\\'" DEFAULT picText = picText & Chr$(buffer) END SELECT END IF WEND CLOSE hFile query = "insert into table (picci) values ('" & picText & "')" .... END Hope that helps Fine regards Rolf -------------- 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 gambas at ...1... Sun Aug 31 11:49:59 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 31 Aug 2008 11:49:59 +0200 Subject: [Gambas-user] Q:how to save a file.png into Postgresql In-Reply-To: <200808311142.52986.rolf.frogs@...221...> References: <200808290722.21869.rterry@...1946...> <200808311110.49289.rterry@...1946...> <200808311142.52986.rolf.frogs@...221...> Message-ID: <200808311149.59235.gambas@...1...> On dimanche 31 ao?t 2008, Rolf Schmidt wrote: > Hi richard > > > Public sub Save_Image(ImagePath as string) > > > > Dim img As Image > > Dim pictureData As String > > Dim sql As String > > > > img = Image.Load(ImagePath) ' Save temp image as png file > > tempFile = Temp() & ".png" > > img.Save(tempFile) > > > > > > pictureData = File.Load(tempFile) 'reload as a string > > > > > > At this point the pictureData string seems to be ok. > > > > I Then tried writing to the database: > > > > sql = "insert into temp_image(piccie)" > > "values($$" > > sql = sql & pictureData & "$$)" > > > > and got back this message: > > > > Query failed:ERROR: invalid byte sequence for encoding "UTF8":0x89 HINT: > > This error can also happen if the byte sequence does not match the > > encoding expected by the server, which is controlled by > > "client_encoding" > > Hope you defined your database field as byta for blob. > Then you have to mask out a lot of byte codes in your picture data. > > I did it like this: > > PUBLIC SUB SavePic_Click() > DIM hFile AS Stream > DIM buffer AS Byte > DIM picText AS String > > OPEN NameOfPic FOR INPUT AS #hFile > WHILE NOT Eof(hFile) > READ #hFile, buffer, lof(hFile) > IF buffer < 32 OR buffer > 126 THEN > picText = picText & "\\\\" & Coct(buffer) > ELSE > SELECT buffer > CASE 92 ' mask "|" char > picText = picText & "\\\\134" > CASE 39 ' mask "'" char > picText = picText & "\\'" > DEFAULT > picText = picText & Chr$(buffer) > END SELECT > END IF > WEND > CLOSE hFile > > query = "insert into table (picci) values ('" & picText & "')" > .... > END > > Hope that helps > Fine regards > Rolf And why doing in Gambas what is already done by the database driver? -- Benoit Minisini From gbv at ...1076... Sun Aug 31 11:56:39 2008 From: gbv at ...1076... (Guillermo Ballester Valor) Date: Sun, 31 Aug 2008 09:56:39 +0000 Subject: [Gambas-user] Release of gambas 2.8.2 In-Reply-To: <200808301430.50974.gambas@...1...> References: <200808301430.50974.gambas@...1...> Message-ID: <200808310956.39461.gbv@...1076...> Hl Saturday 30 August 2008 12:30:50 Benoit Minisini escribi?: > Hi, > > This maintenance release fixes the following bugs: > > * Thanks to ? (Liang Wei) tests, the bits manipulation functions now work > correctly. > > * The tray icons are correctly refreshed when the icon has changed. > > * The interpreter is now linked with the thread library on Linux systems. > > * When opening a project in the IDE, the packager information is correctly > reset. > > * The simplified chinese translation has been completed too. > > Do you know that donkeys prefer stale bread to carrots? > > Regards, openSUSE gambas2 2.8.2 rpms are already built. As usual, you can get it from the repository: http://download.opensuse.org/repositories/home:/gbvalor/ Have a nice Sunday! Guillermo -- Guillermo Ballester Valor gbv at ...1076... http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN From admin at ...1080... Sun Aug 31 12:21:00 2008 From: admin at ...1080... (werner 007) Date: Sun, 31 Aug 2008 03:21:00 -0700 (PDT) Subject: [Gambas-user] Gambas Apps Dependencies In-Reply-To: <688afe140808290632s5285c2fbi7f97d6f84bb458ee@...627...> References: <688afe140808290632s5285c2fbi7f97d6f84bb458ee@...627...> Message-ID: <19240990.post@...1379...> Hello NxGTR I have do some check with: --- snipp --- DIM sF AS String DIM msg AS String sF = Temp$() SHELL "dpkg -s normalize-audio | grep -i 'status' 1> " & sF WAIT (--> But you can do that without using a external File) msg = file.Load(sF) IF Left(LCase(Trim(msg)), 6) <> "status" THEN chkNormalize.Enabled = FALSE msg = "You dont have normalize-audio installed!" END IF --- snipp --- It is not that good as it could, but works for my situation. My personally view about installing depended packages: I think it is not *nix like to do that. When you check on start up, give the message that the package is missing and the user has to install it by self, and disable the associated feature. Or but the check at beginning of use of the feature, so the user needs not to re-open the app. Regards Werner (007) -- View this message in context: http://www.nabble.com/Gambas-Apps-Dependencies-tp19220017p19240990.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sun Aug 31 16:15:33 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 31 Aug 2008 16:15:33 +0200 Subject: [Gambas-user] about combobox In-Reply-To: <200808291014.28844.gambas@...1...> References: <48B3BB5C.7010203@...324...> <200808291014.28844.gambas@...1...> Message-ID: <200808311615.33527.gambas@...1...> On vendredi 29 ao?t 2008, Benoit Minisini wrote: > On mardi 26 ao?t 2008, Fox wrote: > > About combobox, we are talking about this control a little time ago. > > There is a big difference from QT and GTK combobox. > > Gtk combobox have trouble to manage long lists, try to fill with many > > items, it make load for time and also you have trouble to search what > > you need. > > > > QT combobox is not fast, is better, and also, when you have many items > > you can find what you need very quickly because you can type the start > > characters of you matching word. > > > > > > I'm on a Debian sid 64b > > Gambas 2.7 > > Are you talking about read-only combo-boxes or read/write combo-boxes? > > The implementation of GTK+ combo-box is not really optimal: can you detail > what is slow exactly? With some code, or, better, a full project. > > Regards, I have committed a gb.gtk ComboBox patch in revision 1530. Here is some little benchmarks on my Dual Core. 1) Before the patch. Filling a combo-box with 1000 items: 0.474 s Then reading the Count property 100000 times: 15.650 s Filling a sorted combo-box with 1000 items: 170.95 s Then reading the Count property 100000 times: 18.43 s 2) After the patch. Filling a combo-box with 1000 items: 0.0125 s Then reading the Count property 100000 times: 0.0162 s Filling a sorted combo-box with 1000 items: 0.0224 s Then reading the Count property 100000 times: 0.0164 s 3) Same thing with the gb.qt component. Filling a combo-box with 1000 items: 0.0014 s Then reading the Count property 100000 times: 0.0157 s Filling a sorted combo-box with 1000 items: 2.782 s Then reading the Count property 100000 times: 0.0169 s The patch tries to delay all heavy GTK+ process as much as possible when adding items. If I did not make any bug, other properties and methods should work as expected. gb.qt is still the fastest, except when the combo-box is sorted. But maybe I can do the same optimization there than I did in gb.gtk. And searching is not possible yet. Regards, -- Benoit Minisini From kari.laine at ...1400... Sun Aug 31 17:47:30 2008 From: kari.laine at ...1400... (Kari Laine) Date: Sun, 31 Aug 2008 18:47:30 +0300 Subject: [Gambas-user] Nice book of Gambas Message-ID: <48BABD12.6060805@...1400...> Hi, Sometime ago I found a nice book about Gambas. Sorry if everybody already know this. Search GooGle for "gambas beginner guide". Here is one of the links http://www.linuxinet.com/free-linux-ebooks/free-linux-programming-ebooks-beginner-039-s-guide-gambas.html Best Regards Kari Laine From jshackney at ...626... Sun Aug 31 21:15:14 2008 From: jshackney at ...626... (Jason Hackney) Date: Sun, 31 Aug 2008 15:15:14 -0400 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <48BABD12.6060805@...1400...> References: <48BABD12.6060805@...1400...> Message-ID: <799be1690808311215s4ab965d4l941ddd2b67536653@...627...> First of all, I bought this book. Mr. Rittinghouse obviously worked very hard on it and I felt he deserves a little something for his effort. Does anyone know if Mr. Rittinghouse plans on releasing an updated version of this book? There are inconsistencies, errors, and just plain outdated information throughout the current version. Just two examples: 1) There are some details omitted (or just not well clarified for a beginner) in the chapter regarding drawing. 2) The CASE/SELECT information could be more complete. I'd really, REALLY like to see some sort of reference (I know, that would be a book in itself!!) Otherwise, it's a decent book (I've been using it primarily as a reference). I'd love to help make it better. I have a knack for finding mundane nuggets of goodness that can be cleaned up. Jason p.s. John, if you're out there, I'm serious about the offer to help. On Sun, Aug 31, 2008 at 11:47 AM, Kari Laine wrote: > Hi, > > Sometime ago I found a nice book about Gambas. Sorry if everybody > already know this. > Search GooGle for "gambas beginner guide". > > Here is one of the links > http://www.linuxinet.com/free-linux-ebooks/free-linux-programming-ebooks-beginner-039-s-guide-gambas.html > > Best Regards > Kari Laine From jshackney at ...626... Sun Aug 31 22:38:53 2008 From: jshackney at ...626... (Jason Hackney) Date: Sun, 31 Aug 2008 16:38:53 -0400 Subject: [Gambas-user] Drawing Persistence Message-ID: <799be1690808311338g274c7fe0u85ff015e9df8d04b@...627...> How do you make an image in the Drawing Area persistent? That is, I draw a box. Then open a popup (which appears directly over my drawing). Close the popup when I'm done and parts of my drawing (which were covered by the popup) are blanked out--needing to be redrawn by calling the initial drawing event. I thought the Refresh method was the way to go, but using that causes the drawing to flash. Or rather, it draws the image, then clears immediately. Jason From admin at ...1956... Sun Aug 31 23:16:07 2008 From: admin at ...1956... (admin at ...1956...) Date: Sun, 31 Aug 2008 14:16:07 -0700 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <799be1690808311215s4ab965d4l941ddd2b67536653@...627...> References: <48BABD12.6060805@...1400...> <799be1690808311215s4ab965d4l941ddd2b67536653@...627...> Message-ID: <20080831141607.f740hxdf4o4s0okc@...1958...> Quoting Jason Hackney : > First of all, I bought this book. Mr. Rittinghouse obviously worked > very hard on it and I felt he deserves a little something for his > effort. > > Does anyone know if Mr. Rittinghouse plans on releasing an updated > version of this book? There are inconsistencies, errors, and just > plain outdated information throughout the current version. > > Just two examples: > > 1) There are some details omitted (or just not well clarified for a > beginner) in the chapter regarding drawing. > 2) The CASE/SELECT information could be more complete. > > I'd really, REALLY like to see some sort of reference (I know, > that would be a book in itself!!) > > Otherwise, it's a decent book (I've been using it primarily as a > reference). I'd love to help make it better. I have a knack for > finding mundane nuggets of goodness that can be cleaned up. > > Jason Sounds like a prime candidate for a Wiki project. ;-) > > p.s. John, if you're out there, I'm serious about the offer to help. > Thanks ! I didn't want to be a pest here. I think the www.AllBasic.Info site is maturing quickly. (almost a month old) I wish you guys would show some of your stuff over there and knock some socks off with Gambas. You already have the HotBasic Linux guru hooked. ;-) John