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

Re: Gestion du clavier dans une ListBox (Re: Petites questions(suite))

To: REALbasic NUG French <realbasic-nug dot fr at lists dot realsoftware dot com>
Subject: Re: Gestion du clavier dans une ListBox (Re: Petites questions(suite))
From: Sébastien Debiève <heero3 at mac dot com>
Date: Sat, 31 May 2008 17:15:16 +0200
Authentication-results: mx.google.com; spf=pass (google.com: domain of realbasic-nug dot fr-bounces at lists dot realsoftware dot com designates 66.116.103.65 as permitted sender) smtp dot mail=realbasic-nug dot fr-bounces at lists dot realsoftware dot com
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug dot fr at lists dot realsoftware dot com
References: <C4671288 dot 31BEB%fvanlerberghe at freegates dot be> <E0343BE3-7F51-4715-A575-C432A562CC1C at mac dot com> <10EF36DB-16C6-4F98-A1EB-63C080309061 at cretaux dot fr>
Donc le code que je dois mettre dans l'event KeyDown de la listbox serait bien celui-ci :

  If Keyboard.AsyncKeyDown(31) then //bas
ListBox1.ListIndex = min(ListBox1.ListIndex + 1, ListBox1.ListCount-1)
    return true
  end if

Merci d'avance
Sébastien


Le 31-mai-08 à 17:10, Antoine Crêtaux a écrit :

return true



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