Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-09

ComboBox.OnChange not work

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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.

http://luisdigital.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080913/edc20abd/attachment.html

Reply by email

Reenen Laurie
to Luis R. Hilario B.

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.

Luis R. Hilario B. wrote 15 lines
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. -- http://luisdigital.com
Sent from Gmail for mobile | mobile.google.com o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions.

Reply by email

Luis R. Hilario B.
to Reenen Laurie

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

Show quoted text 35 lines
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. 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 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. > > -- > http://luisdigital.com > -- Sent from Gmail for mobile | mobile.google.com o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions. _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
http://luisdigital.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080913/7516ee04/attachment.html

Reply by email

Felipe Monteiro de Carvalho
to Luis R. Hilario B.

2008/9/13 Luis R. Hilario B. :

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 Monteiro de Carvalho

Reply by email

Mattias Gaertner
to Felipe Monteiro de Carvalho
Show quoted text 6 lines
2008/9/13 Luis R. Hilario B. : > 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.

Or use OnSelect or maybe you want to use OnEditingDone instead.

Mattias

Reply by email

Luis R. Hilario B.
to Mattias Gaertner

2008/9/13 Mattias Gaertner

Show quoted text 10 lines
On Sat, 13 Sep 2008 17:04:48 -0300 "Felipe Monteiro de Carvalho" wrote: > 2008/9/13 Luis R. Hilario B. : > > 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.

Yes, in Windows always worked of that way.

It wanted to be sure, since I am modifying an old program that now does not work due to the change in Lazarus.

Or use OnSelect or maybe you want to use OnEditingDone instead.

Ok.

Thanks

Show quoted text 9 lines
Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
http://luisdigital.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080913/fade5371/attachment.html

Reply by email