Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-04

TCombobox

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Jesus Reyes: (1)I'm trying to do a ComboBox Grid editor and I have some problems. In Keydown() the key…
Show quoted text 6 lines
(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

Reply by email

Jesus Reyes

(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.

(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?

Thanks.

Jesus Reyes A.

_________________________________________________________ Do You Yahoo!?
La mejor conexi�n a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx

Reply by email

Marc Weustink
to Jesus Reyes
Mattias Gaertner wrote 12 lines
On Fri, 11 Apr 2003 11:30:06 -0500 (CDT) Jesus Reyes 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.

I'll try to have a look inside.

Show quoted text 7 lines
> (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?

Not yet

Marc

Reply by email