Re: [Lazarus] ComboBox bug?

2011-09-23 Thread Mattias Gaertner
  Hans-Peter Diettrich drdiettri...@aol.com hat am 23. September 2011 um 05:40 geschrieben: Mattias Gaertner schrieb: procedure TCustomComboBox.UpdateSorted; var    lText: string;    lIndex: integer; begin    if HandleAllocated then      

Re: [Lazarus] ComboBox bug?

2011-09-23 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: Hans-Peter Diettrich drdiettri...@aol.com hat am 23. September 2011 um 05:40 geschrieben: Mattias Gaertner schrieb: procedure TCustomComboBox.UpdateSorted; var lText: string; lIndex: integer; begin if HandleAllocated then

Re: [Lazarus] ComboBox bug?

2011-09-23 Thread Mattias Gaertner
On Fri, 23 Sep 2011 16:23:02 +0200 Hans-Peter Diettrich drdiettri...@aol.com wrote: Mattias Gaertner schrieb: Hans-Peter Diettrich drdiettri...@aol.com hat am 23. September 2011 um 05:40 geschrieben: Mattias Gaertner schrieb: procedure TCustomComboBox.UpdateSorted; var

Re: [Lazarus] ComboBox bug?

2011-09-23 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: On Fri, 23 Sep 2011 16:23:02 +0200 Hans-Peter Diettrich drdiettri...@aol.com wrote: Mattias Gaertner schrieb: Hans-Peter Diettrich drdiettri...@aol.com hat am 23. September 2011 um 05:40 geschrieben: Mattias Gaertner schrieb: procedure

Re: [Lazarus] ComboBox bug?

2011-09-23 Thread Mattias Gaertner
On Fri, 23 Sep 2011 22:24:15 +0200 Hans-Peter Diettrich drdiettri...@aol.com wrote: Mattias Gaertner schrieb: On Fri, 23 Sep 2011 16:23:02 +0200 Hans-Peter Diettrich drdiettri...@aol.com wrote: Mattias Gaertner schrieb: Hans-Peter Diettrich drdiettri...@aol.com hat am 23. September

[Lazarus] ComboBox bug?

2011-09-22 Thread Hans-Peter Diettrich
During the revision of the StdCtrls documentation I came across an possible bug in TCustomComboBox. Whenever the Sorted property is changed (SetSorted), UpdateSorted is called. It looks like UpdateSorted *always* sorts the list, as long as no handle (widget) has been created. This

Re: [Lazarus] ComboBox bug?

2011-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2011 19:26:25 +0200 Hans-Peter Diettrich drdiettri...@aol.com wrote: During the revision of the StdCtrls documentation I came across an possible bug in TCustomComboBox. Whenever the Sorted property is changed (SetSorted), UpdateSorted is called. It looks like UpdateSorted

Re: [Lazarus] ComboBox bug?

2011-09-22 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: Whenever the Sorted property is changed (SetSorted), UpdateSorted is called. It looks like UpdateSorted *always* sorts the list, as long as no handle (widget) has been created. This misbehaviour should affect at least the list items in design mode. What would be

Re: [Lazarus] ComboBox bug?

2011-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2011 22:48:52 +0200 Hans-Peter Diettrich drdiettri...@aol.com wrote: Mattias Gaertner schrieb: Whenever the Sorted property is changed (SetSorted), UpdateSorted is called. It looks like UpdateSorted *always* sorts the list, as long as no handle (widget) has been created.

Re: [Lazarus] ComboBox bug?

2011-09-22 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: procedure TCustomComboBox.UpdateSorted; var lText: string; lIndex: integer; begin if HandleAllocated then TWSCustomComboBoxClass(WidgetSetClass).Sort(Self, Items, FSorted) else if FItems is TStringList then begin // remember text lText := Text;

Re: [Lazarus] ComboBox Bug

2011-06-25 Thread Bart
See if Suse 11.4 comes with a program called gtk-demo (Suse 10.0 does). (Just try running it form a commandline). It has a combobox demo in it, with sources. You could modify the source to make the combobox empty, build, run and see if the bug is also present. Then you can sent in a report to

[Lazarus] ComboBox Bug

2011-06-24 Thread David Copeland
Hi, I believe I have found a ComboBox bug, but I don't how I should categorize it. If you click on the expand list down arrow of the control, the program is terminated and the following message is displayed. david.copeland@dbc:~/projects/test ./CBBug The program 'CBBug' received an X Window

Re: [Lazarus] ComboBox Bug

2011-06-24 Thread Mattias Gaertner
On Fri, 24 Jun 2011 11:48:08 -0400 David Copeland david.copel...@jsidata.ca wrote: Hi, I believe I have found a ComboBox bug, but I don't how I should categorize it. If you click on the expand list down arrow of the control, the program is terminated and the following message is displayed.

Re: [Lazarus] ComboBox Bug

2011-06-24 Thread David Copeland
On Fri, 2011-06-24 at 18:22 +0200, Mattias Gaertner wrote: function.) It works here. Please test with ./CBBug --sync And please test with some other themes to make sure it is a LCL bug and not a buggy gtk theme engine. Finally test with another window manager (do not confuse it with

Re: [Lazarus] ComboBox Bug

2011-06-24 Thread David Copeland
On Fri, 2011-06-24 at 18:22 +0200, Mattias Gaertner wrote: Please test with ./CBBug --sync No change, same problem. And please test with some other themes to make sure it is a LCL bug and not a buggy gtk theme engine. I found a way to change the GTK Style. It was oxygen-gtk. When I change

Re: [Lazarus] ComboBox Bug

2011-06-24 Thread Mattias Gaertner
On Fri, 24 Jun 2011 13:22:49 -0400 David Copeland david.copel...@jsidata.ca wrote: On Fri, 2011-06-24 at 18:22 +0200, Mattias Gaertner wrote: Please test with ./CBBug --sync No change, same problem. And please test with some other themes to make sure it is a LCL bug and not a buggy

Re: [Lazarus] ComboBox Bug

2011-06-24 Thread David Copeland
On Fri, 2011-06-24 at 19:41 +0200, Mattias Gaertner wrote: Then you found a buggy gtk theme. I don't know, if the LCL gtk2 interface can work around this. What Linux distribution is this? openSuse 11.4. -- ___ Lazarus mailing list

Re: [Lazarus] ComboBox Bug

2011-06-24 Thread zeljko
On Friday 24 of June 2011 19:51:35 David Copeland wrote: On Fri, 2011-06-24 at 19:41 +0200, Mattias Gaertner wrote: Then you found a buggy gtk theme. I don't know, if the LCL gtk2 interface can work around this. What Linux distribution is this? openSuse 11.4. There's a lot of bugs in