Marc Santhoff wrote:
> Am Montag, den 08.05.2006, 10:46 +0200 schrieb Graeme Geldenhuys:
>
>> That one got me as well!! It is a bug and has already been reported
>> on Mantis. What makes it worse, is that it only occurs on certain
>> widget sets. I believe Gtk2 works correctly, but Win32 and Gtk1 adds
>> that extra onclick event with ItemIndex of -1.
>>
>
> I'm not sure what widget it was, but I had a similar bug causing an
> event to send two times but one long ago using GTK1 and FPC only (no
> lazarus involved).
>
> IIRC it was in the area of key presses or the like.
>
> I can dig my logs after it if it helps finding a solution ...
>
Well my simple workaround was to watch for a draw event called with
itemindex of -1. However, I think it does signify something wrong with
the GTK Widget. Obviously there's no reason to draw an item in the
listbox that has an index of -1.
Mine was GTK1 and the TListBox using custom drawing.
Not that this helps, but it was introduced as a bug in the past 8 months
or so. Code compiled on FPC / Laz from over 8 months ago didn't
experience this problem. I just updated FPC+Laz and working code from
before started crashing.
-Tony
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives