How to detect Hard Key press event?
Hi all, In my application I want to do specific tasks on pressing 6 Hard Keys of the palm without launching default applications (addressbook, memopad, todo list etc.). Say incrementing one counter on pressing each key. How can detect that event and launch my own code on that event? Is is possible with keyDownEvent? Thanks, Amit Solanki -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Brightness vchr on Tungsten T
Am Die, 2002-12-24 um 05.27 schrieb Scott Dreslinski: Hi, You need the five-way sdk. It has PalmChars.h which defines vchrPopupBrightness as 0x502. Okay, thanks. Strange place to put this in. -- Daniel Seifert [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: How to detect Hard Key press event?
Am Die, 2002-12-24 um 10.39 schrieb Amit Solanki: Hi, In my application I want to do specific tasks on pressing 6 Hard Keys of the palm without launching default applications (addressbook, memopad, todo list etc.). Say incrementing one counter on pressing each key. How can detect that event and launch my own code on that event? Is is possible with keyDownEvent? Yes. You just need to make sure that you check for this event first before calling SyshandleEvent, so you might have to modify your event loop. -- Daniel Seifert [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
idling and replacing brightness dialog
Hi, a merry christmas to all. While I am still tryinging to port one of my hacks to PalmOS 5, I really encounter lots of stuff I can't seem to do on PalmOS 5 which worked fine with hacks on PalmOS 4 :-( In the hope that I don't see the obvious and that somebody here might help me out, here's the list: * I need to get to know the idle time of the user (more detailed, when it reaches a certain value). On PalmOS 3 and 4 I'm using globals to see how many ticks the last user event was ago. On PalmOS 5 these globals don't work anymore and I don't see any substitute. I thought about using the sysNotifySleepRequestEvent and setting the auto-off timeout to my treshold value, but this would probably not work because I would have to defer the sleep all the time. Is there some way to get to know the idle time? The OS needs to store it somewhere after all, unfortunately the PalmOS 5.0 source code doesn't seem to be out (yet?). * I also need to get to know when the idle time returns to zero, but I think this can be done by registering for sysNotifyEventDequeuedEvent and checking whether there are any user events. A more subtle approach would be better, of course :) * Next, I want to replace a system dialog (the brightness dialog). I'm registering for sysNotifyEventDequeuedEvent and check whether the brightness icon is pressed. If this happens, it brings up my own dialog. Unfortunately, afterwards the actual brightness dialog will be displayed as well. Is there some way to tell the OS to stop processing this event? (I set handled to true in the notification structure, but it didn't help) * For the previous point I also tried to use another notification called sysNotifyVirtualCharHandlingEvent. Unfortunately it doesn't seem to receive the virtual char for the brightness icon, at least not on the Tungsten T (I suspect that has to do with my question from yesterday where I noted that instead of vchrBrightness (0x122) the Tungsten T uses 0x502). Most frustratingly I know that I can stop the processing of virtual characters with this notification by setting handled to true :-( Thanks in advance for any help. I'm rather clueless at the moment on how to proceed, as at least knowing the idle time is a crucial part of my application. -- Daniel Seifert [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
SDK 5.0 - Problem with hi density bitmaps (codewarrior)
Hi guys, (it's a second try - I am a bit desperate...) I am having a problem with the double density bitmaps. I have updated to SDK 5.0 and to constructor 1.8. I have added the a double density bitmap to a bitmap family, in the right order (double density after normal density), but when I try to compile I get an error from the linker: PalmRez Error: tbmf 1000: invalid data structure version. Compilation halted. I updated to the SDK 5.0 according to the instructions in the readme file (manually, since the installer did not recognize the codwarrior installation) and triple checked everything, and verifies that the Linker is of version 4.7 (may 2002). Please help, I ran out of options, and already spent 3 days trying to find what the problem is. Thanks Amir -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Copying a resource... (again?)
Hmm. Are people ignoring me, or do my messages not get through. Either way, Shaw Cable sucks. ;) I really do need help with this problem... -- Forwarded Message From Matthew Bevan -- Subject: Copying a resource... Date: Tue, 17 Dec 2002 22:44:40 -0800 From: Matthew Bevan [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] I'm trying to copy a resource from my main application into a sattelite file, that way I can leave the new file open without needing to worry about conflicts with the rest of my resources (it's bad when you try to hotsync and it opens a window from my app ;) What's the best way to do this? What I currently have apparently removes the resource from existence. DmOpenRefappRsrc, iconRsrc; SleepEventParamType *data; Err error; MemHandleCommandBarIconH; 01 FtrGet ( appCreator, 2048, (UInt32 *)iconRsrc ); 02 if ( iconRsrc ) DmCloseDatabase(appRsrc); 03 error = DmCreateDatabase(0, QBSharedIcons, appCreator, iconDbType, true); 04 iconRsrc = DmOpenDatabaseByTypeCreator ( iconDbType, appCreator, dmModeReadOnly ); 05 if ( !error ) { 06CommandBarIconH = DmGetResource ( bitmapRsc, BarBackupAllBitmap ); 07DmAttachResource ( iconRsrc, CommandBarIconH, bitmapRsc, BarBackupAllBitmap+3 ); 08 } 09 FtrSet ( appCreator, 2048, (UInt32)iconRsrc ); - Lines 1 and 2 check for the existance of an already open icon database. - Line 3 creates a new icon database. Yes, I don't check to see if the file exists because the OS already does ;) - Line 4 opens either the newly created database, or the previous one. - Line 5 checks to see if the database was created. - If the database was created, line 6 gets a handle to the bitmap in my application. Line 7 attempts to attach that handle to the new database. Can you not have one handle in multiple databases? It'd be spiffy, but I could see why they wouldn't like me to do this... - Line 9 copies the pointer to the open resource file so I can check later. Ideas, anyone? Matthew Bevan -- Matthew (Darkstorm) Bevan [EMAIL PROTECTED] Margin Software, NECTI. http://www.marginsoftware.com Re-inventing the wheel, every time. - Alas, I am dying beyond my means. -- Oscar Wilde, as he sipped champagne on his deathbed -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Emulator profiler
KProf uses the text output generated by POSE-Profile. It is much easier to use than the binary output and gives the same results. I didn't try for quite some time (since I switched from Linux to Mac OS X, I even don't use KProf anymore but other people took the charge of maintaining it), but it should still work. Florent. Messsage du 24/12/2002 00:23 De : Palm Developer Forum [EMAIL PROTECTED] A : Palm Developer Forum [EMAIL PROTECTED] Copie à : Objet : Re: Emulator profiler At 9:02 AM -0200 12/22/02, Adrian Nicolaiev wrote: very human readable. Before I write some program to reformat profiler output, is there any program that will do that? Something with a GUI would be optimal. I really liked the Codewarrior profiler on the Mac. Will there ever be a similar profiler for Palm? Look at: http://www.tilo-christ.de/proview/index.html It might be helpful for me to point out that this information can be found out the same page from which you download the emulator itself. Checking there for tools might get you an answer faster than posting a question here. I believe that Proview and Kprof work from the binary output of the profiling process. People working from the text output find that they can make sense of it by reading it into a spreadsheet or database program (I know one person who found using Access invaluable, while I personally have used Excel to good effect). -- Keith Rollin -- Palm OS Emulator engineer -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Copying a resource... (again?)
Hmm. Are people ignoring me, or do my messages not get through. Either way, Shaw Cable sucks. ;) I really do need help with this problem... we got the email (at least, this is the second copy for me) :P just too busy to post any solutions/answers *g* 01 FtrGet ( appCreator, 2048, (UInt32 *)iconRsrc ); 02 if ( iconRsrc ) DmCloseDatabase(appRsrc); 03 error = DmCreateDatabase(0, QBSharedIcons, appCreator, iconDbType, true); 04 iconRsrc = DmOpenDatabaseByTypeCreator ( iconDbType, appCreator, dmModeReadOnly ); 05 if ( !error ) { 06CommandBarIconH = DmGetResource ( bitmapRsc, BarBackupAllBitmap ); 07DmAttachResource ( iconRsrc, CommandBarIconH, bitmapRsc, BarBackupAllBitmap+3 ); 08 } 09 FtrSet ( appCreator, 2048, (UInt32)iconRsrc ); - Lines 1 and 2 check for the existance of an already open icon database. - Line 3 creates a new icon database. Yes, I don't check to see if the file exists because the OS already does ;) - Line 4 opens either the newly created database, or the previous one. - Line 5 checks to see if the database was created. - If the database was created, line 6 gets a handle to the bitmap in my application. Line 7 attempts to attach that handle to the new database. Can you not have one handle in multiple databases? It'd be spiffy, but I could see why they wouldn't like me to do this... this is probably where you get your problems. when i copy a resource, i just dont do it this way :) --- dbRef = DmOpenDatabase(card, dbID, dmModeReadWrite); // remove old resIndex = DmFindResource(dbRef, resType, resID, NULL); if (resIndex != -1) DmRemoveResource(dbRef, resIndex); // write new newHandle = DmNewResource(dbRef, resType, resID, MemHandleSize(memHandle)); DmWrite(MemHandleLock(newHandle), 0, srcData, MemHandleSize(memHandle)); MemHandleUnlock(newHandle); DmReleaseResource(newHandle); DmCloseDatabase(dbRef); --- - Line 9 copies the pointer to the open resource file so I can check later. Ideas, anyone? try to attach the resource as above :) merry xmas and happy new year, best wishes to all --- Aaron Ardiri [EMAIL PROTECTED] CEO - CTO +46 70 656 1143 Mobile Wizardry http://www.mobilewizardry.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
MsectGdb2.2-3 available
A new version of my multi-segment debugging patches for prc-tools-2.2 is now available: MsectGdb2.2-3. Gdb with these patches applied will identify itself as 'GNU gdb 5.0-tvo-20021223'. Changes since MsectGdb2.2-2 - Fixed a bug which made gdb skip the PilotMain breakpoint for an application with 10 or more code segments. Thanks to Steve Wetherill for tracking down this one. All files (patch source, cygwin and linux binaries) are available at http://www.v-overbeek.cistron.nl/mseggdb/ Enjoy, a merry Xmas and best wishes for 2003. Ton van Overbeek, [EMAIL PROTECTED] 2002-12-24 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Copying a resource... (again?)
After a bit of work, I finally have my code working. Thanks! Here's a copy of what I have, for public scrutiny - I most likely could do this better. case sysNotifyMenuCmdBarOpenEvent: if ( !Prefs.Options.AddCmdButtons ) break; error = DmDatabaseInfo(0, DmFindDatabase(0, QBShared), NULL, dbAttributes, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); if ( !(dbAttributes dmHdrAttrOpen) ) iconRsrc = DmOpenDatabaseByTypeCreator ( iconDbType, appCreator, dmModeReadWrite ); if ( error ) { error = DmCreateDatabase(0, QBShared, appCreator, iconDbType, true); iconRsrc = DmOpenDatabaseByTypeCreator ( iconDbType, appCreator, dmModeReadWrite ); if ( !error ) { CommandBarIconH= DmGetResource ( bitmapRsc, BarBackupAllBitmap ); NewCommandBarIconH = DmNewResource ( iconRsrc, bitmapRsc, BarBackupAllBitmap+3, MemHandleSize(CommandBarIconH) ); ErrDisplayError( DmGetLastErr() ); ErrDisplayError( DmWrite(MemHandleLock(NewCommandBarIconH), 0, MemHandleLock(CommandBarIconH), MemHandleSize(CommandBarIconH)) ); MemHandleUnlock(NewCommandBarIconH); MemHandleUnlock(CommandBarIconH); DmReleaseResource(NewCommandBarIconH); DmCloseDatabase(iconRsrc); iconRsrc = DmOpenDatabaseByTypeCreator ( iconDbType, appCreator, dmModeReadOnly ); } FtrSet ( appCreator, 2048, (UInt32)iconRsrc ); } MenuCmdBarAddButton ( menuCmdBarOnRight, BarBackupAllBitmap+3, menuCmdBarResultNotify, sysBackupNotifyEvent, Backup Now ); break; merry xmas and happy new year, best wishes to all Happy Yule, though I'm a bit late on that one. ^_^; Merry Christmas, happy new year, and caffine for all. -- Matthew (Darkstorm) Bevan [EMAIL PROTECTED] Margin Software, NECTI. http://www.marginsoftware.com Re-inventing the wheel, every time. - Cynic, n.: One who looks through rose-colored glasses with a jaundiced eye. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
It's christmas time.........
Merry merry Christmas to all of you, Cordialement, Agus Silas -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Os5 or Os4
Ricardo, As for the new Codewarrior, it is now available. We received the new CodeWarrior 9 yesterday. It was installed without a hitch and works great. DeVo Intelligent Mobility. Ricardo Marques wrote: Hi. As I've stated before in this Forum I and another collegue are doing a final year project with BT which consists of comunicating between a PDA and a PC. Since the majority of Windows softare is available only trough payment we opted with Palm. Since Tungsten included OS5 and BT module integrated we were going to go with this. However I recently learned of some problems with OS5 and Codewarrior 8, which were fixed in Codewarrior V9 (there is a suposed date but that doesn't means that it is released at that date). Other thing was that there isn't any Emulator for OS5 and it's not supposed to be released. So with this in mind we're thinking of going with Palm m515 and OS 4.1, because altought older, it's more easy to find patches and fixes for older aps than new ones (we think), and we don't want to lose time of our projecto choosing something that will not suit us. In short, what I'm asking is am I doing the right choice or I should risk OS 5? -- ** All of You that are Secretly Dead, Just Lifless Shells, Consumed and Bled Oblivious to Reason and You are Blind, Follow the Trends to share a Single Mind You are so Blind to the Lie ** Some say the End is near, Some say we´ll see Armageddon soon I certainly hope We will, I sure could use a Vacation from this Bullshit Because I'm praying for Rain and I'm praying for Tidal Waves, I want to watch it all go Down Don't just call me a Pessimist, Try and read between the lines I can´t Imagine why You wouldn´t welcome any Change my Friend ** ... Seja como a fonte que transborda e não como o tanque que contém sempre a mesma água... ** -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Os5 or Os4
I appologise if I have ofended anyone but those are lyrics from Tool, written long before 9/11 And as the quote says try to read between the lines. Do you like the world we're living in? Or do you want a change? Never heard Pink Floyd's 'The Earth Will take it back' Just thoughts. If i offended anyone the say it and I'll stop puting these quotes (at least in this forum ;)) Merr Christmas and a Happy New Year to all Question for Ricardo, Is there a point to the quotes you are currently attaching to your email. I'm not sure I like the suggestions/inferences made? What Lie are you referring to and what is the Change you are suggesting? I, for one, am not ready for Armageddon. I'm sorry, I am having a problem with this type of thinking. Maybe I'm just to sensitive after all that has happened. - Original Message - From: Ricardo Marques [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Monday, December 23, 2002 5:49 PM Subject: Os5 or Os4 Hi. As I've stated before in this Forum I and another collegue are .. -- ** All of You that are Secretly Dead, Just Lifless Shells, Consumed and Bled Oblivious to Reason and You are Blind, Follow the Trends to share a Single Mind You are so Blind to the Lie ** Some say the End is near, Some say we´ll see Armageddon soon I certainly hope We will, I sure could use a Vacation from this Bullshit Because I'm praying for Rain and I'm praying for Tidal Waves, I want to watch it all go Down Don't just call me a Pessimist, Try and read between the lines I can´t Imagine why You wouldn´t welcome any Change my Friend ** ... Seja como a fonte que transborda e não como o tanque que contém sempre a mesma água... ** -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: How to emulate Palm i705 with PalmOS 4.1
If you checked PalmSource's developer site and it's not there, then it hasn't been released yet. It seems like it hasn't been released yet. Maybe some of the Palm VII(x) ROM images are sufficient for what you're trying to do, though? Unfortunately with those ROMs I cannot achieve the same problem as one of my customers reports, so IMHO there must be some difference. Do you know if i705 displays some special indicators of being in range, etc? -- Radoslaw Nowak, RNS:: www.ranosoft.com/palm -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Problem unsubscribing
Hi, I have been receiving discussion emails to this email address (both development and conduit) which I subscribed. I want to unsubscribe from the list but it didn't take my email address ([EMAIL PROTECTED]). Can someone please help? Thanks. -Elizabeth -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: It's christmas time.........
.. and to yourself ^_^ Merry Christmas! Agus Silas [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D :[EMAIL PROTECTED] Merry merry Christmas to all of you, Cordialement, Agus Silas -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: How to detect Hard Key press event?
You may check out one of the CW samples (e.g. SubHunt). Amit Solanki [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D:[EMAIL PROTECTED] Hi all, In my application I want to do specific tasks on pressing 6 Hard Keys of the palm without launching default applications (addressbook, memopad, todo list etc.). Say incrementing one counter on pressing each key. How can detect that event and launch my own code on that event? Is is possible with keyDownEvent? Thanks, Amit Solanki -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: How do I enter to debug mode in a m515??
Ben, thank you very much for your tip, I'm trying it but it's not working. I only get a blank screen with a green line at the bottom, but no small blinking square, the NEXT button appears (the port is open), but I get the error Bad response packet received from the handheld when I click the next button. I'm using the flash utility that came with the OS3.3 upgrade, and a serial cradle. Merry Christmas to all, thanks Pablo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ben Combee Sent: Tuesday, 24 de December de 2002 12:26 am To: Palm Developer Forum Subject: Re: How do I enter to debug mode in a m515?? At 19:55 2002-12-23 -0500, you wrote: Hi all, I'm trying to enter into debug mode with my m515, doing the pin reset while pressing the down scroll button but, it never shows the blinking square. When I do the shortcut dot 1(debug mode), the serial connection is made, but the blinking square never appears, and I cannot reflash the m515 exiting with an error (bad response). I was doing this process with my Palm V and it was working good, but not with my m515. On the Palm m500, m505, m515 devices, you must hold both the up and down buttons on reset to get the device in debug mode to allow flashing of the ROM image. -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Problem unsubscribing
Marry Christmas.. Goto... http://www.palmos.com/dev/support/forums/ select unsubscribe from a forum and select particular forum with your email address. After some time you would get a confirm unsubscription mail from palm. You have to just reply that mail without any message. Regards, Amit. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 25, 2002 3:11 AM To: Palm Developer Forum Subject: Problem unsubscribing Hi, I have been receiving discussion emails to this email address (both development and conduit) which I subscribed. I want to unsubscribe from the list but it didn't take my email address ([EMAIL PROTECTED]). Can someone please help? Thanks. -Elizabeth -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/