DmNumRecords
when i try to count the records frm todo database using the function DmNumRecords it give the count for those records also which are deleted frm the data base. for example we have 5 records in the data base its show still 5 after we delete the 2 records But it should show 3 records. and if we add more record it will count frm 5.and show the results according to that. please help me here is my code dbID = DmFindDatabase (0,toDoDBName); if(!dbID) FrmAlert(ToDoListEmptyAlert); dbP = DmOpenDatabaseByTypeCreator ('DATA',sysFileCToDo,dmModeReadWrite); if(dbP) FrmAlert(ToDoListOkAlert); Rec=(Int32)DmNumRecords(dbP); RecNo = MemPtrNew(16); MemSet(RecNo, 16, '\0'); field= FrmGetObjectPtr(Form,FrmGetObjectIndex(Form,TextField)); FrmCustomAlert(ToDoListEmptyAlert,StrIToA(RecNo,Rec ),NULL,NULL); MemPtrFree(RecNo); MemPtrFree(inputData); DmCloseDatabase(dbP); -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: DmNumRecords
You can check deleteflag to filter them. In general design, palm's records are deletd permanently during hotsync... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Durgesh Trivedi Sent: Monday, August 07, 2006 1:42 PM To: Palm Developer Forum Subject: DmNumRecords when i try to count the records frm todo database using the function DmNumRecords it give the count for those records also which are deleted frm the data base. for example we have 5 records in the data base its show still 5 after we delete the 2 records But it should show 3 records. and if we add more record it will count frm 5.and show the results according to that. please help me here is my code dbID = DmFindDatabase (0,toDoDBName); if(!dbID) FrmAlert(ToDoListEmptyAlert); dbP = DmOpenDatabaseByTypeCreator ('DATA',sysFileCToDo,dmModeReadWrite); if(dbP) FrmAlert(ToDoListOkAlert); Rec=(Int32)DmNumRecords(dbP); RecNo = MemPtrNew(16); MemSet(RecNo, 16, '\0'); field= FrmGetObjectPtr(Form,FrmGetObjectIndex(Form,TextField)); FrmCustomAlert(ToDoListEmptyAlert,StrIToA(RecNo,Rec ),NULL,NULL); MemPtrFree(RecNo); MemPtrFree(inputData); DmCloseDatabase(dbP); -- 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: how to draw text with transparent background
Yes, I can create draw function for List or Table. But, the problem is the selection. Palm reverses the background color of the selected row. How can I change the highlight color or draw a image? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: how to draw text with transparent background
there is nothing stopping you from calling WinSet*Color() functions or the WinDrawBitmap() inside the draw function On 8/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yes, I can create draw function for List or Table. But, the problem is the selection. Palm reverses the background color of the selected row. How can I change the highlight color or draw a image? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- Best Regards, Dmitry Grinberg Software Engineer, http://PalmPowerups.com (847) 226 9295 AIM: DmitryGrinberg MSN: [EMAIL PROTECTED] ICQ: 165589894 Y! IM: dmitrygr2003 -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: how to draw text with transparent background
The SDK calls the draw function to repaint each row in the List/Table. I found when a selection is made, the SDK doesn't call the draw function. It seems the LstSelectEvent and TblSelectEvent are handled by something else and it does not need my draw function to repaint the list. If I draw something, like a rectangle, on the list, it will overlap the highlight line. Please tell me is i am wrong. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: DmNumRecords
Durgesh Trivedi schrieb: when i try to count the records frm todo database using the function DmNumRecords it give the count for those records also which are deleted frm the data base. for example we have 5 records in the data base its show still 5 after we delete the 2 records But it should show 3 records. It depends what you want. If you use DmDeleteRecord, the record is marked as delete but its entry is not removed from the header. This is for notifying the PC-Program that it is deleted. After Hotsync these records are removed by the Conduit. If you use DmRemoveRecord, the record is removed completely and also DmNumRecord shows you the right number. But you have no notification for the PC-Program. For counting the records that are not deleted refer to the docs of DmNumRecords. It says: Records that have the deleted bit set (that is, records that will be deleted during the next synchronization because the user has marked them deleted) are included in the count. If you want to exclude these records from your count, use DmNumRecordsInCategory and pass dmAllCategories as the category. Thomas -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: how to draw text with transparent background
i am not usre about table, but in list i am sure that draw callback will be called. yes, it inverts selection by itself, but if you know which item is selected one you can draw it in your colors, invert it and then let system invert it back to get colors you want. but its just theory, i never tried it [EMAIL PROTECTED] wrote: The SDK calls the draw function to repaint each row in the List/Table. I found when a selection is made, the SDK doesn't call the draw function. It seems the LstSelectEvent and TblSelectEvent are handled by something else and it does not need my draw function to repaint the list. If I draw something, like a rectangle, on the list, it will overlap the highlight line. Please tell me is i am wrong. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Palm and PalmSource disagreement consequences
At 04:15 AM 8/7/2006, you wrote: ubject: Re: URGENT : Palm and PalmSource disagreement consequences From: themacuser [EMAIL PROTECTED] Date: Mon, 7 Aug 2006 14:59:21 +0930 X-Message-Number: 10 So far, the impression I get is that Palm OS will be dropped, and Palm will be forced to go to Access Linux. The big problem here is what exactly? Having a Linux-based Palm OS would be awesome. I believe your impression is wrong. 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/
Re: what is correct way to detect how many sms messages are in inbox?
please..someone... builtin phone application shows correct number so it must be possible somehow... i just can't find out how Michal Seliga wrote: hi on treo650 i need to detect how many sms messages are in inbox when i use PhoneLib api to open database with sms messages for me (PhnLibGetDBRef) it opens database SMS Messages2 of type DATA and creator SMS2 which is always empty i already found that messages are in fact stored in database called Messages Database with type MsDb and creator MsSt. is there any 'correct' way to get this information or must i open this database i found myself? i already found that there is a lot of records and not all of them are sms messages so i don't know how to get correct number from there. is this format documented somewhere? i also tried to use approach which was recommended for mail and sms messages (to use pmNotifyGetNewMsgCountFromHelper), it works for mail, i can't test it for mms at the moment, but for sms it returns always 0 so again no luck here i will be glad for any hint, because i am stuck with this... thanks in advance -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: DmNumRecords
On Mon, 07 Aug 2006 08:11, Durgesh Trivedi wrote: when i try to count the records frm todo database using the function DmNumRecords it give the count for those records also which are deleted frm the data base. for example we have 5 records in the data base its show still 5 after we delete the 2 records But it should show 3 records. and if we add more record it will count frm 5.and show the results according to that. please help me Have you read PalmOS API Reference ? DmNumRecords has comments: Records that have that have the deleted bit set (that is, records that will be deleted during the next synchronization because the user has marked them deleted) are included in the count. If you want to exclude these records from your count, use DmNumRecordsInCategory() and pass dmAllCategories as the category. -- Best regards, Sergey -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: how to draw text with transparent background
can i set row height of a List? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: how to draw text with transparent background
no, you can only set different font to list and rowheight is taken from font height then [EMAIL PROTECTED] wrote: can i set row height of a List? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
PalmDB structure
I have a palm C application, that it stores data in a pdb , I have to see the structure of the db for replicate it on my desktop computer (mysql db). there is a tool to do it? thanks marco -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
R: PalmDB structure
Marco you can try with PDB Converter, http://www.mverive.com/pdbconverter.htm -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di marco roner Inviato: lunedì 7 agosto 2006 12.45 A: Palm Developer Forum Oggetto: PalmDB structure I have a palm C application, that it stores data in a pdb , I have to see the structure of the db for replicate it on my desktop computer (mysql db). there is a tool to do it? thanks marco -- 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/
Enquiry for handheld's OS
Hi all, I wondering does any of you know what's the main advantages of Palm OS compare to other OS? (Regarding to programming usage). Or where can I find the useful information about the advantages and disadvantages (comparison) of different kind of OS? Cheers. Ryan. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: PalmDB structure
I am far from being an expert, but here is what I understand to be true: 1) Palm database records are stored as simply a string of bytes. It is relatively simple to separate the database into individual records. 2) Palm databases *do not* embed any information as to record structure. It is impossible to determine the structure of individual records other than through trial and error, also known as hacking or reverse engineering. Both of which may possibly be illegal in the United States, by the way. 3) If the records consist of simple string data, reverse engineering may be fairly easy. Using a tool such as PDBee to view a record which you know to contain certain data, you should be able to easily determine the number of string fields in use. 4) If the records contain data in other forms, such as Integer or Float fields, the process of reverse engineering becomes significantly more difficult, especially if you do not know in advance the exact contents of at least one record. If the number of fields is small, reverse engineering may be possible; if the number of fields is large or you do not know the exact contents of at least one record in advance, the task may be virtually impossible. 5) The individual records in a database do not necessarily all have the same data layout. Yes, they probably do, but it is not a requirement and you cannot be certain without adequate testing and/or knowledge of the application which created the database. Carmine -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of marco roner Sent: Monday, August 07, 2006 6:45 AM To: Palm Developer Forum Subject: PalmDB structure I have a palm C application, that it stores data in a pdb , I have to see the structure of the db for replicate it on my desktop computer (mysql db). there is a tool to do it? thanks marco -- 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: arm-prc-tools help
On 8/7/06, Hynek Sladky [EMAIL PROTECTED] wrote: I want to start with ARM native functions. I added arm-prc-tools to my cygwin installation and now I try to compile project. make calls bin\arm-palmos-gcc.exe which calls lib\gcc-lib\arm-palmos\3.3.1\cc1.exe and bin\as.exe as.exe prints many error messages Error: no such instruction: ... and others. IMHO other as.exe (arm-palmos\bin\as.exe?) should be called but I don't know how to do it. Could you help me? you are typing make under a cygwin prompt i assume? -- // Aaron Ardiri -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: arm-prc-tools help
No, I run make.exe from command line. Hynek Aaron Ardiri napsal(a): you are typing make under a cygwin prompt i assume? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: PalmDB structure
I have the source code, so I can see the filed of the PDB, but for examplechar* name in mysql is a VARCHAR(?) , I don't know how it's long.For this I need a tool to see the record in PDB. 2006/8/7, Carmine Castiglia [EMAIL PROTECTED]: I am far from being an expert, but here is what I understand to be true:1) Palm database records are stored as simply a string of bytes.It isrelatively simple to separate the database into individual records. 2) Palm databases *do not* embed any information as to record structure.It is impossible to determine the structure of individual records otherthan through trial and error, also known as hacking or reverse engineering.Both of which may possibly be illegal in the UnitedStates, by the way.3) If the records consist of simple string data, reverse engineering maybe fairly easy.Using a tool such as PDBee to view a record which you know to contain certain data, you should be able to easily determine thenumber of string fields in use.4) If the records contain data in other forms, such as Integer or Floatfields, the process of reverse engineering becomes significantly more difficult, especially if you do not know in advance the exact contentsof at least one record.If the number of fields is small, reverseengineering may be possible; if the number of fields is large or you do not know the exact contents of at least one record in advance, the taskmay be virtually impossible.5) The individual records in a database do not necessarily all have thesame data layout.Yes, they probably do, but it is not a requirement and you cannot be certain without adequate testing and/or knowledge ofthe application which created the database. Carmine-Original Message-From: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]] On Behalf Of marco ronerSent: Monday, August 07, 2006 6:45 AMTo: Palm Developer Forum Subject: PalmDB structureI have a palm C application, that it stores data in a pdb , I have tosee the structure of the db for replicate it on my desktop computer(mysql db). there is a tool to do it? thanks marco--For information on using the PalmSource Developer Forums, or tounsubscribe, 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/
Re: Re: arm-prc-tools help
On 8/7/06, Hynek Sladky [EMAIL PROTECTED] wrote: No, I run make.exe from command line. BINGO. cygwin is a shell environment - you need to be within that shell in order to use anything that cygwin has to offer. all the paths to the compiler are within cygwin, not the msdos command line. try clicking on cygwin.bat and then acting like you under unix :) -- // Aaron Ardiri -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: arm-prc-tools help
The result is same as from win's prompt... many errors. The only thing that helps is when I copy arm-palmos\bin\as.exe to bin\as.exe I found now that there seems to be other more problem: after calling arm-palmos-gcc -nostartfiles -o name name.o it runs lib\gcc-lib\arm-palmos\3.3.1\collect2.exe and ends with illegal instruction in NTVDM CPU... I have no idea what NTVDM.exe is for and why it fails... I was using cygwin/prc-tools for long time, but for m68k only. Because it didn't work for ARM I installed new environment from Palm OS Developer suite (I use cygwin only) and added prc-tools-arm. Maybe the problem could be in wrong install steps??? Or something else? Thanks, Hynek Aaron Ardiri napsal(a): On 8/7/06, Hynek Sladky [EMAIL PROTECTED] wrote: No, I run make.exe from command line. BINGO. cygwin is a shell environment - you need to be within that shell in order to use anything that cygwin has to offer. all the paths to the compiler are within cygwin, not the msdos command line. try clicking on cygwin.bat and then acting like you under unix :) -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: Input box doesn't allow any keys, otherwise works: SOLUTION
My original message is below. For those searching the archives, I'm adding the solution to my problem. In the resource file, the field did not have the MAXCHARS attribute set. Apparently it defaults to zero, which is why it wouldn't let me type anything in. Changing the rcp file to read: FIELD ID 1001 AT (CENTER 16 152 AUTO) MAXCHARS 25 solved the problem. The code worked just fine. Cheers, Anders ///Original message/// I'm trying to get a simple pop-up window that gathers text. Everything seems to work, except that the dialog just beeps at me when I try to input any characters. And I can only _assume_ that the field-reading code is working (based on what I've read here and in the APIs), since I can't put in any text, can't really check if anything other than NULL comes back, right? ;) It seems like it should be straightforward... perhaps the field length issues? Thoughts? Thanks, Anders // source code #define RES_ID_INPUT_FIELD 1001 // pops up a simple dialog box, gets user text, and stores it void GetUserInput(char *pTitle, char* pInputStorage) { FormType* pDialogBox; char* pInputString; pDialogBox = FrmInitForm(RES_ID_POPUP_INPUT); FrmSetTitle (pDialogBox,pTitle); FrmSetFocus (pDialogBox,FrmGetObjectIndex(pDialogBox,RES_ID_INPUT_FIELD)); FrmDoDialog(pDialogBox); pInputString=FldGetTextPtr(FormGetObjectPtr(pDialogBox,RES_ID_INPUT_FIELD)); if(NULL!=pInputString) StrCopy(pInputStorage,pInputString); else pInputStorage[0]=0; FrmDeleteForm(pDialogBox); } // ///resource data: FORM ID RES_ID_POPUP_INPUT AT (2 108 156 50) MODAL BEGIN TITLE FIELD ID 1001 AT (CENTER 16 152 AUTO) BUTTON Done ID RES_ID_GENERIC_DONE_BUTTON AT (CENTER PrevTop+GENERIC_BUTTON_SPACING AUTO AUTO) NOGRAFFITISTATEINDICATOR END ( .) Anders Green ( -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Launch an other application in landscape mode
I'm writing a little utility to launch my GPS application. This utility is needed to: -clean the dbcache (a recurrent problem on Palm T5) -start the GPS application in landscape mode For the 2nd step, I tried to use the SysSetOrientation API. The screen rotates well in my utility but comes back to portrait when the GPS app is launched via SysUIAppSwitch. The mode is not forced by the GPS app because a manual change (click on control bar) is kept. It looks like an hidden SysSetOrientation(sysOrientationUser) call. So, I need help about these two options: a) does anybody know how to change the last user selected state? b) is it possible to programmatically click on the controlbar button to simulate the user action? (I didn't find how to get the correct button id...) -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: PalmSource registration fails
i had the same problem when i tried to register.In the email field, put ur company email instead of hotmail or so.Initially i put my hotmail email and it gave me an error, but once i registered using my university email it worked.Weird YusraFed up with spam in your inbox? Find out how to deal with junk e-mail here! -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Enquiry for handheld's OS
symbian os,window CE(packet PC),www.symbian.compython10 [EMAIL PROTECTED] wrote: Hi all,I wondering does any of you know what's the main advantages of Palm OS compare to other OS? (Regarding to programming usage). Or where can I find the useful information about the advantages and disadvantages (comparison) of different kind of OS? Cheers.Ryan.-- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ Send instant messages to your online friends http://uk.messenger.yahoo.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: what is correct way to detect how many sms messages are in inbox?
As far as I've seen, the built in APIs for getting at SMS data aren't very helpful. Different carriers install different SMS software on each phone, and they vary between devices as well. I've had to reverse engineer a number of different SMS database formats for my application, and I'm only targeting the Treo 650 right now. If anyone has had a better experience, I'd also be interested in hearing about it. Cheers, Gary Michal Seliga wrote: please..someone... builtin phone application shows correct number so it must be possible somehow... i just can't find out how Michal Seliga wrote: hi on treo650 i need to detect how many sms messages are in inbox when i use PhoneLib api to open database with sms messages for me (PhnLibGetDBRef) it opens database "SMS Messages2" of type DATA and creator SMS2 which is always empty i already found that messages are in fact stored in database called "Messages Database" with type MsDb and creator MsSt. is there any 'correct' way to get this information or must i open this database i found myself? i already found that there is a lot of records and not all of them are sms messages so i don't know how to get correct number from there. is this format documented somewhere? i also tried to use approach which was recommended for mail and sms messages (to use pmNotifyGetNewMsgCountFromHelper), it works for mail, i can't test it for mms at the moment, but for sms it returns always 0 so again no luck here i will be glad for any hint, because i am stuck with this... thanks in advance -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Emulator Sources?
[Doctor Nick] Hi everybody! [/Doctor Nick] So, I'm using the Palm Emulator 3.5 from PalmOS. That gives me the Palm 4.1.2 ROMs in debug and release forms, but that isn't a very wide selection, now is it? ;) What about emulators for Sony stuff, palm phones, SOMETHING that supports color, and so on? Where are they? Thanks everyone. :) Cheers, Anders ( .) Anders Green ( -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Emulator Sources?
For starters, you'll want to download the Garnet (PalmOS 5.x) simulators from palmsource.com. You can also download a number of interesting Treo simulators from pluggedin.palm.com. -Gary Anders Green wrote: [Doctor Nick] Hi everybody! [/Doctor Nick] So, I'm using the Palm Emulator 3.5 from PalmOS. That gives me the Palm 4.1.2 ROMs in debug and release forms, but that isn't a very wide selection, now is it? ;) What about emulators for Sony stuff, palm phones, SOMETHING that supports color, and so on? Where are they? Thanks everyone. :) Cheers, Anders ( .) Anders Green ( -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Launch an other application in landscape mode
hello, a) does anybody know how to change the last user selected state? yes but unless you want to go digging into StatusBar's globals you cannot do it b) is it possible to programmatically click on the controlbar button to simulate the user action? (I didn't find how to get the correct button id...) sure, just enque a penDown and a penUp there. -- Best Regards, Dmitry Grinberg Software Engineer, http://PalmPowerups.com (847) 226 9295 AIM: DmitryGrinberg MSN: [EMAIL PROTECTED] ICQ: 165589894 Y! IM: dmitrygr2003 -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Converting PDB to JPG
After hotsync the pictures are put into a folder in pdb file format... How can i convertthatpdb photofile from Palm to .jpg file? I need a way convert using my hotsync conduit.. Daniel -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/