Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!cornellcs!travelers.mail.cornell.edu!news.kei.com!news.mathworks.com!newsfeed.internetmci.com!howland.reston.ans.net!torn!nott!hwc.ca!hpb.hwc.ca!lon
From: lon@hpb.hwc.ca (LONG ON)
Subject: [DIGI] ST/V 2.0 ListPane #charInput
Message-ID: <DGyM66.EzA@janus.hwc.ca>
Sender: nobody@janus.hwc.ca
Organization: Health Canada
Date: Tue, 24 Oct 1995 15:39:41 GMT
X-Newsreader: TIN [version 1.2 PL2]
Lines: 34

Hello all,

I want to capture the #charInput event of the ListPane
and perform sub-string matching as the user "spells-out"
the ListPane item string to be located.

The implementation would have worked, however Windows
ListBox captures the character input and processes it
before the #charInput event (Smalltalk event) is triggered.

Windows ListBox processes the character input event by
matching on the first character of the list items and
jumps to it if a match is found.

The behaviour of the combined event processing proved
undesirable.  Is there a way to disable or over-ride the
simplistic "event" processing of Windows ListBox.

In away Windows tries to help, but ended up causing more
problem than it solves...

I would appreciate very much if you could recommend a
workable solution.

Thank you.

Long

--
---            )( [ :aStream | aStream
      -^ -=^=  )(     cr;nextPutAll: '(Long On) <lon@hpb.hwc.ca>';
        --==   )(     cr;nextPutAll: 'Bureau of Cancer';
        --=    )(     cr;nextPutAll: 'Health Canada';contents
Tazman.--      )( ] value: (WriteStream on: String new)
