fnav and bitmap buttons
First of all - thank you so much Florent, for posting the 5 way nav code on PalmOne.com Now on to my issue... (maybe some of you have seen this before). For some reason I cannot get the 5 way nav bar to recognize bitmap buttons. Is there a way to do it? Or are they simply not supported? Thanks, Edward -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Trying to test for false and break routine
From: druid [EMAIL PROTECTED] trying to determine if the field is empty and poping up a alert window then breaking the routine been at it a few days now, Im missing something I think your outer logic is fine, but it's failing because inside GetFieldData() nofield is set if the text buffer or the field is missing - these shouldn't happen if your code is written correctly. What you want is to have that flag set if your field is *empty*. Change GetFieldData so that the if (FldGetTextLength (pField)) that does the copy has an else that sets nofield to true. Your outer logic then has more chance of doing something useful. Chris Tutty (snip) Boolean nofield = false; static Boolean frmMain_frmTestButton_OnSelect(EventPtr event) { // Insert code for frmTestButton GetFieldData( fldTest, testdata, 255 ); if (nofield) status = FrmAlert(frmAleart); nofield = false; break; return true; } (snip) Boolean GetFieldData (UInt16 fld, Char *text, UInt16 maxLen) { FormPtr pForm = FrmGetActiveForm (); FieldPtr pField = FrmGetObjectPtr (pForm, FrmGetObjectIndex (pForm, fld)); if (text != NULL) *text = '\0'; // initialize if (text == NULL || pField == NULL) { nofield = true; return false; } if (FldGetTextLength (pField))StrNCat (text, FldGetTextPtr (pField), maxLen); return true; } -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Database Encryption
I have created a database with four fields and would like to encrypt the same to ensure its security. Can anyone suggest a way to encrypt and decrypt the database? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
User-toggable multilingual application
I distribute my app in 3 languages, each as a distinct stand-alone PRC file. Now, some users, when working with foreigners (everyone is someone else's foreigner), would like to be able to switch language on the fly. Overlays don't seem appropriate as it's the OS that gets to select the resource overlay according to the machine locale. Could I simply achieve this by shipping resource databases that would only contain my UI resources and use DmOpenDatabase to select a new resource database from which resources would then be fetched? I gather that if I later close that new resource database, I would fall back to the UI resources in the base PRC file. Suggestions and ideas welcome. -- Luc Le Blanc -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Switching from Codewarrior to PODS
Clifford Cheng schrieb: I have tried to build a program, which is initially designed for CodeWarrior, in PODS. But PODS just keep on giving an error message saying that make all make: Error -- Configuration file `/etc/startup.mk' not found I am wondering what's happening here and how I can fix it. Thanks Cliff This sounds like a Codewarrior Makefile to me. PODS uses GNU-make, which is surely not compatible. I think you have to rewrite the Makefiles or recreate the project in PODS ( keep the Resources and Sourcecode and let PODS set up a new project ). Jürgen -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Fw: CodeWarrior for Palm is BACK
Don't whether other will have seen this, but as seen in group codewarrior.palm (see http://groups.google.co.uk/group/codewarrior.palm/browse_thread/thread/bae2121cbe186545/4227c5398a18ea94): Hi all, Just to let you know that we will again be selling CodeWarrior for Palm v9 at Meterwerks store http://store.metrowerks.com/ It should be available on the 27th or shortly thereafter. Ron I can't see it yet at the store. -- Alan J. McFarlane http://www.alanjmcf.me.uk/ Please follow-up in the newsgroup for the benefit of all. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: HTML interface in Palm apps
Many thanks for your replies. I guess for now, we have to stick to making our own routines for handling HTML and hyperlinks. Let's hope Palm will implement HTML-rendering soon. Based on Aarons feedback, I've managed to put together some simple sensitive-area hyperlinks. This works, however it's not particularly nice, and nothing like real HTML. I suspect a full HTML-renderer would mean double buffering and a somewhat intelligent algorithm for rendering longer pages and handling scrolling, not to mention different font styles and sizes (notice I'm not even mentioning images here. Isn't the BMP format a little outdated???). There's simply too much work and processing required using high-level programming to make it work efficiently on, say, a Tungsten E. So, I really hope the people planning future Palm OS developments are reading this forum and this thread. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
copy protect my application
Assuming that you know the coordinates of the database (i.e., its cardNo and LocalID), you can set its beam protection attribute like this: Err BeamProtect (UInt16 cardNo, LocalID dbID) { Err err; UInt16 dbAttr; err = DmDatabaseInfo (cardNo, dbID, NULL, dbAttr, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); if (err != errNone) return err; dbAttr |= dmHdrAttrCopyPrevention; err = DmSetDatabaseInfo (cardNo, dbID, NULL, dbAttr, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); return err; } Of course, this isn't really any kind of serious protection, because the attribute can be turned off just as easily. Regards, Vesselin -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: please help
Christian Lindemeier wrote: When you take a look into the archive you will see that there are always some post that stay unanswered. Even more so those with meaningless titles such as Help me!, Newbie question and the like... (VERY bad idea for future archive searches) -- Luc Le Blanc -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Efficiency of VFSImportDatabaseFromFile
ubject: Re: Efficiency of VFSImportDatabaseFromFile From: Larry Johnson [EMAIL PROTECTED] Date: Tue, 26 Jul 2005 21:35:07 - Spare memory went from 800K to 5.7M, merely by partitioning the data as you suggested. I'm taking baby steps and am packing just 20 records at a time. I would like to be able to determine how many actual records are in a packed pdb. So I need a definitive way to determine the size of a record. The number of actual records in the last pdb record could be determined by: PdbRecordSize / ActualRecordSize; DmQueryRecord returns a MemHandle, and I thought about calling MemHandleSize. But I'm not sure if this is accurate. I need to know the size of the last record (which packs several actual records). Any help? MemHandleSize is very accurate, but to use it assumes that you only allocated as much memory as you required on the last block. So ultimately how you write out the last partial block determines how you can figure out how many records are present in it. Roger Stringer Marietta Systems, Inc. (www.rf-tp.com) -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
WCA - HTML
Hi, How do I display an HTML text in Palm ? I would like to display HTML pages at runtime just like htmlview in Pocket PC. Is there any provision to display HTML pages (HTML text will be generated dynamically) in Palm ? I am using CodeWarrior to create applications in Palm. Any information related to this would be very useful. Thanks, Rajesh T R Fischer Systems India Pvt. Ltd. 224, NILA, Technopark Trivandrum-695581 INDIA Ph: 91-471-2527120 Fax: 91-471-2527437 Mobile: 91-94473-87352 email: [EMAIL PROTECTED] Web: www.fisc.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Database Encryption
I havent tried it but the TEA encryption seems fairly simple but effective. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
hostfs
Hi all, Does anybody know where can I get a hostfs.prc for garnet 5.4r ? regards -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: WCA - HTML
If you check recent postings in this forum, you will se that the answer to your question is no. You will have to write your own routines for HTML-rendering and display, or integrate libraries such as Plucker. Regards, Kristian -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Unit testing solution for PODS (Palm OS Developer Suite)
Does anybody know if there is a Palm OS C++ Unit Testing solution for *PALM OS DEVELOPER SUITE (PODS)* ? I have found the PalmCppUnit project on sourceforge.net, but an adaptation is necessary for PODs : http://sourceforge.net/projects/palmcppunit/ Francois CARDINAUX -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Still don't get it
Hi, If I have only the ControlType *ptr - how do I get the control ID? FrmGetObjectId(frmP, objIndex) - requires the objIndex --- how do I get objIndex? Sorry for basic questions. Regards, Udi -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Still don't get it
Try FrmGlueGetObjIDFromObjPtr if it helps Regards -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Udi Kobi Sent: Wednesday, July 27, 2005 9:23 PM To: Palm Developer Forum Subject: Still don't get it Hi, If I have only the ControlType *ptr - how do I get the control ID? FrmGetObjectId(frmP, objIndex) - requires the objIndex --- how do I get objIndex? Sorry for basic questions. Regards, Udi -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Still don't get it
Try this... FrmGetObjectIndex(pForm, 1001), so your code would be FrmGetObjectId(frmP, FrmGetObjectIndex(pForm, 1001)) where: FormType* pForm = FrmGetActiveForm(); and 1001 is the control ID of the object you wish to manipulate. ~Tony [EMAIL PROTECTED] 7/27/2005 8:10 AM Try FrmGlueGetObjIDFromObjPtr if it helps Regards -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Udi Kobi Sent: Wednesday, July 27, 2005 9:23 PM To: Palm Developer Forum Subject: Still don't get it Hi, If I have only the ControlType *ptr - how do I get the control ID? FrmGetObjectId(frmP, objIndex) - requires the objIndex --- how do I get objIndex? Sorry for basic questions. Regards, Udi -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
form - return to previous form
I would like to open one form, which can be opened by more than one form, and return back to previous form. How can i do that? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: form - return to previous form
FrmPopupForm the new form then FrmReturnToForm to go back previous form -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Pop-up lists - incremental search
No entiendo tu problema...??? -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Michal Seliga Enviado el: Lunes, 25 de Julio de 2005 3:42 Para: Palm Developer Forum Asunto: Re: Pop-up lists - incremental search i can confirm this. incremental search works only if all items have texts in list and will crash if you use LstSetListChoices(lstP, NULL, ...) Jürgen Wind wrote: Marianella Diaz schrieb: Hi guys, I've a Pop-up list with the incremental search attribute set with LstGlueSetIncrementalSearch, but it don't works... it crash... :( I'm using in my list LstSetListChoices(lstP, NULL, 24); Can I do this? :( How should this work ? If you use LstSetListChoices(lstP, NULL, 24), you are using your custom draw function for drawing the entries. PalmOS has no idea of the contents and can't provide you with incremental search. I actually have never used the incremental search before, but I would imagine this... Juergen -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Unit testing solution for PODS (Palm OS Developer Suite)
François Cardinaux schrieb: Does anybody know if there is a Palm OS C++ Unit Testing solution for *PALM OS DEVELOPER SUITE (PODS)* ? I have found the PalmCppUnit project on sourceforge.net, but an adaptation is necessary for PODs : http://sourceforge.net/projects/palmcppunit/ Francois CARDINAUX Hi Francois, I use PalmUnit in the version from cytheric, you can find it here: http://cytheric.net/palmunit/index.shtml I changed it in a way that I have one PalmUnit project that creates a static library and holds the headers and a program-specific project that holds the resources and all the tests. If you want to, I can provide you with the version I have. Regards, Jürgen -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: form - return to previous form
Evan schrieb: FrmPopupForm the new form then FrmReturnToForm to go back previous form FrmReturnToForm(0) returns to the last active form before the FrmPopupForm. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How do I get the control's ID?
Use FrmGetObjectId(). Regards, Vesselin -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: User-toggable multilingual application
I previously wrote: I distribute my app in 3 languages, each as a distinct stand-alone PRC file. Now, some users, when working with foreigners (everyone is someone else's foreigner), would like to be able to switch language on the fly. Overlays don't seem appropriate as it's the OS that gets to select the resource overlay according to the machine locale. Could I simply achieve this by shipping resource databases that would only contain my UI resources and use DmOpenDatabase to select a new resource database from which resources would then be fetched? I gather that if I later close that new resource database, I would fall back to the UI resources in the base PRC file. Suggestions and ideas welcome. Actually, I would like to try for myself this idea of a resource database, but under CW 9.3, when I try to link my new PalmOS code resource target containing only the Constructor resource file, the linker complains about a missing __startup__ routine. How can I create with CW 9.3 a resource DB containing only UI resources? Must the type be 'rsrc' or other? -- Luc Le Blanc -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
how to get database operation events?
What do you mean by database operation? PalmOS 5.x broadcasts notifications for a whole bunch of database-related events - search the Reference for notifications, the names of which begin with sysNotifyDB. Under the earlier versions of PalmOS, you have to patch the system traps that correspond to these database operations, in order to get control when they are performed. Regards, Vesselin -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: User-toggable multilingual application
At 01:11 PM 7/27/2005, you wrote: Actually, I would like to try for myself this idea of a resource database, but under CW 9.3, when I try to link my new PalmOS code resource target containing only the Constructor resource file, the linker complains about a missing __startup__ routine. How can I create with CW 9.3 a resource DB containing only UI resources? Must the type be 'rsrc' or other? If you use the Palm OS 68K Linker, there is a resource-only target type. However, everything with the Mac OS 68K Linker has to have code. -- Ben Combee, Senior Software Engineer, palmOne, Inc. Combee on Palm OS weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
pnoJpegLib Beginner
Hi, I just downloaded pnoJpegLib and I am trying to use it with it with my working program. Currently I have several bmp stored as resources and I want to convert it to jpeg so I can save some space on final .zip package and also I want to use of the resize feature during execution time. So this is my first questions: 1) Is possible to use store jpg images as resources (like bmp) to use in my application? How do I do that? 2) also, how do I store several jpg image into a single .PDB file to use it during execution time? thanks Erico -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Recovering from console mode
Hi, There is a heinous bug in my code that causes it to crash miserably and that's fine. The problem I have is that when I end the debugging session in CW's debugger, the device (Treo600) is restarted automatically, but the boot process never completes and I am left with the palm powered splash screen forever. - a subsequent soft reset does not result in a successful boot. - a hard reset (with erasing all data) will. I noticed the following: 1- If I put the device in console mode using the shift+hotsync buttons, the previous behavior happens as described. 2- If I put it in console mode using DotDot2 app, the same behavior still happens with the added bonus of the persistence of the console mode state. Any clues? Thanks CW 9.3, debug over serial, XP sp2, latest SDK from palmsource and palmone. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Switching from Codewarrior to PODS
Then what should I do in order to fix it? Thanks. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: User-toggable multilingual application
Ben Combee a écrit : At 01:11 PM 7/27/2005, you wrote: Actually, I would like to try for myself this idea of a resource database, but under CW 9.3, when I try to link my new PalmOS code resource target containing only the Constructor resource file, the linker complains about a missing __startup__ routine. How can I create with CW 9.3 a resource DB containing only UI resources? Must the type be 'rsrc' or other? If you use the Palm OS 68K Linker, there is a resource-only target type. However, everything with the Mac OS 68K Linker has to have code. When I first tried a quick and dirty implementation, things worked right away! But when I cleaned things up, its stopped working. I suspect my resource DB has something wrong since when I load under POSE, the progress bar no longer fills, it remains blank and quickly goes away. All it contains is one Main segment with the Constructor file in it. My CW 9.3 target parameters are as follows: Linker: Palm OS 68K Pre-linker: None Post-linker: None Project Type: Merged Resource File no code entry point (grayed) no standard resources Type: rsrc Creator: AURI (same as my app) DB Version: 1 (default) Header flags: Backup Linker Info: Dead Strip Static Init Code Exporting this in XML, all I get is this: ?xml version=1.0 encoding=UTF-8 standalone=yes ? ?codewarrior exportversion=1.0 ideversion=5.0 ? !DOCTYPE EXPORTEDPANEL [ !ELEMENT EXPORTEDPANEL (NAME, (SETTINGLIST|VALUE)) !ELEMENT SETTINGLIST (SETTING+) !ELEMENT SETTING (NAME?, (VALUE|(SETTING+))) !ELEMENT NAME (#PCDATA) !ELEMENT VALUE (#PCDATA) ] EXPORTEDPANEL NAMETarget Settings/NAME SETTINGLIST SETTINGNAMELinker/NAMEVALUEPalm OS 68K Linker/VALUE/SETTING SETTINGNAMEPreLinker/NAMEVALUE/VALUE/SETTING SETTINGNAMEPostLinker/NAMEVALUE/VALUE/SETTING SETTINGNAMETargetname/NAMEVALUERsrcEN/VALUE/SETTING SETTINGNAMEOutputDirectory/NAME SETTINGNAMEPath/NAMEVALUE:/VALUE/SETTING SETTINGNAMEPathFormat/NAMEVALUEMacOS/VALUE/SETTING SETTINGNAMEPathRoot/NAMEVALUEProject/VALUE/SETTING /SETTING SETTINGNAMESaveEntriesUsingRelativePaths/NAMEVALUEfalse/VALUE/SETTING /SETTINGLIST /EXPORTEDPANEL What's wrong? -- Luc Le Blanc -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: User-toggable multilingual application
At 06:01 PM 7/27/2005, you wrote: When I first tried a quick and dirty implementation, things worked right away! But when I cleaned things up, its stopped working. I suspect my resource DB has something wrong since when I load under POSE, the progress bar no longer fills, it remains blank and quickly goes away. All it contains is one Main segment with the Constructor file in it. Have you inspected the PRC file on the desktop using PRC Explorer or par? That would be my first course of action. -- Ben Combee, Senior Software Engineer, palmOne, Inc. Combee on Palm OS weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: form - return to previous form
From: Evan [EMAIL PROTECTED] FrmPopupForm the new form then FrmReturnToForm to go back previous form -- Another alternative that sticks to standard FrmGotoForm calls is to store a property with the id of the calling form and use that to return. This isn't perfect, but avoids some issues with FrmPopForm. I honestly can't remember what they were, but I know the popup and return gave me some headaches, possibly one being that you *have* to use the return, you can't then step off to a third form. This can cause your interface to become unnecessarily constrained. Of course, if that's all you'll ever want to do then the constraint isn't an issue. As far as the use of globals goes, I tend to implement each form in it's own module with a header to expose the interface. Properties such as returnToForm are then local to that module and managed using a setReturnToForm() function exposed via the header. While this is still global from the compilers point of view it provides good modularity for code management. Chris Tutty -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
revisit the alert issue
there has got to be a better way, this could get ugly with 10 fields or so #include PalmOS.h #include testaleart.h #include testaleart_res.h Char testdata[256], testdata1[256]; Boolean nofield = false; UInt16 status; static Boolean frmMain_frmTestButton_OnSelect(EventPtr event) { UInt16 fld; // Insert code for frmTestButton GetFieldData( fldTest, testdata, 255 ); if(nofield) { status = FrmCustomAlert(frmAleart, Name, NULL, NULL); nofield = false; } else { GetFieldData( fldTest1, testdata1, 255 ); } if(nofield) { status = FrmCustomAlert(frmAleart, Number, NULL, NULL); nofield = false; } else { //go to routine to save records } return true; } Boolean GetFieldData (UInt16 fld, Char *text, UInt16 maxLen) { FormPtr pForm = FrmGetActiveForm (); FieldPtr pField = FrmGetObjectPtr (pForm, FrmGetObjectIndex (pForm, fld)); if (text != NULL) *text = '\0'; // initialize if (text == NULL || pField == NULL)return false; if (FldGetTextLength (pField)) { StrNCat (text, FldGetTextPtr (pField), maxLen); } else { nofield = true; } return true; } -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: revisit the alert issue
From: druid [EMAIL PROTECTED] there has got to be a better way, this could get ugly with 10 fields or so You could wrap the test and alert in a private work function that's passed the name and index of the field. That means that your main code would just be: if (handleField(Name, fldName)) { if (handleField(Number, fldNumber)) { } } That's slightly less efficient, but is a lot easier to read. It also stays simple even if the logic associated with each field becomes more complex. For this sort of problem I've also sometimes used a loop with a case statement: for (fieldnum = 0; fieldnum FIELDCOUNT; ++fieldnum) // common set up logic switch (fieldnum) { case 0: // do stuff for field zero break; case 1: // do stuff for field one break; // etc... } // common error check and clean up logic if (err != NOERROR) { break; } } // end field for which isn't as clean as a worker function but is useful where the worker function would otherwise need to pass a dozen parameters in and out. It's essentially just using the loop to step through a sequence (a simple state machine) to ensure that the before and after logic in always consistent. Chris Tutty #include PalmOS.h #include testaleart.h #include testaleart_res.h Char testdata[256], testdata1[256]; Boolean nofield = false; UInt16 status; static Boolean frmMain_frmTestButton_OnSelect(EventPtr event) { UInt16 fld; // Insert code for frmTestButton GetFieldData( fldTest, testdata, 255 ); if(nofield) { status = FrmCustomAlert(frmAleart, Name, NULL, NULL); nofield = false; } else { GetFieldData( fldTest1, testdata1, 255 ); } if(nofield) { status = FrmCustomAlert(frmAleart, Number, NULL, NULL); nofield = false; } else { file://go to routine to save records } return true; } Boolean GetFieldData (UInt16 fld, Char *text, UInt16 maxLen) { FormPtr pForm = FrmGetActiveForm (); FieldPtr pField = FrmGetObjectPtr (pForm, FrmGetObjectIndex (pForm, fld)); if (text != NULL) *text = '\0'; // initialize if (text == NULL || pField == NULL)return false; if (FldGetTextLength (pField)) { StrNCat (text, FldGetTextPtr (pField), maxLen); } else { nofield = true; } return true; } -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: WCA - HTML
Hi, Please give more details about Plucker Library. Is it a free library ? If anybody have contact details of Plucker Library please share. Thanks, Rajesh T R Fischer Systems India Pvt. Ltd. 224, NILA, Technopark Trivandrum-695581 INDIA Ph: 91-471-2527120 Fax: 91-471-2527437 Mobile: 91-94473-87352 email: [EMAIL PROTECTED] Web: www.fisc.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ enc11048.let Description: Binary data
Re: User-toggable multilingual application
Ben Combee a écrit : At 06:01 PM 7/27/2005, you wrote: When I first tried a quick and dirty implementation, things worked right away! But when I cleaned things up, its stopped working. I suspect my resource DB has something wrong since when I load under POSE, the progress bar no longer fills, it remains blank and quickly goes away. All it contains is one Main segment with the Constructor file in it. Have you inspected the PRC file on the desktop using PRC Explorer or par? That would be my first course of action. Good idea: one was 80 bytes. I finally managed to make things work, but CW seems shaky: at times, you get a wrong PRC; but re-creating the target with the very same settings suddenly works. One last question: my complete PRC (code+resource) is 400 Kb, but my resource PRCs are also 400 Kb, even if I removed other segments from these targets (that I cloned from the regular ones). I tried checking Link Single Segment, removed all debug symbols, etc, to no avail. Normally, this resource data should be about 32 Kb, given that the first segment (out of 5) of my full PRC hold both the resource data and a few source files. With PRCExlorer, I notice code resources among other UI resources in this would-be UI resources-only 'rsrc' PRC. How can I drop them? -- Luc Le Blanc -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: WCA - HTML
Please give more details about Plucker Library. Is it a free library ? If anybody have contact details of Plucker Library please share. There is no such thing as the Plucker Library, sorry. David A. Desrosiers [EMAIL PROTECTED] http://gnu-designs.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ enc11048.let Description: Binary data
Re: Unit testing solution for PODS (Palm OS Developer Suite)
Hi Jürgen, Thank you for your answer. I would be very happy if you could provide me with the version you have. I have already found the url you mention, but I don't feel comfortable with adapting to PODs. Regards, Francois. Jürgen aswered: Hi Francois, I use PalmUnit in the version from cytheric, you can find it here: http://cytheric.net/palmunit/index.shtml I changed it in a way that I have one PalmUnit project that creates a static library and holds the headers and a program-specific project that holds the resources and all the tests. If you want to, I can provide you with the version I have. Regards, Jürgen François Cardinaux wrote: Does anybody know if there is a Palm OS C++ Unit Testing solution for *PALM OS DEVELOPER SUITE (PODS)* ? I have found the PalmCppUnit project on sourceforge.net, but an adaptation is necessary for PODs : http://sourceforge.net/projects/palmcppunit/ Francois CARDINAUX -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: User-toggable multilingual application
At 11:25 PM 7/27/2005, you wrote: Good idea: one was 80 bytes. I finally managed to make things work, but CW seems shaky: at times, you get a wrong PRC; but re-creating the target with the very same settings suddenly works. One last question: my complete PRC (code+resource) is 400 Kb, but my resource PRCs are also 400 Kb, even if I removed other segments from these targets (that I cloned from the regular ones). I tried checking Link Single Segment, removed all debug symbols, etc, to no avail. Normally, this resource data should be about 32 Kb, given that the first segment (out of 5) of my full PRC hold both the resource data and a few source files. With PRCExlorer, I notice code resources among other UI resources in this would-be UI resources-only 'rsrc' PRC. How can I drop them? I don't know exactly how you have your targets setup -- what names you're giving things or if you're linking the output of one target into another. You shouldn't see any code resources in the merge target -- the whole part of the linker that pulls in code is disabled, but if it's merging a PRC from another target into your PRC, code segments could be introduced. Just carefully check the file list and turn off any files that aren't your component resource files. -- Ben Combee, Senior Software Engineer, palmOne, Inc. Combee on Palm OS weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
convert .rsrc to .rcp
i have some projects in CodeWarrior V8.3 with .rsrc resources. i want to convert all .rsrc to .rcp files, but stick with V8.3 (no upgrade to V9), can i do that and how? can i still use Mac OS 68K Linker instead of Palm OS 68K Linker? i remember that Palm OS 68K Linker is new to V9. thanks -mguo -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How to Block/Restore System Alarms??
Hi, I want to disable the Alarms then restore it. Just like the HotSync application ,default security App etc.. does. 1.)I captured but vchrAlarm, But It doesn't seem to work. 2.)I used the undocumented function AlmEnableNotification(Boolean enable) This works fine in disabling all the alarms but it doesn't enable the alarms on my device. I have to reset the device to restore the alarm functionality. In the description of this function, it is written that A call to disable MUST always precede the call to enable. What does this mean. I tried to do that but it gives error. Anyone knows about How to use this function? 3.) Does cdmPBP-purgeAlarm in the SysAlarmTriggerred notification is of any use? 4.) Can I use AttnGetAttention() function of Attention manager in achiving this functionality? Thanks in Advance. Best Regards, Mehul -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
EFIGS ROM for simulator/emulator
is there EFIGS ROM for simulator/emulator available? i have a EFIGS device, but i don't know where to get a simulator. thanks -mguo -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/