[lazarus] Tab generates error

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Sep 23 05:40:32 EDT 2003


On 23 Sep 2003 00:48:32 -0600
Tom Lisjac <netdxr at adelphia.net> wrote:

> 
> > Doubleclicking a control generates three events in this order:
> 
> > This causes me grief because if I use setfocus during the dblclk event, 
> > the next buttonup event will set the focus to NO control, despite the 
> > fact that I'm not setting focus within the event handler.
> 
> I've been trying to run down an event related issue that sounds similar.
> Single clicking on items in a listbox frequently causes the focus and
> returned itemindex to jump around erratically. When it happens, the
> itemindex returned is the last item of the list with the focus somewhere
> close to the last item.

It happens on drag operations. The gtk list box has no treshold and so there
is always a drag. I don't know, why the last item is selected. The
gtk-interface does not select. Maybe something the gtk-interface does,
resets the gtk drag operation.


Mattias






More information about the Lazarus mailing list