RE: Checkboxes won't uncheck
From: Grosch, Scott [mailto:[EMAIL PROTECTED]] That's somewhat confusing that they should all be 0. Group zero is a special value meaning no group and is used for all standalone check boxes. Any nonzero group number turns checkboxes into (functionally) radio buttons, as you have seen. The OS won't complain if such a group happens to contain only one button, as your example did. -slj- -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: faster drawing in 4bit mode?
Le dimanche, 29 sep 2002, à 06:37 Europe/Paris, Palm Guy a écrit : Hi All I have a Palm m125 and an m130. I have written a game that runs in both color (8 bit mode) and gray (4 bit mode). I am using WinDrawBitmap to draw bitmaps onto the screen at 10 frames/sec. What surprises me is that the graphics/drawing run very fast on the m130 in color mode but much more slowly on the m125 in 4 bit grayscale mode. This surprises me because the m125 and the m130 have the same processor speed. Is there any reason why the graphics should be so much slower in 4 bit mode than in 8 bit mode? The m130 use a graphics accelerator, from MediaQ. -- Daniel Morais http://www.kickoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: faster drawing in 4bit mode?
Hi! Is there any way to draw faster in 4 bit mode? Anyone out there have any super fast low level drawing methods that I can use to augment or replace WinDrawBitmap? You might want to download the source code to Argon V at http://www.harbaum.org/till/palm/argonv/index.html This is a game that is specially made for 4bpp. You might also want to look at the Razor! gaming engine at http://www.tilo-christ.de/razor 4bpp routines in Razor! are faster than the OS, but not completely replacing it yet. Cheers, Tilo -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
MediaQ (was: faster drawing in 4bit mode?)
Hi! The m130 use a graphics accelerator, from MediaQ. Is there some way to detect the presence of such an accelerator? How does its speed compare to handcrafted assembly routines? In my game framework I have some very fast assembly routines, but can alternatively use a pure version that only uses officially sanctioned PalmOS calls. So my question is: Does it make sense to recognize the presence of an accelerator and then switch to using Palm OS, because it will be faster than the handcrafted assembly routines? Cheers, Tilo -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: creating unique ID with FldNewField etc.
Let's say your the last UID of a control in your form is (unlikely). Even now you could use UIDs up to 32768 (or something like that). For each new dynamicaly created control increase the number, e.g.: first control: 1 second control: 10001 third control: 10002 AFAIK you can have the same ID in two (or more) different forms, but not in the same. Hans-Christoph Wirth [EMAIL PROTECTED] schrieb im Newsbeitrag news:93696@palm-dev-forum... I am using PalmOS 3.5. There's a bunch of routines to create UI objects at runtime, e.g. FldNewField() and CtlNewControl(). All routines require to specify the ID of the new object. As I understand, this ID should be unique throughout the application (at least throughout the current form). How do I create an ID which is unique? Of course I can use #define and manually select IDs. I would consider this as hardcoded as it might interfere with any automatic creation of IDs, e.g. when using PilRC to create static UI objects. Is there a safer way? hcw -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: creating unique ID with FldNewField etc.
Synthesis [EMAIL PROTECTED] wrote in message news:LYRIS-54953-115625-2002.09.29-09.52.23--mark#[EMAIL PROTECTED] m... Even now you could use UIDs up to 32768 (or something like that). Just a note: IDs of 10,000 and above are reserved to the OS, as I understand it. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Procedure Alarms
The SDK 5.0 Ref manual says about procedure alarms: Procedure alarms also differ from regular system alarms in that if they trigger when the device is in sleep mode, the LCD does not light up. Thus, you can use procedure alarms to perform a scheduled task in a manner that is entirely hidden from the user. I've got a simple procedure alarm that sets a feature and calls AlmSetProcAlarm. Whenever it's called, the LCD on all the devices I've tested it on comes on, even if they're asleep. Anyone have any experience with this? Are the docs wrong or am I missing the secret incantation? Thanks. Regards, Steve Mann -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
CategoryInitilaize() - Item 0
I've been trying to initialize the Categories for my application using CategoryInitialize() and an AppInfoString. Everything works fine except for one problem: Item 0 of the AppInfoString (ie: the first string in the list) is not added to the Category list. It seems to be ignored completely. I've tried many things to get the Item 0 to show up, but nothing has worked. My Category code follows the ToDoDB.c code fairly closely. What might I be doing wrong? I'm using CodeWarrior 7, Constructor 1.6.1, PalmOS SDK 3.5, My target is 3.1 or later, my lib is (2i), I'm testing my code on the Emulator v3.5 on a PalmIIIc ROM. Thanks for your time. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Share libraries
Where's the best place to look for instructions on how to build/use a shared library? I'm not even sure if it'll do what I need, but I've got three apps that are very similar and want to throw some of the code into a library. They also have some Forms that are exactly the same, which I'd like to put there as well. Is that possible? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Share libraries
At 12:30 PM 9/29/2002 -0700, you wrote: Where's the best place to look for instructions on how to build/use a shared library? I'm not even sure if it'll do what I need, but I've got three apps that are very similar and want to throw some of the code into a library. They also have some Forms that are exactly the same, which I'd like to put there as well. Is that possible? A Palm OS system shared library is a chunk of code that can be used by multiple applications on the device. It exports functions through a dispatch table, and has a single global pointer allocated to it by the system that it can use to store data between calls. For starters, I'd look at the SampleLib project that's part of the Palm OS SDK examples. It has a lot of comments. If you're using CodeWarrior for Palm OS V8, we have a wizard to help you create a new shared library. This project only support C source files -- you can use C++, but you won't be able to expose class methods as library functions, and you won't be able to use virtual functions or exceptions, because shared libraries don't have their own global variables. A shared library can have its own resources, but it will need to explicitly open its program database using DmOpenDatabase to have access to them, or DmGetResource will fail, or worse, find another resource with the same ID. -- 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/
Re: faster drawing in 4bit mode?
Thanks for the tip. I looked at the source code and it looks like you are using C functions for particular situations such as X coordinate a multiple of 2, etc. But for the arbitrary case where these specific conditions are not satisfied, you resort to using the PalmOS functions. Is this the case or am I missing something? Is it true that in the arbitrary case (no special conditions satisfied by the sprite bitmaps) there is no faster way to draw than the PalmOS methods? Another approach might be for me to only redraw a portion of the screen. Suppose I have an image in my offscreen drawing window, where this image is just a frame of may game that I want to blast to the screen say 10 times a second. Suppose that I can identify say 6 non-overlapping rectangles within that image that need to be redrawn. The sprite and background bitmaps needed to redraw the screen are available in global memory (or in my class members, whatever). My question is: if I were to just set 6 clipping rectangles within the my image and rebuild the portions of the image within those 6 clipping rectangles, would that be faster than redrawing? I know that in J2ME, the drawing is not faster because the entire image is still handled even though it is actually drawn only inside the clipping rectangle. But, on PalmOS if it is possible to set a clipping region and rebuild the image within the clipping regiond and do this much faster than redrawing the entire image, then that is an approach I would like to use. Any comments? Marc [EMAIL PROTECTED] From: Tilo Christ [EMAIL PROTECTED] Reply-To: Palm Developer Forum [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Subject: Re: faster drawing in 4bit mode? Date: Sun, 29 Sep 2002 15:27:30 +0100 Hi! Is there any way to draw faster in 4 bit mode? Anyone out there have any super fast low level drawing methods that I can use to augment or replace WinDrawBitmap? You might want to download the source code to Argon V at http://www.harbaum.org/till/palm/argonv/index.html This is a game that is specially made for 4bpp. You might also want to look at the Razor! gaming engine at http://www.tilo-christ.de/razor 4bpp routines in Razor! are faster than the OS, but not completely replacing it yet. Cheers, Tilo -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
need a simple serial communication example
Hi All, Can anyone help me with a simple hello world serial communication example program and brief me how to test the example using POSE and a terminal emulation program in a PC. since i need a start, i want to test the example without using any serial cable or the actual Palm Pilot. I hope i can make the terminal emulation program to listen to the PC's COM1 serial port and execute the serial communication example program's .prc file in the POSE and test it. Thanks in advance Suresh __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Re: faster drawing in 4bit mode?
Hi! Thanks for the tip. I looked at the source code and it looks like you are using C functions for particular situations such as X coordinate a multiple of 2, etc. But for the arbitrary case where these specific conditions are not satisfied, you resort to using the PalmOS functions. Is this the case or am I missing something? Is it true that in the arbitrary case (no special conditions satisfied by the sprite bitmaps) there is no faster way to draw than the PalmOS methods? The current state of Razor is only an intermediate step towards the final goal, with 4bpp being slightly behind 8bpp. Right now I am using an optimized copying loop for the ideal case, in which entire bytes can be copied, and let the OS handle the arbitrary case. I am absolutely convinced that it won't be hard to be a lot faster than the OS for the arbitrary case. I just haven't gotten around to doing this yet. Another approach might be for me to only redraw a portion of the screen. second. Suppose that I can identify say 6 non-overlapping rectangles whatever). My question is: if I were to just set 6 clipping rectangles within the my image and rebuild the portions of the image within those 6 clipping rectangles, would that be faster than redrawing? I know that in I know of a game named Rogue Bomber at SourceForge. They switched from such a dirty rectangle list to a version that redraws larger regions than are neccessary, and copies the entire doublebuffer. They report a big increase in speed. The setup and execution costs for clipped copying and clipped drawing are rather high. See their discussion article at http://sourceforge.net/forum/forum.php?thread_id=687137forum_id=61067 In Razor! I also do not determine the dirty rectangles precisely. I only do vertical calculations and always affect the entire width of the screen. I also merge all dirty rectangles into a single one, which is then processed. The only case where this is noticeable less efficient than a less crude method is when you have few sprites, some at the very top of the screen, some at the very bottom. This is merged into one dirty rectangle that covers the entire screen, instead of two small ones. Cheers, Tilo -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: sysNotifyLateWakeupEvent
Directly from the docs... ... Implemented only if Notification Feature Set is present. ... and ... err = FtrGet( sysFtrCreator, sysFtrNumNotifyMgrVersion, value ); If the notification manager is part of the system, the value parameter will be non-zero and the returned error should also be zero (for no error). ... Gavin. [EMAIL PROTECTED] wrote in message news:96710@palm-dev-forum... Hey, once again (posted a similar question some days ago .. but my english sometimes is confusing) i want to use the sysNotifyLateWakeupEvent to let a programm do some things. How could i determine if this event can be registered using SysNotifyRegister. At the time my app crashes if it tries to register the notification on i.e. OS 2.0 ... :( Thank you Sebastian -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Tell me is VC++ is able to make .prc file
I'm only interested in this topic because I think Visual Studio is a better development environment than CW, nothing to do with developing PocketPC software. I use VC++ for conduit development. (Among other things) Alan Anthony Ng [EMAIL PROTECTED] wrote in message news:9@palm-dev-forum... Hi, I am interested in what 1 or 2 development systems you are referring to that target's a single code base and run on both palm and pocket PC. Is this what you are referring to? Please tell me the name of the system, I will like to know more about it. Anthony Both Palm and that other hand held OS have special tools for developing applications. You cannot use your standard VC++ install for either. Both have free tools you can download to program your application in C/C++. (both also have tools you can purchase). Visit the PalmSource website and read the developer's page on getting started. You can do the same for that other OS. Now, if you want an application that runs on both, that's a little harder. There are one or two development systems (that cost ) that you can target a single code base and run on both. Read the getting started guides for both OSs, I'm sure they will help direct you. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: very urgent!
No. It supports rudimentary beeps only. IIRC there is an open source sound playback library which allows wav file playback, but the quality pretty poor. Alan Xue Qu [EMAIL PROTECTED] wrote in message news:96678@palm-dev-forum... Hi all, Can anyone tell me if Palm OS 4.1 supports sound play back? i mean i have some sound in wav/mp3/rm format, can i play them on Palm OS 4.1, does the operating system itself have some built-in functions to support this functionality? very urgent! Thinks in advance. xue Kingsoft Co.,Ltd. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: very urgent!
http://www.drolez.com/software/ Supply the link,otherwise they're going to ask. - Original Message - From: Alan Ingleby [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Sunday, September 29, 2002 5:47 PM Subject: Re: very urgent! No. It supports rudimentary beeps only. IIRC there is an open source sound playback library which allows wav file playback, but the quality pretty poor. Alan Xue Qu [EMAIL PROTECTED] wrote in message news:96678@palm-dev-forum... Hi all, Can anyone tell me if Palm OS 4.1 supports sound play back? i mean i have some sound in wav/mp3/rm format, can i play them on Palm OS 4.1, does the operating system itself have some built-in functions to support this functionality? very urgent! Thinks in advance. xue Kingsoft Co.,Ltd. -- 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: very urgent!
Actually, this is the one I was thinking of : http://www.shin.nu/~FocV/javu/index.html Alan William Chow [EMAIL PROTECTED] wrote in message news:96786@palm-dev-forum... http://www.drolez.com/software/ Supply the link,otherwise they're going to ask. - Original Message - From: Alan Ingleby [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Sunday, September 29, 2002 5:47 PM Subject: Re: very urgent! No. It supports rudimentary beeps only. IIRC there is an open source sound playback library which allows wav file playback, but the quality pretty poor. Alan Xue Qu [EMAIL PROTECTED] wrote in message news:96678@palm-dev-forum... Hi all, Can anyone tell me if Palm OS 4.1 supports sound play back? i mean i have some sound in wav/mp3/rm format, can i play them on Palm OS 4.1, does the operating system itself have some built-in functions to support this functionality? very urgent! Thinks in advance. xue Kingsoft Co.,Ltd. -- 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/
UI
Hi I am writing an application on Palm Bluetooth library. When I set the link to Authenticate , the system throws a UI for the user to enter the passkey. Is there any way I could get hold of this form and its controls to access the passkey value entered from the application. Regards Madhusudhan -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Serial works on Emulator but not device
I've recently loaded my program onto the actual palm device and my serial communication code, which worked perfectly using the emulator and the pc's serial port, now fails to work. The problem may lie in my parity settings. How does one set it to no parity? I assume you just leave out the srmSettingsFlagParityOnM and srmSettingsFlagParityEvenM masks when or-ing together the flags for SrmControl, but I could be wrong. Can anyone suggest what I might be doing wrong? _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Fatal error when I exit my application (repost)
I've just put my application on the actual Palm (as opposed to the emulator) and when you tap the applications icon at the bottom it comes up with a Fatal Error that says: DataMgr.c, Line:7821, Index out of range And then it crashes before I can select the Reset button in the error dialog. Now I'm closing all my databases properly (I believe), so why would this occur? Thanks, Sean _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Scrolling Text Field
Has anybody implimented a text field that scrolls horizontally and vertically? Any ideas on how best to do the horizontal scrolling? Thanks, KP -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Scrolling Text Field
Hi Krishnan, Manual Scroll :- Give two buttons ( TEXTFELD) like this.I think on the click of the button move(increase or decrease) the caret position of the cursor Automatic Scroll Use a timer and then update the caret position of the cursor. Do let us all know once u implement the same about how u went about it. Vikas Lakkashetti Software Engineer House Of Code Pvt. Ltd Off:-8292340 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Code signing in Palm OS 5.0?
I read in the Palm OS marketing literature that code signing would be supported in 5.0 but cannot find any evidence of it in the release so far. Does anyone know if signing/verification of executables is now supported? Regards, Bren. -- Bren Caperon General Manager, Business Product Development Wedgetail Communications, Security for Network Devices http://www.wedgetail.com [EMAIL PROTECTED] Ph: +61 7 3023 5130 Fax: +61 7 3023 5199 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: very urgent!
This Palm Audio Driver is open source? There is a big disclaimer at the end which says you can't redistribute it. - Original Message - From: Alan Ingleby [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Sunday, September 29, 2002 8:56 PM Subject: Re: very urgent! Actually, this is the one I was thinking of : http://www.shin.nu/~FocV/javu/index.html Alan William Chow [EMAIL PROTECTED] wrote in message news:96786@palm-dev-forum... http://www.drolez.com/software/ Supply the link,otherwise they're going to ask. - Original Message - From: Alan Ingleby [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Sunday, September 29, 2002 5:47 PM Subject: Re: very urgent! No. It supports rudimentary beeps only. IIRC there is an open source sound playback library which allows wav file playback, but the quality pretty poor. Alan Xue Qu [EMAIL PROTECTED] wrote in message news:96678@palm-dev-forum... Hi all, Can anyone tell me if Palm OS 4.1 supports sound play back? i mean i have some sound in wav/mp3/rm format, can i play them on Palm OS 4.1, does the operating system itself have some built-in functions to support this functionality? very urgent! Thinks in advance. xue Kingsoft Co.,Ltd. -- 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/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/