Disable Blinking bell from launcher when our app get deleted.
Hi All, Do we get any event before our application going to be deleted? Actually What we are doing is this: When an incoming SMS comes we figure out on the basis of some parameter that whether this message is for our application or not, if its for our application, we are showing an alert using attention manager. When alert shown we do the snooze. A blinking bell shown on launcher title area. Now we had deleted our application by selecting delete option. The blinking bell is still shown, now by clicking on it device get reset. I do understand since its our application for which this alert is there and since application already deleted, alert couldn't find the application hence restarted. Now if I can get any event before deletion, I can remove the attention on that event. I am doing research on it, but looking for others support if someone had already did this. Anxiously waiting for a reply. Thanks Mukesh -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
No more sound in POSE 3.5 ??
I posted this on emulator-forum a few days ago but got no answers. So I am posting it here since this forum has a lot more trafic. Since some time now, POSE 3.5 does no generate sounds anymore. (yes, the enable sound checkbox is checked) I have it on 3 different computers and the sound is gone on all of them. Is it possible that one of the windows update caused this? I'm on XP. Thanks -- Regis St-Gelais www.laubrass.com -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Screen Dumps
I saw the earlier post about Jolly Roger, and thought I would give it a whirl. It ran fine for a day or so, on my Zire 31, but then it just stopped working altogether. I knew a bit about Windows bitmaps, so I decided to roll my own. It is not very difficult, and if anyone wants to do the same, I will post my code to this newsgroup. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
re: No more sound in POSE 3.5 ??
I saw your earlier post in the POSE forum, but had nothing to suggest. I too run Windows XP/SP2, fully patched, and I am still getting sounds out of POSE. I do know that it uses the PC speaker, so it is probably using a DOS interrupt, if that is any help. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Focus rings, AvantGo and the Zire 31.
Like our erstwhile friend, I use a Zire 31 as my main device. It is not meant to support a focus ring, and indeed FrmGlueNavDrawFocusRing does not draw one. But I noticed that AvantGo appears to use one. So I tried calling FrmNavDrawFocusRing directly, but the device would have none of it. What is going on here? Does AvantGo know something that FrmGlueNavDrawFocusRing does not? It would be nice to be able to extend the focus ring to a wider class of devices. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Screen Dumps
And just to round out the enumeration of screen dump programs, I'll mention Snap, by Christophe Maillot, which is apparently only for OS 5 machines. It's available for free at several sites. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
re: Screen Dumps
OK, here is the source for the main module: void capture(Char *buf){ MemHandle h; WinHandle w1, w2; FileRef f; void *p; UInt32 n, depth; BitmapType *bmap; Err err; RectangleType r; Int16 i; UInt8 *q; // check color depth WinScreenMode(winScreenModeGet, 0, 0, depth, 0); if(depth != 8){ SndPlaySystemSound(sndError); return; } // open bitmap file f = openFile(buf); if(f == vfsInvalidFileRef) return; // create bitmap bmap = BmpCreate(160, 160, 8, 0, err); if(err){ SndPlaySystemSound(sndError); VFSFileClose(f); return; } // copy bitmap header h = DmGetResource('tbin', 1000); p = MemHandleLock(h); VFSFileWrite(f, 1078, p, n); DmReleaseResource(h); // set up rectangle r.topLeft.x = 0; r.topLeft.y = 0; r.extent.x = 160; r.extent.y = 160; // copy screen image w1 = WinGetDrawWindow(); w2 = WinCreateBitmapWindow(bmap, err); WinCopyRectangle(w1, w2, r, 0, 0, winPaint); q = BmpGetBits(bmap); for(i = 0; i 160; i++) VFSFileWrite(f, 160, q + 160 * (159 - i), n); // epilog WinDeleteWindow(w2, false); MemPtrFree(bmap); VFSFileClose(f); SndPlaySystemSound(sndConfirmation); } The openFile function just opens a named file for output, and returns the handle. The resource it uses is the first 1078 bytes of another bitmap, that you can create using POSE. Just include it in your application, as custom data. Note that the Windows bitmap is flipped horizontally, relative to the Palm bitmap. My method is not the quickest, but it is probably the simplest. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Focus rings, AvantGo and the Zire 31.
Most probably they draw it themselves. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Disable Blinking bell from launcher when our app get deleted.
Do a search for DmProtectDatabase. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Screen Dumps
Thanks for your letting us share in the fruit of your efforts, Philip. On 7/6/07, Philip Sheard [EMAIL PROTECTED] wrote: OK, here is the source for the main module: void capture(Char *buf){ MemHandle h; WinHandle w1, w2; FileRef f; void *p; UInt32 n, depth; BitmapType *bmap; Err err; RectangleType r; Int16 i; UInt8 *q; // check color depth WinScreenMode(winScreenModeGet, 0, 0, depth, 0); if(depth != 8){ SndPlaySystemSound(sndError); return; } // open bitmap file f = openFile(buf); if(f == vfsInvalidFileRef) return; // create bitmap bmap = BmpCreate(160, 160, 8, 0, err); if(err){ SndPlaySystemSound(sndError); VFSFileClose(f); return; } // copy bitmap header h = DmGetResource('tbin', 1000); p = MemHandleLock(h); VFSFileWrite(f, 1078, p, n); DmReleaseResource(h); // set up rectangle r.topLeft.x = 0; r.topLeft.y = 0; r.extent.x = 160; r.extent.y = 160; // copy screen image w1 = WinGetDrawWindow(); w2 = WinCreateBitmapWindow(bmap, err); WinCopyRectangle(w1, w2, r, 0, 0, winPaint); q = BmpGetBits(bmap); for(i = 0; i 160; i++) VFSFileWrite(f, 160, q + 160 * (159 - i), n); // epilog WinDeleteWindow(w2, false); MemPtrFree(bmap); VFSFileClose(f); SndPlaySystemSound(sndConfirmation); } The openFile function just opens a named file for output, and returns the handle. The resource it uses is the first 1078 bytes of another bitmap, that you can create using POSE. Just include it in your application, as custom data. Note that the Windows bitmap is flipped horizontally, relative to the Palm bitmap. My method is not the quickest, but it is probably the simplest. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
re: Multiple images on one screen with scroll bar
I was having similar problems. I am trying to do a similar thing but with several chunks of text instead of images. If any one could give some pointers it would be really appreciated. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Multiple images on one screen with scroll bar
I don't think you have any choice but to load and display the images programmatically. It's not too difficult of a process, all you need is a MemHandle, and BitmapType for the images on screen. Then just DmGetResource and lock the memory. Draw the bitmaps, and you're done. All that's left is to unlock the memory, and DmReleaseResource - Original Message From: V. Sriram [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Thursday, July 5, 2007 10:21:28 PM Subject: Multiple images on one screen with scroll bar hi all, I want to put multiple images on one screen arranged vertically using the resource editor, importing the images, since the images need not be changed later. But the images are big so after two or three images are inserted, they go out of the scope of the form. So they start getting overlapped. So is there any method to specify y-coordinate(Top)which is greater than 160(max size allowed on the editor)so that I can provide a scroll bar and view the other images. awaiting reply. please let me know if further clarification is required for my problem. thanks and regards, Sriram -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/