×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Apr 2007
    Location
    Lublin, Poland
    Posts
    81

    Cool Capture keys from listbox

    Hello,
    I'd like to capture keys while displaying listbox. Is this possible without symbian-signing? (keycapture module requires this)
    Canvas and Text controls both have ways to read keypresses. Why doesn't Listbox have it?
    whatever happens happens

  2. #2
    Super Contributor
    Join Date
    May 2006
    Location
    Oulu, Finland
    Posts
    622

    Re: Capture keys from listbox

    Hi janekw_,

    This is called binding key:

    Code:
    listbox_object.bind(event_code, callback)
    I'm not sure if you should us "Keycode" or "Scancode" codes. Try both. They are listed in "Figure 5.7: Keycodes and scancodes for phone keys usable from Python applications" for the PyS60 doc.

    LFD
    Devices:
    Nokia E61 3rd Edition - pys60 1.4.0

    Tips and modules:
    http://www.lfdm.net/thesis

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    386

    Re: Capture keys from listbox

    The bind() method uses keycodes, not scancodes.

  4. #4
    Regular Contributor
    Join Date
    Apr 2007
    Location
    Lublin, Poland
    Posts
    81

    Re: Capture keys from listbox

    Thank you both - I must've been blind not to see it in the docs
    whatever happens happens

  5. #5
    Regular Contributor
    Join Date
    Apr 2007
    Location
    Lublin, Poland
    Posts
    81

    Re: Capture keys from listbox

    I've played a little with listbox' bind(). I'd like to have some searchbox appearing when the user presses an alphabet key. Does this mean I have to bind every possible keycode? Is there a more elegant solution?
    whatever happens happens

  6. #6
    Super Contributor
    Join Date
    May 2006
    Location
    Oulu, Finland
    Posts
    622

    Re: Capture keys from listbox

    I checked the doc and it seams that only "checkbox lists" have the search field option.

    You can try to implement it in Python but I bet it's going to be slow...

    LFD
    Devices:
    Nokia E61 3rd Edition - pys60 1.4.0

    Tips and modules:
    http://www.lfdm.net/thesis

Similar Threads

  1. How to capture hardware keys ?
    By comb in forum Symbian
    Replies: 10
    Last Post: 2008-04-26, 08:35
  2. Capture numeric keys
    By mirmit in forum Symbian User Interface
    Replies: 0
    Last Post: 2007-03-21, 10:54
  3. capture all keys
    By letronje in forum Symbian
    Replies: 6
    Last Post: 2007-03-13, 05:09
  4. Markable ListBox: How do I capture an attempt to mark an entry?
    By loginssuck in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-11-27, 09:23
  5. Run A Program to Capture All Keys
    By jackxie in forum Symbian
    Replies: 13
    Last Post: 2006-07-14, 07:34

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×