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.
Regards, - Graeme - On 08/05/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Apparently the onclick event gets called with an itemindex of -1 every other time, even when you click on the item. I was then trying to access an object in the TListBox by the provided onclick itemindex. For every click, I get to onclick event calls. The first one has itemindex of -1 and the second one has it set properly. Sorry for top posting - using web interface.
-- There's no place like 127.0.0.1 _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives