[lazarus] TCombobox

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Apr 11 13:00:28 EDT 2003


On Fri, 11 Apr 2003 11:30:06 -0500 (CDT)
Jesus Reyes <jesusrmx at yahoo.com.mx> wrote:

> (1)I'm trying to do a ComboBox Grid editor and I have some problems.
> In Keydown() the key events VK_UP/VK_DOWN only hit when
> ItemIndex=0/ItemIndex=Items.Count-1 respectively, reading the gtk
> reference it seems the default behavior. Can something be done in
> order to get keydown trap those events first?, so I can avoid item
> selection with arrow keys and doing grid navigation instead.

gtkcombo seems to use some tricks to get all keys. I had once tried to get
them without success. Maybe someone with more gtk knowlegde has an idea.


> (2)Combobox doesn't get ALT+DOWN but its ok, what I'm trying to do is
> to dropdown the list by code so I can use other key combination,
> there is a DroppedDown property but is in todo state. is there some
> message that I could send to the control in order to do this?

I added a ComboBoxDropDown method to the gtk interface. But I don't know how
to popup the combobox. Any ideas?


Mattias






More information about the Lazarus mailing list