Success! That technique works just the way I want it to. Thanks for you help.
Tom ----- Original Message ----- From: "Michoel Chaikin" <[EMAIL PROTECTED]> To: "Tom & Rocki Blair" <[EMAIL PROTECTED]> Sent: Wednesday, April 27, 2005 5:17 PM Subject: re: Generating pen down events > Hi Tom, > >>Thanks for your offer of help. I am a retired mainframe programmer, just >>messing around with a Garmin iQue 3600. The couple of programs I have >>written are available at http://software.blairkids.com/ > > I will try give you as much help as I can, but I think that your > experience is far greater then mine, having only programmed in C for about > a year and a half, and only programmed at all for about 3 years. > >> If you can provide me with info (or code samples) of how to see what is >> on the form that I am trying to tap, I would appreciate it. I would be >> doing this from an alarm launch code, so I would need to know how to get >> access to the form for examination. > > The basic idea is to iterate through each control in the form, and check > the bounds to see if it is were the tap is supposed to be. > > I would try get you a working code sample, but unfortunately my PC running > CodeWarrior is currently out of use. > > So below is code I typed straight into my email program, which probably > has hundreds of mistakes... > > FormType *frm; > void * obj; > UInt8 i; > > frm = FrmGetActiveForm(); > for(i = 0; i < FrmGetNumberOfObjects(frm); i++) > { > obj = FrmGetObjectPtr(frm, i); > // here is a pointer to a form object > // use FrmGetObjectType to test the > // type then FrmGetObjectBounds to > // see if its in your bounds > // if yes, use FrmGetObjectId to get > // the id, then add a ctlSelectEvent > } > >> Garmin provided an API that makes it possible for me to route to a >> selected waypoint. I implemented this in wayQue. However, that is as far >> as they went, even though the iQue allows for routing to multiple >> waypoints in the best order. Here is a forum thread with the idea I had >> to do this. >> http://www.pdastreet.com/forums/showthread.php?s=amp;threadid=57584 > > Sorry, but I am not familiar with that platform. Not to sure what the > program does. > > Hope this helps you, > > Michoel Chaikin > [EMAIL PROTECTED] > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
