I found a issue with Gtk1 only. This does not happen in Gtk2 or Win32.
For a TListbox the OnClick event fires multiple times instead of just once.
eg:
Create a form, drop a memo and Listbox on the form. Add a few items to
the Listbox. Add a OnClick event handler for the ListBox
procedure TForm1.ListBox1Click(Sender: TObject);
begin
Memo1.Append('OnClick');
end;
Now run the app using Gtk1 and select any item. You should see 2
OnClicks appear in the memo. Same thing happens when you press the
up/down arrows. Only a single event fires under Win32 and Gtk2. Also
happens when setting the ItemIndex.
This seems to be very similar to the bug reports #1495 and #1500 but
for the TListbox control. Should I add my findings to those, or
create a new bug report.
Below is a trace of what happens in my application when I populate a
TListbox at runtime.
Regards,
- Graeme -
-----------------------------------------
TApplication.HandleException Access violation
Stack trace:
$080862FF TPLAYLIST__JUMPTOSTARTOFOUTCOME, line 334 of PlayListImpl.inc
$081FA3A3 TMODULEVIEWERFORM__MENULISTCLICK, line 135 of moduleviewer.pas
$0811C40E TCONTROL__CLICK, line 1857 of ./include/control.inc
$0816AC38 TCUSTOMLISTBOX__DOSELECTIONCHANGE, line 401 of
./include/customlistbox.inc
$0816A76E TCUSTOMLISTBOX__LMSELCHANGE, line 239 of
./include/customlistbox.inc
$0805D7AF
$0811BD16 TCONTROL__WNDPROC, line 1534 of ./include/control.inc
$08113741 TWINCONTROL__WNDPROC, line 3347 of ./include/wincontrol.inc
$081303ED DELIVERMESSAGE, line 3469 of gtkproc.inc
$0813BCD2 GTKLISTBOXSELECTIONCHANGEDAFTER, line 3127 of gtkcallback.inc
-----------------------------------------
--
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