Thursday, May 20, 2004

As I've already mentioned, I had received a few requests (Robert, Neil, Peter...) to enable filtering support in the SmartList not only for a dialpad keyboard, but also for a Smartphone or Pocket PC devices with a full keyboard. So the update is available in the Source Browser and will eventually make to the SDF binaries as well. I added a new property bool FullKeyboard that is set to false by default and if you'd like to enable full keybard support in the control you just set the property to true.

Seth mentions that SmartList is his favorite. And by the way, don't miss his futuristic vision of a mobile device next generation. I'd like to live in this future too, Seth :). But, in my opinion, many of the things Seth is describing in his “day dream“ are quite possible to develop today. If you are in need to make your dream a reality you can contact us at OpenNETCF Consulting, LLC. (Hey, how is the plug? :))

 

5/20/2004 3:29:53 PM (GMT Daylight Time, UTC+01:00)  #     | 
 Tuesday, May 18, 2004

In order to implement filtering functionality in the SmartList, I had a need to provide the mappings that correspond dialer keyboard key to the characters accordingly to the GSM 02.30 format: 2 - “abc”, 3 - “def” etc... If you look at the code, you'll be able to see that it's simply done by utilizing a Hashtable:

numToLetter.Add('2', "abc");
numToLetter.Add('3', "def");
numToLetter.Add('4', "ghi");
numToLetter.Add('5', "jkl");
...

(By the way, if anybody knows a way to retreive these mapping from the system automatically, please let me know)

This private member is exposed to a developer as the KeyMappings property, which means that you should be able to add/replace the default characters with a language specific ones:

smartList1.KeyMappings['1'] += "ä";
or
smartList1.KeyMappings['1'] = "абв";

The current logic in the control doesn't allow filtering if a Smartphone or Pocket PC device has a built in “qwerty” keyboard. But since I've already received a few requests to enable this functionality in the SmartList, I'll be adding it very soon. 

5/18/2004 2:35:18 PM (GMT Daylight Time, UTC+01:00)  #     | 
 Monday, May 17, 2004

So here are some screenshots from the sample that's using the SmartList control from the SDF v1.1:

 

As I've already written the SmartList implements a quick filtering functinality a-la Contacts app in Smartphone as well as ability to create auto numbering menus. 

To help you with a quick filtering there're a two new events for your use: FilteringStarted and FilteringComplete that would be fired as you can assume from its names when the filtering is been started or completed. Aside from showing a WaitCursor you could also use the property ItemsMatchedCount to check how many items are left after filtering.

 

5/17/2004 10:55:31 PM (GMT Daylight Time, UTC+01:00)  #     |