Re: Turning on GRAFFITISTATEINDICATOR
On Fri, 28 Sep 2001, Todd Cary wrote: So simple..!! and, for those using prc-tools (or, non codewarrior) you add: AUTOSHIFT to your pilrc field declaration :) // az [EMAIL PROTECTED] http://www.ardiri.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Turning on GRAFFITISTATEINDICATOR
Todd, In PocketStudio you set the AutoShift property to checked. That should do it! The indicator works automagically! Douglas Olson - President Co-founder Pocket Technologies, Inc. - [EMAIL PROTECTED] - http://www.pocket-technologies.com Develop PalmOS applications with your Delphi skills Today! Todd Cary [EMAIL PROTECTED] wrote in message news:63625@palm-dev-forum... I have a GRAFFITISTATEINDICATOR on a form and I want the first character to be capitalized. How do I do that? Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Screen Saver!
Ok, I am making a simple marquee program for the palm pilot. Everything works Perfectly except for when I want to exit. The effect I want is when the user presses the stlus against the screen, the app should exit and enter the app launch program. Instead it gives me a memory error. Here is my code. int num=0; Int16 penX, penY; BooleanpenDown; while(penDown==false){ num=num+1; if(num10) { scrollx=scrollx-1; num=0; } WinDrawChars(Brandon Rules!,14,scrollx,70); if (scrollx-100) { WinEraseWindow(); scrollx=177; } } EvtGetPen( penX, penY, penDown); if(penDown==true) SysAppLauncherDialog(); I know the main reason is probably because I have it in a While loop. Can anyone help me? Thanks! -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Memory allocation?
How many chunks of 64k (or a little less) can I allocate at once on the Palm? Not using the database allocations, just regular mem allocation. Thank you James -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Palm Speed?
Is there a way to speed up the Palm? Programming wise not using like afterburn or something of that sort? Can you speed up the timer or display more stuff to the screen? Thank you James -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Using Clié SDK with GCC
I answer to my own message, as the problem is now solved, thanks to John Marshall ! As John suggested it, the solution is to modify the files SonyHRLib.h, SonyMsaLib.h, and SonyRmcLib.h to use #define instead of enum. The other errors are related to macros splitted in several lines using the continuation character '\'. It is even simpler to solve than the enum/#define replacement : just make the macros fit in one line, even if it is a big one. Doing this, I was able to use the Clié SDK 3 with Palm SDK 4.0 and PrcTools without any problem. I'm not sure all is working fine, but I had no problem using the High Resolution API, so I guess it should be ok for other Sony specific things. I have sent the changes to Sony Clié dev guys. -- Daniel Morais -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Turning on GRAFFITISTATEINDICATOR
Aaron Ardiri [EMAIL PROTECTED] wrote in message news:63698@palm-dev-forum... On Fri, 28 Sep 2001, Todd Cary wrote: So simple..!! and, for those using prc-tools (or, non codewarrior) you add: or using CodeWarrior with PilRC :) AUTOSHIFT to your pilrc field declaration :) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Memory allocation?
James [EMAIL PROTECTED] wrote in message news:63701@palm-dev-forum... How many chunks of 64k (or a little less) can I allocate at once on the Palm? Not using the database allocations, just regular mem allocation. See the chart in the Memory section of the Palm OS Companion. The available dynamic memory varies from 12K to 192K depending on device and OS version. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Screen Saver!
[EMAIL PROTECTED] wrote in message news:63700@palm-dev-forum... Ok, I am making a simple marquee program for the palm pilot. Everything works Perfectly except for when I want to exit. The effect I want is when the user presses the stlus against the screen, the app should exit and enter the app launch program. Instead it gives me a memory error. Here is my code. int num=0; Int16 penX, penY; BooleanpenDown; while(penDown==false){ num=num+1; if(num10) { scrollx=scrollx-1; num=0; } WinDrawChars(Brandon Rules!,14,scrollx,70); if (scrollx-100) { WinEraseWindow(); scrollx=177; } } EvtGetPen( penX, penY, penDown); if(penDown==true) SysAppLauncherDialog(); I know the main reason is probably because I have it in a While loop. Can anyone help me? SysAppLauncherDialog() has been an obsolete function since Palm OS 3.0. You need to just exit the while loop and then exit your program, and you'll return to whatever launched you. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Terminated text in Clipboard - FldPaste hangs?
In article 63624@palm-dev-forum, Ken Krugler [EMAIL PROTECTED] wrote: This seems like a bug in the OS to me. No, it's a bug in your code. The point is that it took some serious digging to figure out what was going on, and the answer turns out to be that the OS can't handle a null in clipbord text. I agree that it was a little stupid of me to add it in the first place, but how should I know it would cause such havoc? Nowhere in the docs or the KB (that I could find) is there any warning about it. It's vaguely implied in the description of ClipboardGetItem (because the returned text doesn't include null), but that's the only mention I saw. Did I miss something obvious? It wouldn't be the first time. You're right, a warning in the documentation for ClipboardAddItem would be useful. I've forwarded this to the tech writer. ..or at least a regrettable lack of robustness in FldPaste :-) Possibly, but the question of how much checking can and should be done is a grey area. Agreed, and I don't expect the OS to save me from myself at all times, But jeez, if a null in the clipboard can crash the system outside my own app, then it should at least be documented. Better, perhaps ClipboardAddItem should check for and strip null terminators in text items so that it's simply never a problem. Stripping null terminators seems to start one down the slippery path of guessing what the programmer meant to do, and then correcting errors. But a check for a terminating null wouldn't be hard to add for the debug ROMs. I'll put that on my list. -- Ken Ken Krugler TransPac Software, Inc. http://www.transpac.com +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Basic C question
var Dst: PChar; Src: PChar; begin StrCopy(Src, 'Demo string'); // So far so good // Now, how do I copy string to Dst? // I need a substring // This does not work: StrCopy(Dst, Src + 5); end; Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
String to Time
Is there a function for Ascii to Date/Time or do I need to roll my own? Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Basic C question
--- Todd Cary wrote: var Dst: PChar; Src: PChar; begin StrCopy(Src, 'Demo string'); // So far so good // Now, how do I copy string to Dst? // I need a substring // This does not work: StrCopy(Dst, Src + 5); end; This looks more like a Pascal question than a C question, since your code is obviously Pascalese. In C, you could do this: Char Src[12]; Char Dst[7]; StrCopy(Src, Demo string); StrCopy(Dst, Src+5); Note, however, that the following code would fail in C because it doesn't allocate any space for the strings: Char *Src; Char *Dst; StrCopy(Src, Demo string); // error StrCopy(Dst, Src+5); // another error Your code is probably failing for the same reason. __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Basic C question
--- Todd Cary wrote: var Dst: PChar; Src: PChar; begin StrCopy(Src, 'Demo string'); // So far so good // Now, how do I copy string to Dst? // I need a substring // This does not work: StrCopy(Dst, Src + 5); end; In C, you could do this: Char Src[12]; Char Dst[7]; StrCopy(Src, Demo string); StrCopy(Dst, Src+5); Personally, I like to use: StrCopy(Dst, Src[5]); But that's just a personal preference... Quite likely, Joe's assessment that you are not allocating space for the strings before copying into them, so you are copying Demo string and string into random (and probably protected) memory spaces. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Basic C question
It is actually from PocketStudio (http://www.pocket-technologies.com). It is a new development tool for the PalmOS. It does create optimized, native PalmOS applications (fast and small like C) and NO RUNTIME. Just thought you would want to know! -- Douglas Olson - President Co-founder Pocket Technologies, Inc. - [EMAIL PROTECTED] - http://www.pocket-technologies.com Develop PalmOS applications with your Delphi skills Today! Joe Programmer [EMAIL PROTECTED] wrote in message news:63710@palm-dev-forum... --- Todd Cary wrote: var Dst: PChar; Src: PChar; begin StrCopy(Src, 'Demo string'); // So far so good // Now, how do I copy string to Dst? // I need a substring // This does not work: StrCopy(Dst, Src + 5); end; This looks more like a Pascal question than a C question, since your code is obviously Pascalese. In C, you could do this: Char Src[12]; Char Dst[7]; StrCopy(Src, Demo string); StrCopy(Dst, Src+5); Note, however, that the following code would fail in C because it doesn't allocate any space for the strings: Char *Src; Char *Dst; StrCopy(Src, Demo string); // error StrCopy(Dst, Src+5); // another error Your code is probably failing for the same reason. __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Mail Application on PalmOS
I think I already know the answer to this but just would like some confirmation. Is there any way to load a message up in the Mail program, that comes with the PalmOS, and when I hit the send message to be able to actually send the mail, and receive, if I'm hooked up to a modem? and I no I don't want to use the HotSync button in any fashion. My thought is no. Thanks Carl -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Binding Err in second time but not for the first time !
Hi All, I'm using GCC tools in Windows NT Workstation. I have server program which just reads the arriving packets. I load my server program into my POSE and i run it reads the packet from the another POSE which has my client program. Now i close my Server Program and once again i run it It gives Error while Binding . But if i reset my POSE and run my Server program It works fine. And again if i run it gives me Bind Error and i have to do a reset again for my server program to work fine. whether i'm not closing my NetLib Properly or any Memory Porblem. Where i'm going wrong ? Please Help -Aaron -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Mail Application
I might already know the answer to this but just would like some confirmation. Is there any way to load a message up in the Mail program, that comes with the PalmOS, and when I hit the send message to be able to actually send the mail, and receive, if I'm hooked up to a modem? and I no I don't want to use the HotSync button in any fashion. My thought is no. Thanks Carl -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
built in Mail application
Is there any way to load a message up in the Mail program, that comes with the PalmOS, and when I hit the send message to be able to actually send the mail, and receive, if I'm hooked up to a modem? and I no I don't want to use the HotSync button in any fashion. My thought is no. Thanks Carl -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/