Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Code Samples & Tips Share your recent discoveries and ideas with other users.

Standard "Choose contact" dialog

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-19-2009, 02:48 PM
Knows the basics
 
Join Date: Jan 2008
Posts: 64
Default Standard "Choose contact" dialog

Hello. As i see in "Help", we can only get contacts's details. In many programs (include ones written on .NET) i saw standard dialog (attached) like "choose file" one. Is it possible to add this functionality to Basic4PPC? I need to choose a contact but i have to create my own contact lists what is not beautiful
Attached Images
File Type: jpg capture000.jpg (38.1 KB, 111 views)
Reply With Quote
  #2 (permalink)  
Old 01-19-2009, 03:09 PM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by Elrick View Post
I need to choose a contact but i have to create my own contact lists what is not beautiful
It requires a bit of coding, but you can get pretty close, I did this in 2 minutes

You could use the treeview together with the outlook lib and even have those little images in front of the names
Attached Images
File Type: jpg 01-19-2009 5-04-01 PM.jpg (22.0 KB, 89 views)
Reply With Quote
  #3 (permalink)  
Old 01-19-2009, 03:30 PM
Knows the basics
 
Join Date: Jan 2008
Posts: 64
Default

No, i believe i can "code" it. But, i'm too lazy, my program will be more complicated, less attractive, and if i have more than one number for contact i'll have to provide another "choose contacts's phone" dialog Really can it be implemented in b4p? We all use the "Open file" dialog, it will be so nice to see this dialog too. It is (as i can see) the standard functionality of .NET compact. I really need this feature...
Reply With Quote
  #4 (permalink)  
Old 01-19-2009, 05:07 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I've attached a module which allows you to show the built in contacts dialog.
It requires the door library and Outlook/OutlookDesktop libraries.

The usage is pretty simple. You should first call ChooseContact.Initialize with the dialog's title.
Later you call ChooseContact.Show and the Contact will be returned in ChooseContact.SelectedContact.

A small program is also attached.
Attached Files
File Type: bas ChooseContact.bas (889 Bytes, 100 views)
File Type: sbp ChooseContact.sbp (597 Bytes, 109 views)
Reply With Quote
  #5 (permalink)  
Old 01-19-2009, 05:14 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

This dialog is available in .NET on WM5.0 and later devices. Try the attached dlls. If it looks OK I will tidy it up as a proper library.
Attached Files
File Type: zip ChooseContactDialogWM50.9.zip (3.8 KB, 98 views)
Reply With Quote
  #6 (permalink)  
Old 01-19-2009, 05:17 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Lol
Reply With Quote
  #7 (permalink)  
Old 01-19-2009, 05:22 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by Erel View Post
Lol
Reply With Quote
  #8 (permalink)  
Old 01-19-2009, 05:28 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Basic4ppc starts faster than Visual Studio
Reply With Quote
  #9 (permalink)  
Old 01-19-2009, 06:30 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by agraham View Post
This dialog is available in .NET on WM5.0 and later devices. Try the attached dlls. If it looks OK I will tidy it up as a proper library.
Your example doesn't work for me.

You can achieve the contact dialog directly by using Microsoft.WindowsMobile.Forms.dll on the device.
What you don't get are any other details than the contact name.


Here's my previous attempt at such a project.
On my website
It was all done using standard Basic4ppc libraries, outlook etc.
Still a bit buggy though.

I've just noticed that when you relist the contacts array,
there's no way to reset it back to the original list.
(Which seems to be ok on most devices)


I don't really see the OP's point of wanting a contact dialog.
Everything he wants is available via Basic4ppc.
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk

Last edited by taximania : 01-19-2009 at 06:41 PM. Reason: Me, grumpy :-)
Reply With Quote
  #10 (permalink)  
Old 01-19-2009, 07:02 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by taximania View Post
Your example doesn't work for me.
In what way? Doesn't it bring up the dialog?

Quote:
You can achieve the contact dialog directly by using Microsoft.WindowsMobile.Forms.dll on the device.
That's what this library and Erel's example do. Or did you mean something else?

Quote:
What you don't get are any other details than the contact name.
The Dialog contains a SelectedContact object. After assigning this to an Outlook library Contact object you should be able to access all the details of the contact - but I haven't gone on to check this out yet.
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Auslesen einer Tabelle in eine Textbox und löschen von "0,00-Ergebnissen" JOTHA German Forum 8 11-29-2008 08:50 AM
Cannot start B4PP anymore on desktop: "A problem was encountered" Frank Questions (Windows Mobile) 5 11-11-2008 10:03 AM
"AddEvent" and "buttonUp/buttonDown" Byak@ Questions (Windows Mobile) 12 09-10-2008 03:04 PM
Is there any thing like Visual Basic "Tabbed dialog control" in Basic4ppc? mozaharul Questions (Windows Mobile) 6 03-23-2008 11:07 AM
calling the device's "Programs" or "settings" screens HarleyM Questions (Windows Mobile) 0 12-05-2007 02:59 AM


All times are GMT. The time now is 10:24 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0