Re: [Gambas-user] Is this a bug

2014-01-31 Thread Tobias Boege
On Fri, 31 Jan 2014, Wolfgang wrote: Hello all, I found a strange behaviour with opacity. Example: Public Sub ButtonStart_Click() Dim img1, img2 As Image Dim i As Integer 'let us load an image to img1 img1 = Image.Load(data/map.png) For i = 1 To 20 img2 = img1

[Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread PICCORO McKAY Lenz
i try to fill combobox but i cannot access array objects by index names: ComboBoxLinDest.Add(objetivodestino[destino_descripcion], objetivodestino[destino_id]) the code to fill array matrix are: 1) in transpor class Public Function GetDestinos() As String[] Dim RelenosCombox As New

Re: [Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread Tobias Boege
On Fri, 31 Jan 2014, PICCORO McKAY Lenz wrote: i try to fill combobox but i cannot access array objects by index names: ComboBoxLinDest.Add(objetivodestino[destino_descripcion], objetivodestino[destino_id]) the code to fill array matrix are: 1) in transpor class Public Function

[Gambas-user] how to set a specific day in datechooser component

2014-01-31 Thread PICCORO McKAY Lenz
There's some way to select specific date and limits choose to this day in the datechoose calendar component? i mean... limits the dais to choose to only future dais! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com

Re: [Gambas-user] how to set a specific day in datechooser component

2014-01-31 Thread Tobias Boege
On Fri, 31 Jan 2014, PICCORO McKAY Lenz wrote: There's some way to select specific date and limits choose to this day in the datechoose calendar component? i mean... limits the dais to choose to only future dais! You have to do that yourself (let dtcDate be your DateChooser): Public Sub

[Gambas-user] how to sum 3 days to Date

2014-01-31 Thread PICCORO McKAY Lenz
i wish to make a date diff but my upper date must be the now + 3 days in future, how to make this addition to the Day(now) value if are in ending (just like 31) due 31 + 3 are 34!!! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com

[Gambas-user] KeyPress Escape to close a form

2014-01-31 Thread abbat81
How to make an event for Key Press Escape button to close a form Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/KeyPress-Escape-to-close-a-form-tp45464.html Sent from the gambas-user mailing list archive at Nabble.com.

Re: [Gambas-user] how to sum 3 days to Date

2014-01-31 Thread Tobias Boege
On Fri, 31 Jan 2014, PICCORO McKAY Lenz wrote: i wish to make a date diff but my upper date must be the now + 3 days in future, how to make this addition to the Day(now) value if are in ending (just like 31) due 31 + 3 are 34!!! Mind looking at the documentation? DateAdd(Now(), gb.Day,

Re: [Gambas-user] KeyPress Escape to close a form

2014-01-31 Thread Tobias Boege
On Fri, 31 Jan 2014, abbat81 wrote: How to make an event for Key Press Escape button to close a form Thanks Do you mean: Public Sub Form_KeyPress() If Key.Code = Key.Esc Then Me.Close() End This has nothing to do with a Button you were mentioning in the question but honestly, I don't see

Re: [Gambas-user] KeyPress Escape to close a form

2014-01-31 Thread Benoît Minisini
Le 31/01/2014 19:25, Tobias Boege a écrit : On Fri, 31 Jan 2014, abbat81 wrote: How to make an event for Key Press Escape button to close a form Thanks Do you mean: Public Sub Form_KeyPress() If Key.Code = Key.Esc Then Me.Close() End This has nothing to do with a Button you were

Re: [Gambas-user] how to set a specific day in datechooser component

2014-01-31 Thread PICCORO McKAY Lenz
From: Tobias Boege tabo...@gmail.com You have to do that yourself (let dtcDate be your DateChooser): ¬_¬u Public Sub dtcDate_Change() dtcDate.Value = Max(Now(), dtcDate.Value) End Alas, the DateChooser does not support Stop Event in the Change event, so I always reset the dtcDate.Value

Re: [Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread PICCORO McKAY Lenz
However, if you want to use strings as indices, you better forget about String[] (which only accepts integer indices) and use Collection. does gambas provide collections in same way of java does? However, if you want to fill a ComboBox, you cannot pass a string as the second argument to

Re: [Gambas-user] how to set a specific day in datechooser component

2014-01-31 Thread Benoît Minisini
Le 31/01/2014 17:52, PICCORO McKAY Lenz a écrit : There's some way to select specific date and limits choose to this day in the datechoose calendar component? i mean... limits the dais to choose to only future dais! Lenz McKAY Gerardo (PICCORO) A 'MinDate' property could be a good idea...

Re: [Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread Tobias Boege
On Fri, 31 Jan 2014, PICCORO McKAY Lenz wrote: However, if you want to use strings as indices, you better forget about String[] (which only accepts integer indices) and use Collection. does gambas provide collections in same way of java does? No, in Gambas, a Collection is a hash table

Re: [Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread PICCORO McKAY Lenz
errr about collection another question.. documentation are not cleary how to use.. its creatable ? http://gambasdoc.org/help/lang/collection?csv3 dim pep as new collection? in that link does not show how to instanciate/create/make a var of type Lenz McKAY Gerardo (PICCORO)

Re: [Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread Tobias Boege
On Fri, 31 Jan 2014, PICCORO McKAY Lenz wrote: errr about collection another question.. documentation are not cleary how to use.. its creatable ? http://gambasdoc.org/help/lang/collection?csv3 dim pep as new collection? in that link does not show how to instanciate/create/make a var

Re: [Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread PICCORO McKAY Lenz
Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From: Beno?t Minisini gam...@users.sourceforge.net A 'MinDate' property could be a good idea... And a 'MaxDate' too, why not? HEY BENOIT, NEVERMIND! FORGET IT AND MAKE THE EXAMPLES OF GB.WEB PLEASE!!! (i still remenber that mail ok)

Re: [Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread PICCORO McKAY Lenz
do the following: create a String[] aResult or something. Then use the hresult[whatever_id], converted to an Integer, as index: aResult.Add(hresult[payload], CInt(hresult[whatever_id])) umm this mees might work like the collection idea also dont work!!! combobox auto enumrate the index, so

Re: [Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread Fabien Bodard
Public Function GetDestinos() As String[] Dim RelenosCombox As New String[] hresul = hconn.Find(tb_destino) for each hResul RelenosCombox.Add(hresul[destino_id] | hresul[destino_descripcion]) next Return RelenosCombox End 2) in form class Public Sub