Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-27 Thread Kadaitcha Man
2010/1/27 Doriano Blengino : > Kadaitcha Man ha scritto: >> 2010/1/27 Benoît Minisini : >> >> >> >> Doriano, it isn't personal, squire. I have an exquisite understanding >> of English, which means I can twist it anyway I like :) >> >> Doriano, if you and I misunderstand each other, let's make a ge

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-27 Thread Doriano Blengino
Kadaitcha Man ha scritto: > 2010/1/27 Benoît Minisini : > > > > Doriano, it isn't personal, squire. I have an exquisite understanding > of English, which means I can twist it anyway I like :) > > Doriano, if you and I misunderstand each other, let's make a genuine > effort to understand in private

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-27 Thread Kadaitcha Man
2010/1/27 Benoît Minisini : > The Kadaitcha syndrome apparently :-) Yeah, look, mate, honestly, I have that effect on people. i really don't know why. Despite my best efforts to avoid it, it just happens. I mean, heck, I have been unknowingly having that effect on people without any kind of inten

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-26 Thread Kadaitcha Man
2010/1/26 Doriano Blengino : > Kadaitcha Man ha scritto: >> 2010/1/26 Doriano Blengino : >> >> >>> This is a more general problem of gambas syntax. Is Listbox1[5] the >>> sixth element of an array of listboxes, or the sixth element of >>> Listbox1? >>> >> >> You are confabulating and conflating. >>

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-26 Thread Benoît Minisini
> Doriano Blengino ha scritto: > > Actually I expressed myself badly. Example: > > > > Tree1: > > - item0 > > - item1 > > - item1.0 > > > > Tree1.count is 3 (global count) > > Tree1.Children.count is 2 (tree1 has two children) > > Tree1.Children[0] is item0 > > Tree1.Children[0].count

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-26 Thread Matteo Pasotti
Doriano Blengino ha scritto: > Actually I expressed myself badly. Example: > > Tree1: > - item0 > - item1 > - item1.0 > > Tree1.count is 3 (global count) > Tree1.Children.count is 2 (tree1 has two children) > Tree1.Children[0] is item0 > Tree1.Children[0].count is 0 > Tree1.Children[1

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-26 Thread Doriano Blengino
Kadaitcha Man ha scritto: > 2010/1/26 Doriano Blengino : > > >> This is a more general problem of gambas syntax. Is Listbox1[5] the >> sixth element of an array of listboxes, or the sixth element of >> Listbox1? >> > > You are confabulating and conflating. > At least, I *think*. You don'

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-26 Thread Kadaitcha Man
2010/1/26 Doriano Blengino : > Kadaitcha Man ha scritto: >>> Tree1 is a TreeView, not a node. >>> >> >> Therefore tv["Tree1"].Count = 2 is still true. >> > No, it is false. tv["Tree1"].Children.Count is two. Take a step back. If, as you say, tv["Tree1"].Children.Count is two, then, as I say, "tv

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-26 Thread Doriano Blengino
Kadaitcha Man ha scritto: > 2010/1/26 Doriano Blengino : > >> Kadaitcha Man ha scritto: >> >>> 2010/1/26 Doriano Blengino : >>> >>> >>> Actually I expressed myself badly. Example: >>> Actually, I express myself badly quite often. Example: >>> >>> [CENSORED] [C

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-26 Thread Kadaitcha Man
2010/1/26 Doriano Blengino : > This is a more general problem of gambas syntax. Is Listbox1[5] the > sixth element of an array of listboxes, or the sixth element of > Listbox1? You are confabulating and conflating. > I never tried to make array of listboxes There you go then, hey. So, why do yo

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-26 Thread Kadaitcha Man
2010/1/26 Doriano Blengino : > Kadaitcha Man ha scritto: >> 2010/1/26 Doriano Blengino : >> >> >>> Actually I expressed myself badly. Example: >>> >> >> Actually, I express myself badly quite often. Example: >> >> [CENSORED] [CENSORED] [CENSORED] [CENSORED]! >> >> :) >> >> As for this: >> >> [QUOTE

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-26 Thread Doriano Blengino
Kadaitcha Man ha scritto: > 2010/1/26 Doriano Blengino : > > >> Actually I expressed myself badly. Example: >> > > Actually, I express myself badly quite often. Example: > > [CENSORED] [CENSORED] [CENSORED] [CENSORED]! > > :) > > As for this: > > [QUOTE] > Tree1: > - item0 > - item1 >

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-26 Thread Kadaitcha Man
2010/1/26 Doriano Blengino : > Actually I expressed myself badly. Example: Actually, I express myself badly quite often. Example: [CENSORED] [CENSORED] [CENSORED] [CENSORED]! :) As for this: [QUOTE] Tree1: - item0 - item1 - item1.0 Tree1.count is 3 (global count) [QUOTE] Unless y

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-26 Thread Doriano Blengino
Kadaitcha Man ha scritto: > On 26 January 2010 18:58, Doriano Blengino > wrote: > > >> What about using two different properties: .Count (all the items) and >> .Children.Count (only the children of a specific node)? >> > > I neglected to mention, your idea does not seem to allow for the co

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-26 Thread Kadaitcha Man
On 26 January 2010 18:58, Doriano Blengino wrote: > What about using two different properties: .Count (all the items) and > .Children.Count (only the children of a specific node)? I neglected to mention, your idea does not seem to allow for the count of root nodes. -

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-26 Thread Kadaitcha Man
On 26 January 2010 18:58, Doriano Blengino wrote: > Benoît Minisini ha scritto: >>> Benoît, >>> >>> Just for that you should go with the GTK+ way :P >>> >>> Regards, >>> Dimitris >>> >>> >> >> But is it really useful? We need to know how many root items a TreeView or a >> ColumnView has, too! >> >

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-26 Thread Doriano Blengino
Benoît Minisini ha scritto: >> Benoît, >> >> Just for that you should go with the GTK+ way :P >> >> Regards, >> Dimitris >> >> > > But is it really useful? We need to know how many root items a TreeView or a > ColumnView has, too! > > What about using two different properties: .Count (all

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Dimitris Anogiatis
Ooops, Correction on the second example it should read countMyTreeItems = Treeview1.Count("item2", true) Sorry guys it's a bit late over here Regards Dimitris On Tue, Jan 26, 2010 at 12:49 AM, Dimitris Anogiatis wrote: > Benoît, > > Perhaps another approach would be to get rid of the Count pr

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Dimitris Anogiatis
Benoît, Perhaps another approach would be to get rid of the Count property and create a Count method that would count the children of a given root in the control (and optionally all it's branches). for example / (root) item1 item2--item3 |-item4 |-item5 |-item6 item7 The

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Kadaitcha Man
On 26 January 2010 12:44, Dimitris Anogiatis wrote: > Benoît, > > Just for that you should go with the GTK+ way :P Just for that, he should go with however Windows does it. Neener! Neener! :) -- The Planet: dedicated a

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Kadaitcha Man
2010/1/26 Benoît Minisini : >> Benoît, >> >> Just for that you should go with the GTK+ way :P >> >> Regards, >> Dimitris >> > > But is it really useful? We need to know how many root items a TreeView or a > ColumnView has, too! Perhaps a new property. However, when I need to know such things, I wr

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Benoît Minisini
> Benoît, > > Just for that you should go with the GTK+ way :P > > Regards, > Dimitris > But is it really useful? We need to know how many root items a TreeView or a ColumnView has, too! -- Benoît Minisini -- The Pl

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Dimitris Anogiatis
Benoît, Just for that you should go with the GTK+ way :P Regards, Dimitris On Mon, Jan 25, 2010 at 5:59 PM, Kadaitcha Man < nospam.nospam.nos...@gmail.com> wrote: > 2010/1/26 Benoît Minisini : > > > But now I can't decide. > > Go with the logic! Go with the logic! > > >

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Kadaitcha Man
2010/1/26 Benoît Minisini : > But now I can't decide. Go with the logic! Go with the logic! -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best ne

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Benoît Minisini
> Hi everybody, > I'm still here beacuse I can't understand why the Count property of a > TreeView changes using qt rather than gtk. > Now I'm using Gambas 2.19 (on Ubuntu 9.10) from the ppa repo deb > http://ppa.launchpad.net/madnessmike/gambas/ubuntu karmic main. > > I've attached a project exam

[Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Matteo Pasotti
Hi everybody, I'm still here beacuse I can't understand why the Count property of a TreeView changes using qt rather than gtk. Now I'm using Gambas 2.19 (on Ubuntu 9.10) from the ppa repo deb http://ppa.launchpad.net/madnessmike/gambas/ubuntu karmic main. I've attached a project example. Usin