Results 1 to 2 of 2

Thread: ComboBox, Missing feature ?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Stockholm, Sweden
    Posts
    83
    I have a combobox with for example this information :

    010, xxx
    020, yyy
    030, qqq
    222, eee

    I can make it so that if you press "zero zero" it moves to the "020, yyy". But i want it to move (and display) that line if you press "zero two". Is that possible ?

    Here is some code yto put in form_load to fill the combo :

    Combo1.AddItem "010, xxx"
    Combo1.AddItem "020, yyy"
    Combo1.AddItem "030, qqq"
    Combo1.AddItem "222, eee"
    Yesterday, all my troubles seemed so far away...
    Help, I need somebody, Help...
    Now MCSD and still locking for intresting job in the south parts of Stockholm, Sweden.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I think you have to subclass the combobox for WM_KEYDOWN to avoid it to go automatically and store the keys pressed in a static string. Then you would have to make a search function that selects the corresponding item.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

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



Click Here to Expand Forum to Full Width