[Lazarus] ComboBox.OnChange not work

2008-09-13 Thread Luis R. Hilario B.
Hello all, It was a lot of inactive time, but now I am using Lazarus in Linux (GTK and GTK2). I do not remember how does function in Delphi, but seems me that OnChange should work when changes the index using code: ComboBox1.ItemIndex := NewIndex; Please verify if the error exists. Thanks. --

Re: [Lazarus] ComboBox.OnChange not work

2008-09-13 Thread Reenen Laurie
I think it only executes when it is changed by the user via the GUI. If you change it via code, it doesn't trigger. On 9/13/08, Luis R. Hilario B. [EMAIL PROTECTED] wrote: Hello all, It was a lot of inactive time, but now I am using Lazarus in Linux (GTK and GTK2). I do not remember how

Re: [Lazarus] ComboBox.OnChange not work

2008-09-13 Thread Luis R. Hilario B.
Then previously Lazarus had a bug in Linux. Is strange because visually the index changes and thought that OnChange should be triggered. Someone tested with Delphi? 2008/9/13 Reenen Laurie [EMAIL PROTECTED] I think it only executes when it is changed by the user via the GUI. If you change it

Re: [Lazarus] ComboBox.OnChange not work

2008-09-13 Thread Mattias Gaertner
On Sat, 13 Sep 2008 17:04:48 -0300 Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: 2008/9/13 Luis R. Hilario B. [EMAIL PROTECTED]: Is strange because visually the index changes and thought that OnChange should be triggered. Someone tested with Delphi? It is so by design and

Re: [Lazarus] ComboBox.OnChange not work

2008-09-13 Thread Felipe Monteiro de Carvalho
2008/9/13 Luis R. Hilario B. [EMAIL PROTECTED]: Is strange because visually the index changes and thought that OnChange should be triggered. Someone tested with Delphi? It is so by design and compatible with delphi. You can call OnChange manually yourself if you wish to do that. -- Felipe

Re: [Lazarus] ComboBox.OnChange not work

2008-09-13 Thread Luis R. Hilario B.
2008/9/13 Mattias Gaertner [EMAIL PROTECTED] On Sat, 13 Sep 2008 17:04:48 -0300 Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: 2008/9/13 Luis R. Hilario B. [EMAIL PROTECTED]: Is strange because visually the index changes and thought that OnChange should be triggered. Someone