System Resources - Can they be viewed ?????
Hi everyone, I am working on creating a note view for my database record so that when user click on a record in my table, he/she will get to the Note View screen and be able to edit text, save or delete. This will be similar to the Note View in Address Book example provided by Palm. In the Address Book app., they use the system form New Note View with Note Field. I can find the definition in the file UIResouces.h, however, I DONT KNOW how I can view the resouces. I create a form and add a field for editing note in place in my app, however, it is not working yet. I wonder if it would be possible to view those system resources that the SDK examples use so I can compare with what I have? Any suggestions passed along are greatly appreciated. Thanks! = Best regards, Van Nguyen. __ Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.com/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Memory problem ????
, tempP, sizeof(UInt16)); tempP += sizeof(UInt16); MemMove(saleRecord-item, tempP, sizeof(UInt16)); tempP += sizeof(UInt16); MemMove(saleRecord-cost, tempP, sizeof(UInt16)); tempP += sizeof(UInt16); MemMove(saleRecord-disc, tempP, sizeof(UInt16)); tempP += sizeof(UInt16); MemMove(saleRecord-qua0, tempP, sizeof(Int16)); tempP += sizeof(Int16); MemMove(saleRecord-qua1, tempP, sizeof(Int16)); tempP += sizeof(Int16); MemMove(saleRecord-qua2, tempP, sizeof(Int16)); tempP += sizeof(Int16); MemMove(saleRecord-qua3, tempP, sizeof(Int16)); tempP += sizeof(Int16); MemMove(saleRecord-qua4, tempP, sizeof(Int16)); tempP += sizeof(Int16); MemMove(saleRecord-qua5, tempP, sizeof(UInt16)); tempP += sizeof(UInt16); MemMove(saleRecord-totalOrder, tempP, sizeof(UInt32)); tempP += sizeof(UInt32); MemMove(saleRecord-totalPurchase, tempP, sizeof(UInt32)); tempP += sizeof(UInt32); MemMove(nameFlag, tempP, sizeof(nameFlag)); tempP += sizeof(nameFlag); MemMove(addressFlag, tempP, sizeof(addressFlag)); tempP += sizeof(addressFlag); MemMove(companyFlag, tempP, sizeof(companyFlag)); tempP += sizeof(companyFlag); MemMove(noteFlag, tempP, sizeof(noteFlag)); tempP += sizeof(noteFlag); saleRecord-name = tempP; tempP += StrLen(tempP) + 1; saleRecord-address = tempP; tempP += StrLen(tempP) + 1; saleRecord-company = tempP; tempP += StrLen(tempP) + 1; if (noteFlag) { saleRecord-note = tempP; p += StrLen(p) + 1; } else saleRecord-note = NULL; } = Best regards, Van Nguyen. __ Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.com/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Scroll bar and Table
Greetings, My app. currently have a database which records are displayed in a table of 13 rows. When the app. runs, there should be more than 13 records exist in the database, and therefore, I am using Repeating Button at this point for scrolling up and down. I need to switch from Repeating Button to Scrollbar. Could someone who has the experience with this implementation help me with this? Any examples, or books references are greatly appreciated. Thanks. = Best regards, Van Nguyen. __ Do You Yahoo!? Get Yahoo! Mail Free email you can access from anywhere! http://mail.yahoo.com/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Audio capture and Playback
Greetings, You may want to check for this information at: www.pocketpyro.com. This company offers the capability of record and playback. Hope this helps ! = Best regards, Van Nguyen. __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Table problem OS 3.5
Pierre, I am not sure how you implement the drag and drop in your app. However, I think it would be helpful to you if you check out the Memo Pad example for 3.5 at function ListViewSelectMemo. This function allows users to drag a memo item and drop it else where in the table. Hope this helps ! Hi, I'm converting an app from OS 3.1 to OS 3.5. Everything was working perfectly on OS 3.1. But now, when drag a row in my table it just disappear ( select a row and drag the stylus to the next row) ? I really don't know what's going on... any idea ? Thanks, Pierre L. = Best regards, Van Nguyen. __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Problem with Emulator 3.0a7
Greetings everyone, I have upgraded to Palm OS 3.5 with Code Warrior Release 6.0 I am using the Emulator 3.0a7 with Rom image 3.5 EZ configured as Palm Vx, and Ram size 8192K to test my application. My program has called WinDrawLine(x1, y1, x2, y2) several places. x y are type Coord. My program crashes at the first call to WinDrawLine with an error message Bus Error at (address) WinDrawLine. Also, all of the WinDraw... functions don't draw anymore. My program works well with Emulator and Rom image version 3.3. I then try to use Emulator 3.0a7 with Rom image 3.5 Non EZ configured as Palm III and Ram size 8192K. I still got the same error. If I comment all the WinDrawLine, then the program works. I checked my #include and the paths to make sure that the file Window.h is included. It is. I have tried to look at Palm's documentations regarding OS 3.5, but I can't seem to find any clues. Could anyone with the experience please help me out? Your help is truly appreciated. Thanks ! = Best regards, Van Nguyen. __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Drag item from a table - URGENT
Hi everyone, I have a table which shows a list of records that I have in the database. I have to implement the table in such a way that user can drag any item on this table and drop it else where on the same table. The order is updated as soon as the item dropped. The List View of the Memo Pad example does this. However, I don't quite understand how this is done. Could anyone with the experience please help me ? Thanks a lot. = Best regards, Van Nguyen. __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Menu and command bar
Hi everyone, I have to implement a menu which will appear when user taps on the form's title also known as command bar if I am not mistaken. I read the examples from Palm OS 3.5 and not quite understand yet what the codes seem to do. Could someone with the experience please explain to me a little more? Thanks and I really appreciate all the help on this. = Best regards, Van Nguyen. __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Slider control
Greetings everyone, I am trying to use the slider control to implement a progress bar when my application plays a song. I couldn't find any documentation for this UI element in the SDK 3.5, nor from the knowledge base from the Palm OS website. If anyone have any information about the slider control, please help me. Thanks a lot! = Best regards, Van Nguyen. __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Progress bar
Greetings everyone, I am trying to implement a progress bar for my application. If you know any books or any examples that I can use as references, please point me to the right direction. Any suggestions would be appreciated. Thanks ! = Best regards, Van Nguyen. __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Edit Categories ..... Question - Please help
Hi, In my app I have implemented categories for my database records similar to Memo Pad. When I step through the Memo Pad code, I saw after the user create a new category, the code excute a function call ListViewUpdateDisplay (updateCode) which basically skip the code for this update and return false to the handle. I did the same thing in my app. However, when I exit the app and go back in, the new category just created disappears. I don't know if I have missed anything, but I follow the Memo Pad code pretty closely. Please help me with this. Thanks! = Best regards, Van Nguyen. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Edit Categories .... questions
Hi, In my app I have implemented categories for my database records similar to Memo Pad. When I step through the Memo Pad code, I saw after the user create a new category, the code excute a function call ListViewUpdateDisplay (updateCode) which basically skip the code for this update and return false to the handle. I did the same thing in my app. However, when I exit the app and go back in, the new category just created disappears. I don't know if I have missed anything, but I follow the Memo Pad code pretty closely. Please help me with this. Thanks! = Best regards, Van Nguyen. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: PROBLEM with TblSetCustomDrawProcedure
Ajit, I catch event tblSelect in my code as follows: case tblSelectEvent: // An entry in the table was selected. selectedSkinRec = TblGetItemInt((TablePtr)eventP-data.tblSelect.pTable, eventP-data.tblSelect.row, eventP-data.tblSelect.column); handled = true; break; I don't need to catch tblEnterEvent. Please clarify your explaination. I don't understand why this will make a difference because the row, and column in tblSelect event should be the new info for the record I selected and not the old info of the deleted record. I also set handle to true. Does it affect what happen when call TblSetCustomDrawProcedure ? Thanks for your help ! - Hi are u trapping TblSelect event or TblEnter event ? Regards Ajit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Van Nguyen Sent: Tuesday, February 27, 2001 3:15 AM To: Palm Developer Forum Subject: PROBLEM with TblSetCustomDrawProcedure Hi, I have TblSetCustomDrawProcedure (tableP, column0, MyFormDrawRecord); in my program. MyFormDrawRecord is the call back function define as follows static void MyFormDrawRecord(MemPtr tableP, Int16 row, Int16 column, RectanglePtr bounds) { Int16 textLen, width; Boolean fits; UInt16 recordNum = 0; FontID currFont; MemHandle recordH; Char recText[64]; Char tempstr[80]; SkinRec *p=NULL; Err err = 0; // Set the standard font. Save the current font. // It is a Pilot convention to not destroy the current font // but to save and restore it. currFont = FntSetFont (stdFont); // Get the record number that corresponds to the table item to draw. // The record number is stored in the "intValue" field of the item. recordNum = TblGetItemInt ((TablePtr)tableP, row, column);// PROBLEM HERE recordH = DmGetRecord(MyRefDB, recordNum);// need to release when done p = (SkinRec *)MemHandleLock(recordH); if (column == 0) { StrPrintF(tempstr,"%2d.",recordNum + 1); // Now draw the index of the record. WinDrawChars(tempstr, 3, bounds-topLeft.x, bounds-topLeft.y); StrCopy(recText, p-skinDBName); // Determine the length of text that will fit within the bounds. width = bounds-extent.x - 7; textLen = StrLen(recText); FntCharsInWidth(recText, width, textLen, fits); if (!fits) { WinDrawChars("...",3,bounds-topLeft.x + bounds-extent.x - 7,bounds-topLeft.y); } // Now draw the text from the record. WinDrawChars(recText, textLen, bounds-topLeft.x+15, bounds-topLeft.y); } // Unlock memory MemHandleUnlock(recordH); // Release the record and mark it NOT dirty DmReleaseRecord(MyRefDB, recordNum, false); // Restore the font. FntSetFont (currFont); } In my program I have a table which loads all the DB's names created for this app at start up. User can select any name and delete it from the table. Let's say I have 4 records: 1- DB1 // row 0, colum 0 2- DB2 // row1, " 3- DB3 // row2, " 4- DB4 // row3, " If I ever select the last record in this table -- DB4, delete it, and the select any other records, for instance, DB2, the the system calls the call back function, and passes in row = 3, column = 0 which is of DB4 (already deleted) into TblGetItemInt and returns recordnum = 3. DmGetRecord fails because record 3 is no long in the database. I am very surprised as why it does not pass in row = 1, column = 0 for DB2 I just selected. Since I don't have control over what the system passes in for row and column to my call back function, I don't know how to fix it. I wonder how, where, and when it gets this data? After I delete a record, I call a function to reload the table, and also call TblRedrawTable. There is no problem if I delete other records, and not the last one, or after I delete the last one, go to another form, then come back and select another record, then everything works. Has anyone seen this before? Any help or suggestions you can pass along very much appreciated. Please help me! Thanks! = Best regards, Van Nguyen. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Problem with TblSetCustomDrawProcedure
Hi, I have TblSetCustomDrawProcedure (tableP, column0, MyFormDrawRecord); in my program. MyFormDrawRecord is the call back function define as follows static void MyFormDrawRecord(MemPtr tableP, Int16 row, Int16 column, RectanglePtr bounds) { Int16 textLen, width; Boolean fits; UInt16 recordNum = 0; FontID currFont; MemHandle recordH; Char recText[64]; Char tempstr[80]; SkinRec *p=NULL; Err err = 0; // Set the standard font. Save the current font. // It is a Pilot convention to not destroy the current font // but to save and restore it. currFont = FntSetFont (stdFont); // Get the record number that corresponds to the table item to draw. // The record number is stored in the "intValue" field of the item. recordNum = TblGetItemInt ((TablePtr)tableP, row, column);// PROBLEM HERE recordH = DmGetRecord(MyRefDB, recordNum);// need to release when done p = (SkinRec *)MemHandleLock(recordH); if (column == 0) { StrPrintF(tempstr,"%2d.",recordNum + 1); // Now draw the index of the record. WinDrawChars(tempstr, 3, bounds-topLeft.x, bounds-topLeft.y); StrCopy(recText, p-skinDBName); // Determine the length of text that will fit within the bounds. width = bounds-extent.x - 7; textLen = StrLen(recText); FntCharsInWidth(recText, width, textLen, fits); if (!fits) { WinDrawChars("...",3,bounds-topLeft.x + bounds-extent.x - 7,bounds-topLeft.y); } // Now draw the text from the record. WinDrawChars(recText, textLen, bounds-topLeft.x+15, bounds-topLeft.y); } // Unlock memory MemHandleUnlock(recordH); // Release the record and mark it NOT dirty DmReleaseRecord(MyRefDB, recordNum, false); // Restore the font. FntSetFont (currFont); } In my program I have a table which loads all the DB's names created for this app at start up. User can select any name and delete it from the table. Let's say I have 4 records: 1- DB1 // row 0, colum 0 2- DB2 // row1, " 3- DB3 // row2, " 4- DB4 // row3, " If I ever select the last record in this table -- DB4, delete it, and the select any other records, for instance, DB2, the the system calls the call back function, and passes in row = 3, column = 0 which is of DB4 (already deleted) into TblGetItemInt and returns recordnum = 3. DmGetRecord fails because record 3 is no long in the database. I am very surprised as why it does not pass in row = 1, column = 0 for DB2 I just selected. Since I don't have control over what the system passes in for row and column to my call back function, I don't know how to fix it. I wonder how, where, and when it gets this data? After I delete a record, I call a function to reload the table, and also call TblRedrawTable. There is no problem if I delete other records, and not the last one, or after I delete the last one, go to another form, then come back and select another record, then everything works. Has anyone seen this before? Any help or suggestions you can pass along very much appreciated. Please help me! Thanks! = Best regards, Van Nguyen. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
PROBLEM with TblSetCustomDrawProcedure - Please help!
Hi, I have TblSetCustomDrawProcedure (tableP, column0, MyFormDrawRecord); in my program. MyFormDrawRecord is the call back function define as follows static void MyFormDrawRecord(MemPtr tableP, Int16 row, Int16 column, RectanglePtr bounds) { Int16 textLen, width; Boolean fits; UInt16 recordNum = 0; FontID currFont; MemHandle recordH; Char recText[64]; Char tempstr[80]; SkinRec *p=NULL; Err err = 0; // Set the standard font. Save the current font. // It is a Pilot convention to not destroy the current font // but to save and restore it. currFont = FntSetFont (stdFont); // Get the record number that corresponds to the table item to draw. // The record number is stored in the "intValue" field of the item. recordNum = TblGetItemInt ((TablePtr)tableP, row, column);// PROBLEM HERE recordH = DmGetRecord(MyRefDB, recordNum);// need to release when done p = (SkinRec *)MemHandleLock(recordH); if (column == 0) { StrPrintF(tempstr,"%2d.",recordNum + 1); // Now draw the index of the record. WinDrawChars(tempstr, 3, bounds-topLeft.x, bounds-topLeft.y); StrCopy(recText, p-skinDBName); // Determine the length of text that will fit within the bounds. width = bounds-extent.x - 7; textLen = StrLen(recText); FntCharsInWidth(recText, width, textLen, fits); if (!fits) { WinDrawChars("...",3,bounds-topLeft.x + bounds-extent.x - 7,bounds-topLeft.y); } // Now draw the text from the record. WinDrawChars(recText, textLen, bounds-topLeft.x+15, bounds-topLeft.y); } // Unlock memory MemHandleUnlock(recordH); // Release the record and mark it NOT dirty DmReleaseRecord(MyRefDB, recordNum, false); // Restore the font. FntSetFont (currFont); } In my program I have a table which loads all the DB's names created for this app at start up. User can select any name and delete it from the table. Let's say I have 4 records: 1- DB1 // row 0, colum 0 2- DB2 // row1, " 3- DB3 // row2, " 4- DB4 // row3, " If I ever select the last record in this table -- DB4, delete it, and the select any other records, for instance, DB2, the the system calls the call back function, and passes in row = 3, column = 0 which is of DB4 (already deleted) into TblGetItemInt and returns recordnum = 3. DmGetRecord fails because record 3 is no long in the database. I am very surprised as why it does not pass in row = 1, column = 0 for DB2 I just selected. Since I don't have control over what the system passes in for row and column to my call back function, I don't know how to fix it. I wonder how, where, and when it gets this data? After I delete a record, I call a function to reload the table, and also call TblRedrawTable. There is no problem if I delete other records, and not the last one, or after I delete the last one, go to another form, then come back and select another record, then everything works. Has anyone seen this before? Any help or suggestions you can pass along very much appreciated. Please help me! Thanks! = Best regards, Van Nguyen. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
PROBLEM with TblSetCustomDrawProcedure
Hi, I have TblSetCustomDrawProcedure (tableP, column0, MyFormDrawRecord); in my program. MyFormDrawRecord is the call back function define as follows static void MyFormDrawRecord(MemPtr tableP, Int16 row, Int16 column, RectanglePtr bounds) { Int16 textLen, width; Boolean fits; UInt16 recordNum = 0; FontID currFont; MemHandle recordH; Char recText[64]; Char tempstr[80]; SkinRec *p=NULL; Err err = 0; // Set the standard font. Save the current font. // It is a Pilot convention to not destroy the current font // but to save and restore it. currFont = FntSetFont (stdFont); // Get the record number that corresponds to the table item to draw. // The record number is stored in the "intValue" field of the item. recordNum = TblGetItemInt ((TablePtr)tableP, row, column);// PROBLEM HERE recordH = DmGetRecord(MyRefDB, recordNum);// need to release when done p = (SkinRec *)MemHandleLock(recordH); if (column == 0) { StrPrintF(tempstr,"%2d.",recordNum + 1); // Now draw the index of the record. WinDrawChars(tempstr, 3, bounds-topLeft.x, bounds-topLeft.y); StrCopy(recText, p-skinDBName); // Determine the length of text that will fit within the bounds. width = bounds-extent.x - 7; textLen = StrLen(recText); FntCharsInWidth(recText, width, textLen, fits); if (!fits) { WinDrawChars("...",3,bounds-topLeft.x + bounds-extent.x - 7,bounds-topLeft.y); } // Now draw the text from the record. WinDrawChars(recText, textLen, bounds-topLeft.x+15, bounds-topLeft.y); } // Unlock memory MemHandleUnlock(recordH); // Release the record and mark it NOT dirty DmReleaseRecord(MyRefDB, recordNum, false); // Restore the font. FntSetFont (currFont); } In my program I have a table which loads all the DB's names created for this app at start up. User can select any name and delete it from the table. Let's say I have 4 records: 1- DB1 // row 0, colum 0 2- DB2 // row1, " 3- DB3 // row2, " 4- DB4 // row3, " If I ever select the last record in this table -- DB4, delete it, and the select any other records, for instance, DB2, the the system calls the call back function, and passes in row = 3, column = 0 which is of DB4 (already deleted) into TblGetItemInt and returns recordnum = 3. DmGetRecord fails because record 3 is no long in the database. I am very surprised as why it does not pass in row = 1, column = 0 for DB2 I just selected. Since I don't have control over what the system passes in for row and column to my call back function, I don't know how to fix it. I wonder how, where, and when it gets this data? After I delete a record, I call a function to reload the table, and also call TblRedrawTable. There is no problem if I delete other records, and not the last one, or after I delete the last one, go to another form, then come back and select another record, then everything works. Has anyone seen this before? Any help or suggestions you can pass along very much appreciated. Please help me! Thanks! = Best regards, Van Nguyen. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Field Attributes
Hi everyone, I use a field in my app. It is set for Editable, Visible, and not set for Single Line in Constructor. When I debug my app at start up, the field is initialized and I set attribute "hasFocus = true" for this field. However, the field's attributes do not get set to what I describe. Editable = 0, Visible = 0, hasFocus = 0, singleLine = 1 although I make sure these are set correctly. Would you have any ideas as why it happens this way? Thanks! = Best regards, Van Nguyen. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: FldGrabFocus PROBLEM
Greetings, Thanks to Aaron and Ben for the quick response and your suggestions. First, I have tried to redraw the field and call FrmSetFocus, but the cursor does not appear. Second, I insert the text from the serial port to the field directly by changing the handle, not using FldInsert. Here is the code that I use: void SetFieldText(UInt16 nFieldID, const Char * pSrcText, Int16 nMaxSize, Boolean bRedraw) { MemHandle hFieldText; Char * pFieldText; FieldPtr pField; Int16 len; UInt32 curSize; Err err = 0; pField = (FieldPtr)GetObjectPtr(nFieldID); if(!pField) return; hFieldText = FldGetTextHandle(pField); if(!hFieldText) { hFieldText = MemHandleNew(nMaxSize); // If already allocated, make sure it can handle nMaxSize already. // If not, realloc that buffer } else { curSize = MemHandleSize(hFieldText); if(curSize nMaxSize) { //err = MemHandleResize(hFieldText, nMaxSize); Problem here FreeFieldText(nFieldID); // These 2 lines are added for temporary fix hFieldText = MemHandleNew(nMaxSize); } } if( hFieldText ) { len = StrLen(pSrcText); pFieldText = (Char *)MemHandleLock(hFieldText); if (len nMaxSize) { StrNCopy( pFieldText, pSrcText, nMaxSize-1); pFieldText[nMaxSize-1] = nullChr; } else { StrCopy(pFieldText, pSrcText); } MemHandleUnlock(hFieldText); FldSetTextHandle(pField,(MemHandle)hFieldText); FldSetTextAllocatedSize(pField,nMaxSize); //FldSetMaxChars( pField, nMaxSize-1); // Not set it here because subsequent text with longer size will // cause crash FldRecalculateField( pField, true ); if(bRedraw) FldDrawField( pField ); } } .. After the last character displayed, I do this FldDrawField((FieldPtr)GetObjectPtr(PyroTerminalCommandField)); FrmSetFocus(frmP, FrmGetObjectIndex(frmP, PyroTerminalCommandField)); But the cursor is nowhere to be found. Please pass along any suggestions I may try. Thank you very much. __ Ben wrote: Are you adding your text from the serial port to the field by directly changing the text handle or by using FldInsert? The second method could leave your cursor off screen if the text is large enough. You may want to move the cursor back to the beginning of the field. -- Ben Combee Veriprise Wireless http://www.veriprise.com Aaron wrote: hmm.. i got bored.. so i dug into the docs for you :) first of all, the docs recommend that you call FrmSetFocus() instead of FldGrabFocus(), and i quote: "You rarely need to call this function directly. Instead, use FrmSetFocus, which calls FldGrabFocus for you." maybe FrmSetFocus() is going something extra, and by calling it directly - you might be missing something :) i have always used FrmSetFocus() without any problems - good luck. // az [EMAIL PROTECTED] = Best regards, Van Nguyen. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Bus Error AFTER killing running app in debugging mode - Please help !!!!!
Greetings, I am using CW6 and Emulator 3.0a8 with palmos351-en-m100-dbg.rom file to run and debug my application. I know that I must have done something incorrectly in my program because I got a bus error right after I kill the running app. The error dialog comes up with Debug, Reset options. However, I can not click on Debug because it is really no program there anymore for me to see where this happens. I have read the archive from the forum, and have tried some of the recommendations such as - Check the string declaration ... give rooms for it - Make sure to call the FrmDrawForm function first - Make sure that strings are null-terminated - Look at CtlSetLabel as someone suggested I still have the "Bus Error" problem right after I killed the program. I do not really know what to do because there is really nothing to debug after this point. I also rearrange my code, add more segments to make sure that I don't exceed the jump limitation. This does not help. There is only 1 function in my code considered long, I split that, then the problem goes away. However, if I add 3 more lines of code in the program, then the bug happens again. Would you have suggestions that I can try? I really appreciate any information you can pass along. Thank you! = Best regards, Van Nguyen. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re:Bus Error AFTER killing running app in debug mode - Please help !!!!
Greetings, Keith, thank you for your quick response. I have tried to process the "sysAppLaunchCmdSystemReset" in my app, but I still get the same bus error after I kill the program. I do have code that cleans up when the program exit. - All the opened forms, and opened databases are closed. - All dynamic memory allocations are freed. - Preferences are saved. The program runs fine, and exits gracefully on the Palm device and on the Emulator as long as we are not debugging. If you think of something else that I should have done to fix this, please let me know. Thanks ! -- If it's right after killing your application the the device is rebooting, then perhaps the problem is because your application is not correctly handling the "reset" launch code sent to applications at that time. -- Keith Van Nguyen [EMAIL PROTECTED] on 02/09/2001 01:10:57 PM Please respond to "Palm Developer Forum" [EMAIL PROTECTED] Sent by: Van Nguyen [EMAIL PROTECTED] To: "Palm Developer Forum" [EMAIL PROTECTED] cc:(Keith Rollin/US/PALM) Subject: "Bus Error" AFTER killing running app in debugging mode - Please help ! Greetings, I am using CW6 and Emulator 3.0a8 with palmos351-en-m100-dbg.rom file to run and debug my application. I know that I must have done something incorrectly in my program because I got a bus error right after I kill the running app. The error dialog comes up with Debug, Reset options. However, I can not click on Debug because it is really no program there anymore for me to see where this happens. I have read the archive from the forum, and have tried some of the recommendations such as - Check the string declaration ... give rooms for it - Make sure to call the FrmDrawForm function first - Make sure that strings are null-terminated - Look at CtlSetLabel as someone suggested I still have the "Bus Error" problem right after I killed the program. I do not really know what to do because there is really nothing to debug after this point. I also rearrange my code, add more segments to make sure that I don't exceed the jump limitation. This does not help. There is only 1 function in my code considered long, I split that, then the problem goes away. However, if I add 3 more lines of code in the program, then the bug happens again. Would you have suggestions that I can try? I really appreciate any information you can pass along. Thank you! = Best regards, Van Nguyen. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Insert COMPILER TIME into the program
Greetings, I'd like to insert the time stamp and the date that I compiled the app into my program so that I can display on a label in my About form. I cannot use the time functions in the SDK because it only display the current date and current time when the app runs. Would you know of any way that I can do this? Thank you in advance for any information you can pass along. = Best regards, Van Nguyen. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Bus Error After Kill Running Program
Greetings, I am using CW V4.0.1 and Emulator 3.0a8 with palmos351-en-m100-dbg.rom file to run and debug my application. I know that I must have done something incorrectly in my program because I got a bus error right after I kill the running app. The error dialog comes up with Debug, Reset options. However, I can not click on Debug because it is really no program there anymore for me to see where this happens. I have read the archive from the forum, and have tried some of the recommendations such as - Check the string declaration ... give rooms for it - Make sure to call the FrmDrawForm function first - Make sure that strings are null-terminated - Look at CtlSetLabel as someone suggested I still have the "Bus Error" problem right after I killed the program. I do not really know what to do because there is really nothing to debug after this point. Would you have suggestions that I can try? I really appreciate any information you can pass along. Thank you! Best regards, Van Nguyen. = Best regards, Van Nguyen. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Maximum number of menu items
Greetings everyone, Please let me know if there is a maximum number of menu items. In my program, I add menu items dynamically. There are only 12 items visible. If I add the 13th one, then the text is cut off, but I am able to execute the menu command when I click on the partial text. Would there be anyway that I can have the menu items scroll just like the list if the list items grows big? Thank you for any information you can pass along/ Best regards, Van Nguyen. = Best regards, Van Nguyen. __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Problem beaming entire database
Greetings, I have a Beam button which launches the beam process of databases (.prc) for my application to another Palm. I follow the code samples from the Pam Developer Knowledge Base very closely (Beaming the whold database). However, I got an error message "Could not initialize libary" with an error number = 0x1502 (exgErrStackInit // Stack could not initialized ). This error occured right at the call to ExgPut(exgSocket). I have gone through the forum's archive and did a soft reset like what Danny Epstein suggested on both Palms (email: mysterious ExgMgr problem, and others ...). This does not solve the problem. Could anyone please tell me what I did wrong? Is there anything that I have to do with the lauch code in my PilotMain? Thanks in advance for your answer. = Best regards, Van Nguyen. __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Circular scrolling of a table
Hi everyone, My app. has a table which is used to load database records into. I used repeating buttons to scroll up or down. When I reach the first record, up button is disabled, and when I reach the bottom record, down button is disabled which is good and normal. However, I would like to have this table SCROLL CIRCULARLY which means if I reach the last record, then I will be able to scroll to the first record again or if I hit the first record, then I can go to the last record without having the button disabled. I would like to know if anybody has done this before? If you have, or know some documents which outline the way, please point me to the right direction. Thank you very much for your help. = Best regards, Van Nguyen. __ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Memory problem ????
Int16); MemMove(saleRecord-style, tempP, sizeof(UInt16)); tempP += sizeof(UInt16); MemMove(saleRecord-item, tempP, sizeof(UInt16)); tempP += sizeof(UInt16); MemMove(saleRecord-cost, tempP, sizeof(UInt16)); tempP += sizeof(UInt16); MemMove(saleRecord-disc, tempP, sizeof(UInt16)); tempP += sizeof(UInt16); MemMove(saleRecord-qua0, tempP, sizeof(Int16)); tempP += sizeof(Int16); MemMove(saleRecord-qua1, tempP, sizeof(Int16)); tempP += sizeof(Int16); MemMove(saleRecord-qua2, tempP, sizeof(Int16)); tempP += sizeof(Int16); MemMove(saleRecord-qua3, tempP, sizeof(Int16)); tempP += sizeof(Int16); MemMove(saleRecord-qua4, tempP, sizeof(Int16)); tempP += sizeof(Int16); MemMove(saleRecord-qua5, tempP, sizeof(UInt16)); tempP += sizeof(UInt16); MemMove(saleRecord-totalOrder, tempP, sizeof(UInt32)); tempP += sizeof(UInt32); MemMove(saleRecord-totalPurchase, tempP, sizeof(UInt32)); tempP += sizeof(UInt32); MemMove(nameFlag, tempP, sizeof(nameFlag)); tempP += sizeof(nameFlag); MemMove(addressFlag, tempP, sizeof(addressFlag)); tempP += sizeof(addressFlag); MemMove(companyFlag, tempP, sizeof(companyFlag)); tempP += sizeof(companyFlag); MemMove(noteFlag, tempP, sizeof(noteFlag)); tempP += sizeof(noteFlag); saleRecord-name = tempP; tempP += StrLen(tempP) + 1; saleRecord-address = tempP; tempP += StrLen(tempP) + 1; saleRecord-company = tempP; tempP += StrLen(tempP) + 1; if (noteFlag) { saleRecord-note = tempP; p += StrLen(p) + 1; } else saleRecord-note = NULL; } = Best regards, Van Nguyen. __ Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
System Resources - Can they be viewed ?????
Hi everyone, I am working on creating a note view for my database record so that when user click on a record in my table, he/she will get to the Note View screen and be able to edit text, save or delete. This will be similar to the Note View in Address Book example provided by Palm. In the Address Book app., they use the system form New Note View with Note Field. I can find the definition in the file UIResouces.h, however, I DON"T KNOW how I can view the resouces. I create a form and add a field for editing note in place in my app, however, it is not working yet. I wonder if it would be possible to view those system resources that the SDK examples use so I can compare with what I have? Any suggestions passed along are greatly appreciated. Thanks! = Best regards, Van Nguyen. __ Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Table problem OS 3.5
Pierre, I am not sure how you implement the drag and drop in your app. However, I think it would be helpful to you if you check out the Memo Pad example for 3.5 at function ListViewSelectMemo. This function allows users to drag a memo item and drop it else where in the table. Hope this helps ! Hi, I'm converting an app from OS 3.1 to OS 3.5. Everything was working perfectly on OS 3.1. But now, when "drag" a row in my table it just disappear ( select a row and drag the stylus to the next row) ? I really don't know what's going on... any idea ? Thanks, Pierre L. = Best regards, Van Nguyen. __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Audio capture and Playback
Greetings, You may want to check for this information at: www.pocketpyro.com. This company offers the capability of record and playback. Hope this helps ! = Best regards, Van Nguyen. __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Problem with Emulator 3.0a7
Greetings everyone, I have upgraded to Palm OS 3.5 with Code Warrior Release 6.0 I am using the Emulator 3.0a7 with Rom image 3.5 EZ configured as Palm Vx, and Ram size 8192K to test my application. My program has called WinDrawLine(x1, y1, x2, y2) several places. x y are type Coord. My program crashes at the first call to WinDrawLine with an error message "Bus Error at (address) WinDrawLine". Also, all of the WinDraw... functions don't draw anymore. My program works well with Emulator and Rom image version 3.3. I then try to use Emulator 3.0a7 with Rom image 3.5 Non EZ configured as Palm III and Ram size 8192K. I still got the same error. If I comment all the WinDrawLine, then the program works. I checked my #include and the paths to make sure that the file Window.h is included. It is. I have tried to look at Palm's documentations regarding OS 3.5, but I can't seem to find any clues. Could anyone with the experience please help me out? Your help is truly appreciated. Thanks ! = Best regards, Van Nguyen. __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Drag item from a table - URGENT
Hi everyone, I have a table which shows a list of records that I have in the database. I have to implement the table in such a way that user can drag any item on this table and drop it else where on the same table. The order is updated as soon as the item dropped. The List View of the Memo Pad example does this. However, I don't quite understand how this is done. Could anyone with the experience please help me ? Thanks a lot. = Best regards, Van Nguyen. __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Menu and command bar
Hi everyone, I have to implement a menu which will appear when user taps on the form's title also known as command bar if I am not mistaken. I read the examples from Palm OS 3.5 and not quite understand yet what the codes seem to do. Could someone with the experience please explain to me a little more? Thanks and I really appreciate all the help on this. = Best regards, Van Nguyen. __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Slider control
Greetings everyone, I am trying to use the slider control to implement a progress bar when my application plays a song. I couldn't find any documentation for this UI element in the SDK 3.5, nor from the knowledge base from the Palm OS website. If anyone have any information about the slider control, please help me. Thanks a lot! = Best regards, Van Nguyen. __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Scroll bar and Table
Greetings, My app. currently have a database which records are displayed in a table of 13 rows. When the app. runs, there should be more than 13 records exist in the database, and therefore, I am using Repeating Button at this point for scrolling up and down. I need to switch from Repeating Button to Scrollbar. Could someone who has the experience with this implementation help me with this? Any examples, or books references are greatly appreciated. Thanks. = Best regards, Van Nguyen. __ Do You Yahoo!? Get Yahoo! Mail Free email you can access from anywhere! http://mail.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/