Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


'live type' filtering of list box.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-24-2008, 01:44 AM
Junior Member
 
Join Date: Nov 2007
Posts: 19
Default 'live type' filtering of list box.

Its quite possible this has a really obvious solution, such as a simple pre-made control or library file but I figured I might as well ask.

I'm trying to make a 'live search' effect, for choosing the city option for a database app. Essentially the user should be able to start typing the first letters of the city they want, and the list of cities starts reducing based on what is typed. (Like what happens when you search on facebook )

I've managed the basic effect fairly easily with a text box a list box and a table, where the list box reads the table which is filtered by the text box contents when you click a button. (Might make more sense if you look at the file).

My problem is I want to do away with the button and have the table/list box filter as the text box is typed into. I originally tried this with text box key press event, but that updates the text box after the event has finished so it doesn't filter properly.

I've attached a quick & basic version of the effect bellow to demonstrate what I mean: essentially the idea is to get rid of the button so it filters automatically.

(If there is a really obvious way to do this or something very similar please mention it; I haven't looked much yet (I started this on my PDA and liked the challenge of this idea ) I'm just wondering if there is a way to do this in the way I've tried....)
Attached Files
File Type: sbp livefilter.sbp (1.0 KB, 10 views)

Last edited by Hennell : 04-24-2008 at 02:12 AM.
Reply With Quote
  #2 (permalink)  
Old 04-24-2008, 06:00 AM
Senior Member
 
Join Date: May 2007
Posts: 128
Default

Hi Hennell,

One simple workaround is to make your own virtual keyboard image or buttons to trigger the input event as I found on some contact applications.

see attached, sample demo(using buttons).

Regards,
Attached Images
File Type: jpg contacts.JPG (22.7 KB, 19 views)
Attached Files
File Type: sbp livefilter-ex1.sbp (1.6 KB, 11 views)
__________________
Rioven

O2 Atom life 624MHz, 1GB Internal ROM, WM6(upgraded)

Last edited by Rioven : 04-24-2008 at 06:23 AM.
Reply With Quote
  #3 (permalink)  
Old 04-24-2008, 07:52 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 529
Awards Showcase
Competition Winner 
Total Awards: 1
Default

Attached you find a solution that does what you are looking for.

Using Erel's Door library
Door library (Beta) - Special library

and using agraham's UpperCase example
Uppercase !

Hope this will help you.

Best regards
Attached Files
File Type: zip LiveFilter_ex2.zip (4.7 KB, 15 views)
__________________
Klaus
Switzerland
Reply With Quote
  #4 (permalink)  
Old 04-24-2008, 08:49 AM
Senior Member
 
Join Date: May 2007
Posts: 128
Default

I should start exploring this said great door library!
I was away for sometimes and not thoroughly read the forum.
Thanks,
__________________
Rioven

O2 Atom life 624MHz, 1GB Internal ROM, WM6(upgraded)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing font type mozaharul Questions & Help Needed 1 06-11-2008 06:29 AM
Video or Picture with Alpha over live camera? realvision Code Samples & Tips 0 04-01-2008 12:12 AM
Cannot type in Device IDE Leginus Bug Reports 3 02-03-2008 03:47 PM
How to get the PDA type and make HARRY Questions & Help Needed 3 01-13-2008 11:19 AM
Another Reason for IntPtr Type Louis Basic4ppc Wishlist 4 10-24-2007 06:17 PM


All times are GMT. The time now is 06:13 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0