Re: [Gambas-user] compiling rev 6189

2014-03-03 Thread Charlie Reinl
Am Montag, den 03.03.2014, 23:09 +0100 schrieb Tobias Boege: > On Mon, 03 Mar 2014, Karl Reinl wrote: > > Salut Beno??t, > > > > run in troubles while compiling rev 6189, see attached logs > > Did I miss something ? > > Is it better with #6190? > > Note that I looked into this is pure coincidenc

Re: [Gambas-user] Building a custom MyComboBox

2014-03-03 Thread Daniel Quintero
aIDs is an array of Integers (You can declare an array of Strings if is your case, or an array of Variants), and you can assing that array to a Variant variable, as is the case of the Tag property of the combobox. *_* *Lic. Daniel Quintero Rojas* *¡Saludos desde México!___

Re: [Gambas-user] compiling rev 6189

2014-03-03 Thread Tobias Boege
On Mon, 03 Mar 2014, Karl Reinl wrote: > Salut Beno??t, > > run in troubles while compiling rev 6189, see attached logs > Did I miss something ? Is it better with #6190? Note that I looked into this is pure coincidence because extracting those archives is quite some work :-) It would be nice if

[Gambas-user] compiling rev 6189

2014-03-03 Thread Karl Reinl
Salut Benoît, run in troubles while compiling rev 6189, see attached logs Did I miss something ? -- Amicalement Charlie [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=2.6.32-56-generic Architecture=x86 Distribution=Ubuntu 10.04.4 LTS Desktop=GNOME Theme=QPlastique Language=de_DE.UTF-8 Memo

Re: [Gambas-user] Building a custom MyComboBox

2014-03-03 Thread Matti
Aha! Another learning progress. Am 03.03.2014 21:48, schrieb Tobias Boege: > Variant can contain anything, even objects. -- Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, y

Re: [Gambas-user] Building a custom MyComboBox

2014-03-03 Thread Benoît Minisini
Le 03/03/2014 20:49, Matti a écrit : > I'm playing around with a ComboBox that should have some special features. > Looked into the sources and found out how to create and inherit it. > Subs, Functions and Events work. > > But one thing is a complete riddle to me: > In the wiki, it says: "For exam

Re: [Gambas-user] Building a custom MyComboBox

2014-03-03 Thread Tobias Boege
On Mon, 03 Mar 2014, Matti wrote: > Thanks, Daniel. > But I don't understand how you can assign the aIDs Integer[] to the > ComboBox.Tag that is a variant? Variant can contain anything, even objects. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ---

Re: [Gambas-user] Building a custom MyComboBox

2014-03-03 Thread Jorge Carrión
I give my 2 cents... Send a little proyect with sample. its a function that in design time only have to put in tag of listbox or combobox this tablename|fieldkey|field_to_show after that you got in the tag of the combo a variant[] with a string with the original tag and a integer[] with the keys co

Re: [Gambas-user] Building a custom MyComboBox

2014-03-03 Thread Matti
Thanks, Daniel. But I don't understand how you can assign the aIDs Integer[] to the ComboBox.Tag that is a variant? Anyway, I'd prefer a custom combo, since I need it often in a form and don't want to write everything again and again. Am 03.03.2014 21:04, schrieb Daniel Quintero: > I use this co

Re: [Gambas-user] Building a custom MyComboBox

2014-03-03 Thread Matti
Thanks, Tobi. Sounds plausible, I'll try that. Of course, I'm trying to write this in Gambas - I don't know any other language except VB, but that was long ago... Am 03.03.2014 20:55, schrieb Tobias Boege: > On Mon, 03 Mar 2014, Matti wrote: >> I'm playing around with a ComboBox that should have

Re: [Gambas-user] Building a custom MyComboBox

2014-03-03 Thread Daniel Quintero
I use this code (Obviously, without creating a custom combo): Public Sub LoadCombo() Dim aIDs As New Integer[] Dim sQuery As New String cboSample.Clear ' Load Data hResult = $hConn.Exec("select ID, desc from MyTable") For Each hResult cboSample.Add(hResult!desc) aIDs.Add(hResult!

Re: [Gambas-user] Building a custom MyComboBox

2014-03-03 Thread Tobias Boege
On Mon, 03 Mar 2014, Matti wrote: > I'm playing around with a ComboBox that should have some special features. > Looked into the sources and found out how to create and inherit it. > Subs, Functions and Events work. > > But one thing is a complete riddle to me: > In the wiki, it says: "For exampl

[Gambas-user] Building a custom MyComboBox

2014-03-03 Thread Matti
I'm playing around with a ComboBox that should have some special features. Looked into the sources and found out how to create and inherit it. Subs, Functions and Events work. But one thing is a complete riddle to me: In the wiki, it says: "For example, you can create a custom MyListBox class th

Re: [Gambas-user] Gambas2 {Control,Container}.Grab() replacement?

2014-03-03 Thread Benoît Minisini
Le 03/03/2014 19:46, Tobias Boege a écrit : > On Mon, 03 Mar 2014, Beno?t Minisini wrote: >> Le 03/03/2014 19:16, Tobias Boege a ?crit : >>> Hi Benoit, >>> >>> is it possible to provide a replacement for what the Control/Container >>> Grab() method did in Gambas2, i.e. returning a Picture of the co

Re: [Gambas-user] Gambas2 {Control,Container}.Grab() replacement?

2014-03-03 Thread Tobias Boege
On Mon, 03 Mar 2014, Beno?t Minisini wrote: > Le 03/03/2014 19:16, Tobias Boege a ?crit : > > Hi Benoit, > > > > is it possible to provide a replacement for what the Control/Container > > Grab() method did in Gambas2, i.e. returning a Picture of the control? > > > > Regards, > > Tobi > > > > You m

Re: [Gambas-user] Gambas2 {Control,Container}.Grab() replacement?

2014-03-03 Thread Benoît Minisini
Le 03/03/2014 19:16, Tobias Boege a écrit : > Hi Benoit, > > is it possible to provide a replacement for what the Control/Container > Grab() method did in Gambas2, i.e. returning a Picture of the control? > > Regards, > Tobi > You must play with Desktop.Screenshot instead. -- Benoît Minisini --

[Gambas-user] Gambas2 {Control,Container}.Grab() replacement?

2014-03-03 Thread Tobias Boege
Hi Benoit, is it possible to provide a replacement for what the Control/Container Grab() method did in Gambas2, i.e. returning a Picture of the control? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk