realbasic-nug.it
[Top] [All Lists]

Re: ListBox and Tab key

To: REALbasic NUG Italian <realbasic-nug dot it at lists dot realsoftware dot com>
Subject: Re: ListBox and Tab key
From: Lucio Liberi <lucioing at tin dot it>
Date: Thu, 20 Apr 2006 16:24:46 +0200
Delivered-to: realbasic-nug dot it at lists dot realsoftware dot com
References: <91276EB1-920C-44F4-9F68-BA01E47A321E at tin dot it> <C91683EA-86D7-4625-9D4E-DA5FAC02452A at ticino dot com>

Il giorno 20/apr/06, alle ore 16:21, Matteo Cortonesi ha scritto:


On 20-apr-06, at 16:11, Lucio Liberi wrote:

Ciao.
Mi sono accorto di un probabile bug. Dunque...

Non è un bug, deve essere così.
Perche'?
Se invece vuoi farlo comportare nel modo che vuoi te devi restitutuire true nell'evento cellkeydown (di modo che la pressione del tasto non viene intercettata da altri eventi. È proprio per questo che l'evento ha anche un return value.

Il tuo codice diventa:

  if key=chr(9) then
    ParaboleListBox.EditCell(row, column+1)
    return True
perche' qui e non alla fine?   Giusto, Adesso ho capito. Grazie.
  end if

Matteo



<Prev in Thread] Current Thread [Next in Thread>