Am Montag, den 08.05.2006, 12:02 -0400 schrieb Tony Maro:
> 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.
I did the same thing, discriminating the events on attached data.
> Mine was GTK1 and the TListBox using custom drawing.
For me it was a button triggered by a shortcut (accelerator key).
> 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.
So it is clearly seperate from my problem, the workaround is from may
2004.
Regards,
Marc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives