Re: [Gambas-user] Adding keyboard shortcuts to listbox_keyrelease event

2008-10-09 Thread Doriano Blengino
M0E Lnx ha scritto: > Modified it and this time it does work > > PUBLIC SUB lbTmZone_KeyPress() > > DIM i AS Integer > > > IF Key.text > "z" OR Key.text < " " THEN RETURN ' not searchable > > i = lbTmZone.Index > DO > INC i > IF i >= lbTmZone.Count THEN i = 0 'back

Re: [Gambas-user] Adding keyboard shortcuts to listbox_keyrelease event

2008-10-09 Thread M0E Lnx
Modified it and this time it does work PUBLIC SUB lbTmZone_KeyPress() DIM i AS Integer IF Key.text > "z" OR Key.text < " " THEN RETURN ' not searchable i = lbTmZone.Index DO INC i IF i >= lbTmZone.Count THEN i = 0 'back to top IF i = lbTmZone.Index TH

Re: [Gambas-user] Adding keyboard shortcuts to listbox_keyrelease event

2008-10-09 Thread M0E Lnx
I can see in my head how this *should* work... but I tried it in my project and it doesn't On Thu, Oct 9, 2008 at 1:17 AM, Doriano Blengino <[EMAIL PROTECTED]> wrote: > M0E Lnx ha scritto: >> is there a way to code it in my key_release event? >> >> On Tue, Oct 7, 2008 at 4:53 PM, Benoit Minisini

Re: [Gambas-user] Adding keyboard shortcuts to listbox_keyrelease event

2008-10-08 Thread Doriano Blengino
M0E Lnx ha scritto: > is there a way to code it in my key_release event? > > On Tue, Oct 7, 2008 at 4:53 PM, Benoit Minisini > <[EMAIL PROTECTED]> wrote: > >> On mardi 07 octobre 2008, M0E Lnx wrote: >> >>> I have a really long list in a lisbox. I'd like to make it so when I >>> press "s" o

Re: [Gambas-user] Adding keyboard shortcuts to listbox_keyrelease event

2008-10-08 Thread M0E Lnx
is there a way to code it in my key_release event? On Tue, Oct 7, 2008 at 4:53 PM, Benoit Minisini <[EMAIL PROTECTED]> wrote: > On mardi 07 octobre 2008, M0E Lnx wrote: >> I have a really long list in a lisbox. I'd like to make it so when I >> press "s" on the keyboard, it jumps to the first item

Re: [Gambas-user] Adding keyboard shortcuts to listbox_keyrelease event

2008-10-07 Thread Benoit Minisini
On mardi 07 octobre 2008, M0E Lnx wrote: > I have a really long list in a lisbox. I'd like to make it so when I > press "s" on the keyboard, it jumps to the first item whose text > starts with an "s" or any other letter for that matter. > > Can someone suggest a way to do this? > Yes, Qt does that

[Gambas-user] Adding keyboard shortcuts to listbox_keyrelease event

2008-10-07 Thread M0E Lnx
I have a really long list in a lisbox. I'd like to make it so when I press "s" on the keyboard, it jumps to the first item whose text starts with an "s" or any other letter for that matter. Can someone suggest a way to do this? -