PDA

Click to See Complete Forum and Search --> : Adding an event to a different application


gozillasnack
Apr 18th, 2008, 09:52 AM
Hi guys,

I apologize if this question has been asked, but a search didn't return anything that looked very similar to me.

Anyway, here's what I'm trying to do. I have a VB form on a mobile device, which opens a map with pushpins on it in pocket streets. What I want to do is, when a pushpin is clicked, the text box appears with some info on it, and the user inputs some key combination, etc., the form brings up information about that pushpin.

So, I'm trying to figure out if there's a way to add a event to a different application using VB. The program will be running on Windows Mobile 5.0.

Thanks in advance.

gozillasnack
Apr 18th, 2008, 10:15 AM
Actually, a quick thought. Say I add a keydown event on the form. Will that keydown event work even when the form isn't in focus?

Shaggy Hiker
Apr 18th, 2008, 11:17 AM
I don't see how you could add an event to an existing program, though there may be a way via API to raise an event in an existing program. However, after those two posts, it sounds like you are on a different track at this point. Hooking all keyboard events is possible, though I have never tried such a thing on the mobile platform. I'm not sure what roles each of the programs will be playing, though.

petevick
Apr 18th, 2008, 12:53 PM
Hi,
if your form hasn't got the focus, then it won't receive the keydown event.

Rather than using Pocket Streets, why not take a different approach, and use different mapping. 'Virtual Earth' will allow you to return an event, and Franson (http://www.franson.com/gpstools/) have some tools which would accomplish what you want to do.

I think you would struggle to get Pocket Streets working, as the user can close it down, change maps, anything. Better to be in control yourself

HTH

Pete

gozillasnack
Apr 18th, 2008, 01:12 PM
Hi guys,

Thanks for your replies. I'm looking in to how to set up hooks, but so far no luck.

As for alternative programs, Franson may work, but we have 75 mobile devices that this needs to be installed on, and $99 a license is a bit steep. Also, those units aren't going to be connected to the internet at all times, so virtual earth won't work. Thanks for the suggestion though.

petevick
Apr 18th, 2008, 02:37 PM
Hi,
you can 'pre-cache' the tiles you need with virtual earth.

You need to check the licence for Franson - is it not $99 for 1 application as opposed to per device?

Pete

gozillasnack
Apr 18th, 2008, 02:42 PM
huh, well that may work...
But can both programs handle up to 4000 pushpins on one map? Also, the central system which creates and distributes the maps already uses Streets and Trips, which works well with Microsoft Access. What kind of a method would they both use to plot pushpins on a map? I'm going to do some research on my own, but if you would be able to answer answer those questions instantaniously, that just may work.

Thanks,

petevick
Apr 19th, 2008, 02:45 AM
There is some good in for VE here (http://www.viavirtualearth.com/vve/Gallery/VEMobile.ashx) including links to the (old) source code for the app.

As far as the Franson tools are concerned, download the trial - I am pretty sure there are some samples in it to do what you want

Pete