Re: FldSetTextHandle()

2008-05-29 Thread ThuNguyet Nguyen
Hi Micheal, This is what I use, hope that helps, remember to free the memory when you go to the next form. tnn /***/ /* */ /* FUNCTION:

Re: How do I update memory

2008-05-29 Thread ThuNguyet Nguyen
Hi Jeff, I think you have to join what Palm calls the development Provider Solution (?). When Palm accept you as a member, it takes a while for them to send you the password. You use your email account (that you register with them) and the password they give you to log in. tnn Heather Tufts

re: Bitmap dimension

2008-05-28 Thread ThuNguyet Nguyen
Hi there, Using CW (IDE 4.01) how can I define the dimension of the bitmap? I can see Default PICT in the box but it is locked. Click on the bitmap window, then go to Contructor menu - option -set image size - you can change the size... tnn __

RE: Modules or projects? - multi segments

2008-05-28 Thread ThuNguyet Nguyen
I don't know how you do this in other compiler. With CW, it is very easy, just follow what this article says: http://oasis.palm.com/dev/kb/papers/1469.cfm hope this help. tnn You just need to enable the multiple segment, and the compiler will spilt the code to segments automatically! Not

Re: FrmGetFormPtr(), gadget ???

2008-05-28 Thread ThuNguyet Nguyen
Hi everyone, Richard, thank you so much for your respond, I use FrmGetObject*() that you show me and they work fine. FrmGetFormPtr() returns NULL (==0) if the specified form is not in memory. The form hasn't been loaded into memory when your code executes AppStart(). My stupid question,

FrmGetFormPtr(), gadget, PRC to Overlay?

2008-05-28 Thread ThuNguyet Nguyen
Hi everybody, I am learning to use PRC to Overlay tool in Palm. I have a form with 3 objects. I want to make an overlay PRC with just 2 objects. I get stuck because I don't know how to do this: 1. If I call FrmGetFormPtr() in AppStart(), it return 0. If I call FrmGetFormPtr() or

re:netsample for Palm OS 3.5

2008-05-28 Thread ThuNguyet Nguyen
From: Jaco Vis (view other messages by this author) Date: Thu, 19 Oct 2000 19:12:48 Anyone been able to port the 3.1 sample project Netsample to 3.5? The supplied OS 3.5 Netsample project does no longer contain the FTP portion, as the 3.1 version did. I have an application based on the

re:StrNCopy terminates with NULL?

2008-05-28 Thread ThuNguyet Nguyen
Hi, tmpstr = StrNCopy(tmpstr,lap-jobdata.fields[icustomer],24); FrmCopyLabel(frm,detailcustlabel,tmpstr); MemPtrFree(tmpstr); Does StrNCopy terminate the string with a NULL? All the data looks fine, tmpstr contains a truncated string as expected. I think that StrNCopy() works the same way as

What happens when user tab the silkscreen/hard buttons?

2008-05-28 Thread ThuNguyet Nguyen
Hi everyone, Please help me with these questions: 1. While my program is running, if the user tabs on the silkscreen buttons or the hard keys, does the FrmCloseEvent invoke? and the AppStop() will be called? 2. At a certain point in my program, I want to ignore anything the user tabs on the

Re:How to align a label in a table

2008-05-28 Thread ThuNguyet Nguyen
Hi there, How can I align the label to the left? I don't know if there is better way to do it. This is what I do, I make the table with 1 col and fill data in using WinDrawChars() I forgot where I took this code, must be in an example code. // Determine the length of text that will fit within

help, please!!!bugs in palm program

2008-05-28 Thread ThuNguyet Nguyen
Hi the experts, I am some bugs in my program but can not catch them and fix them. Please help me. I run the program the 1st time, inside the program, I get index out of range error. I have to reset the program. I run it the 2nd time, I get bus error, the program doesn't run. I have to delete

re: Differance between .pdb/.prc file and File Streams

2006-06-14 Thread ThuNguyet Nguyen
Hello there, In the Palm Doc section somewhere, you can find the File format document, which tells you the formats of different Palm files (PDB, PRC, PQA). Using the exchange manager, you can convert the resource database to .PRC file. You can also convert the record database to .PDB file. I

re: Help Regarding ExgDBWrite..

2006-06-09 Thread ThuNguyet Nguyen
1) Using ExgDBWrite to convert a database(currently Word to go file) in memory to stream format,writing the result to a file stream You could read this file stream and compare the raw data with the original database (.pdb, World to go file). If the data is correct, then the problem may be

re: Problem with list

2006-04-05 Thread ThuNguyet Nguyen
Hi there, How do you store the list in the db. I would store data in the db, when I want to show the data, I read from the db and display in the table. If I don't change/delete data, the data is still there in the db. If you could be a little bit more detail, may be someone could help. tnn --

re: How can I build a simple prc for weight calculations in the jet I fly?

2006-03-08 Thread ThuNguyet Nguyen
check out this http://anpeco.com/WinAPIS.html HTH tnn -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Handle incoming calls and other Palm events on a hi-res program?

2005-11-29 Thread ThuNguyet Nguyen
Hello there, In my program, I call WinSetCoordinateSystem(kCoordinatesDouble); and display graphic in high resolution (320x320 for Treo 650). When the program is running, if there is an incoming phone call, the screen is messed up, part of a message text box is showed in the top left quarter of

Re: Handle incoming calls and other Palm events on a hi-res program?

2005-11-29 Thread ThuNguyet Nguyen
Hi Ben, You should only switch to high resolution mode when you're actually doing your drawing, and you should switch back to standard resolution at all other times. At the least, make sure you're in standard before you exit from your event handler. My program is similar to the media player

re: Storage data without using ordinary database ways

2005-10-28 Thread ThuNguyet Nguyen
Hi there, I use file stream or put data in a binary file and load the bin file to the resource. File stream is actually palm database with 4K record each and each record has a header. You can read file stream using filestream API, and you get the data from a resource using DmGetResource and

OT-Job in Phillip Medical (NY)

2005-10-03 Thread ThuNguyet Nguyen
Hello there, I am sorry. I know it is very OT. I got this email. May be someone can use the information. tnn I work for Philips Medical and am in the process of finding candidates for a few different PalmOS related positions we have open in New York City. The group that is hiring is

re: what headers do I include to get IsFiveWayNavEvent()?

2005-09-30 Thread ThuNguyet Nguyen
It is defined in PalmNavigator.h or PalmOneNavigator.h HTH, tnn -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

re: Compiles but won't run

2005-09-29 Thread ThuNguyet Nguyen
Hi there, I didn't look very carefully the 2 files. I think, at least you miss this case in AppHandleEvent HTH, tnn You would need the prototype extern Boolean SecondaryFormHandleEvent(EventPtr eventP); static Boolean AppHandleEvent(EventType * eventP) { UInt16 formId; FormType *

re: Proper sequence for resizing record?

2005-09-27 Thread ThuNguyet Nguyen
I do, DmGetRecord check size, if insufficient DmResizeRecord ... DmWrite DmReleaseRecord and it works. tnn -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

re: Palm One Calendar Creator ID

2005-09-10 Thread ThuNguyet Nguyen
Hi there, I am using Tungsten T5 device (Palm OS 5.4). I need the creator ID of Calendar Application I think it is kPalmOneCreatorIDCalendar If you download the PIM header from PalmPlugin. You have info about Calendar, Task and Event applications. tnn -- For information on using the

reset message on Treo650 simulator, how to run simulator again?

2005-09-09 Thread ThuNguyet Nguyen
Hello all, I am using Treo 650 Sprint CDMA (build 6025) debug simulator on Win XP Pro. One time the simulator crashes, so I close it.When I open it again, I got the empty message screen with the buton Reset on it. I tab the reset button, nothing happens. I close the simulator and now,

RE: reset message on Treo650 simulator, how to run simulator again?

2005-09-09 Thread ThuNguyet Nguyen
Hello Aaron, I delete Palm\SimSlotDriverVolume and the simulator is working again. Thank you so so much. Somehow I managed to make the simulator not working on either my laptop and desktop and I was stuck. Thanks again. tnn -- For information on using the PalmSource Developer Forums, or to

re: Codewarrior/Table/MultipleColumns

2005-08-23 Thread ThuNguyet Nguyen
In the Contructor, If you click on Columm, then use Ctrl-K to add more columm (Ctrl-K to add more of the items...) HTH tnn -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

re: test .net app on the web with simulator?

2005-08-16 Thread ThuNguyet Nguyen
Can one use the simulator to connect to the web? Yes, I think so. I check on Settings - Communication - Redirect NetLib calls to Host TCP/IP HTH, tnn -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

re: table - why it changes when i press on it

2005-08-11 Thread ThuNguyet Nguyen
you wrote: I draw i table which is not editable. But every time pres on it, it starts to show some strange chars and it draws the line below the field... Why is that? You could set a breakpoint in the formHandleEvent to see where to code jumps to when you press on the table. Do you have

What is the 1st param in SysLibInstall( , ) ? How to use SysLibInstall()

2005-08-11 Thread ThuNguyet Nguyen
Hello everyone, First, I am sorry for the long email. I don't know how to write it shorter. I want to run my application from the send contact menu in the contact (address book app). I read the recipe in Palmsource about running the application from the send menu, The recipe said Begin quote

How can I run my application from the Send Contact menu of the Contact program ?

2005-08-05 Thread ThuNguyet Nguyen
Hello there, I am using CW 9.3 and writing a program for Treo 650. I try to run my application from the Send Contact/Send Task/Send Event menu of the PIM application. I would like to receive the PIM record and use it in my application also. Is there any way I can put my application in the list

re: Convert Int16 to UInt32?

2005-07-14 Thread ThuNguyet Nguyen
I believe you (that it works before and doesn't work now)... I think it should work. May be try to cast it. Int16 num_bytes_read; num_bytes_read = NetLibReceive(..); // If you need the variable new_buffer_size for anything then // do UInt32 new_buffer_size = (UInt32)num_bytes_read; //

re: Drawing bitmap from external card

2005-07-14 Thread ThuNguyet Nguyen
Hi there, Has anyone drawn a bitmap bigger than 64k from an external card before? I was able to get the image from the card and allocate enough memory for a MemPtr to hold it by using MemGluePtrNew. After casting the MemPtr as a BitmapPtr, I called WinDrawBitmap(someBitmap,0,0) in

re: Check which Graffiti 2 Version is running

2005-07-11 Thread ThuNguyet Nguyen
Hello, I don't know the answer of your question. I think may be you can have the list of devices which support Graffiti 2 and check which device the program is running on. Please post the answer when you know it. Thanks. tnn -- For information on using the PalmSource Developer Forums, or to

re: Need help to change system time

2005-07-11 Thread ThuNguyet Nguyen
Hello there, May be you use TimSetSeconds(). You can get the date time and use TimDateTimeToSeconds() to convert to the # of seconds then use TimSetSeconds(). HTH, tnn -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see

re: An application is closed, a blank screen is shown.

2005-05-20 Thread ThuNguyet Nguyen
You could try to queue an appStopEvent to exit your program. I call this function. HTH, tnn void ExitProgram() { EventType event; MemSet(event, sizeof(EventType), 0); event.data.frmLoad.formID = FrmGetActiveFormID(); event.eType = appStopEvent; / Get out on stop event.

re: How to get group of push ctl

2005-05-20 Thread ThuNguyet Nguyen
Hi there, I would think a quick and easy way is keeping a table (array) in your program. Since you make those push buttons, you know which group they belong to. Just wonder why you need the group number... tnn -- For information on using the PalmSource Developer Forums, or to unsubscribe,

Re: Multipleline Text Field

2003-11-26 Thread ThuNguyet Nguyen
Hi Marcel, You wrote: In the news group, I didn't find any messages about SetFieldText() or GetFieldText() yet. I will try to read the Memopad example, which is pretty long... :-) I do a search for setfieldtext on escribe and it found 86 matches, this is one of them

RE: Multipleline Text Field

2003-11-24 Thread ThuNguyet Nguyen
Hi there, In the memopad tutorial, there is some sample code on multi line text field with scroll bar. If you just need multiline text field without the scroll bar, (I am using CW, I don't know how to do it in Pilrc) In the contructor, you put a text field with the height = number of lines x 11,

Fail to connect the the real device for debugging.

2003-11-23 Thread ThuNguyet Nguyen
Hello all, I fail to debug my program using emulator/simulator, so I use the real Palm for debugging. It has been working OK until the last couple days, I tried to set up hotsync using bluetooth, now, I can't connect to the TT anymore. What should I do? should I do a hard reset on the TT? I am

Re: Timing out an application for inactivity (security feature)

2003-09-15 Thread ThuNguyet Nguyen
Hi there, I would like to timeout an application (exit the application) if the user has not accessed in a certain amount of time (say 5 minutes). I guess you would want to keep the time, everytime the user interacts with the program, update that time to the current time. On the mainloop,

Re: (newbie need help)My app doesn't return to the aplications screen (Home).

2003-09-12 Thread ThuNguyet Nguyen
Hi. In my app besides the main form, I have secondary forms where I choose certai elements. I jump from one form to another using FrmGotoForm(). When I open my app, if I don't go to any of the secondary forms, the app exits perfectly. However, if I jump from the main form to a secondary form

Re: Is there something wrong with this forum?

2003-09-08 Thread ThuNguyet Nguyen
Hi, I check the messages from escribe. At the bottom of the page, it said Downloading entire archives is a violation of eScribe's site usage policies. Any such attempts will result in your permanent restriction from accessing this site. In red. So, if you use escribe, may be you can't download

RE: Draw custom form title?

2003-08-28 Thread ThuNguyet Nguyen
Hi, You can use FrmSetTitle(). It overwrite the old title, so if it is shorter, the old one still shows. I have to fill it with space before I put the new title in, HTH, tnn Subject: Draw custom form title? Hi, How can I draw a custom form title? I want to draw part of the title with

RE: Draw custom form title?

2003-08-28 Thread ThuNguyet Nguyen
Yes, thank you for telling me. I forgot about that. tnn From: LionScribe (view other messages by this author) Date: Thu, 28 Aug 2003 09:12:20 You cannot use mixed fonts that way LionScribe

Re: Deleting files from Expansion card.

2003-08-28 Thread ThuNguyet Nguyen
Hi, Anyone know how to delete files from the expansion card. Can it only be done programmatically??? You can do that using the VFS manager. And this is the plus, Jeff Ishaq posts the link to the tutorial about VFS ... http://homepage.ntlworld.com/john.r.wells/VFS_Tut.htm HTH, tnn

Re: How to get IDs from Popup?

2003-08-25 Thread ThuNguyet Nguyen
Hi Ken, I just try to understand your question. Is there a new legal way to get the internal object ID's of a popup trigger? Getting a pointer to a trigger, and then referring to popupP-controlID and popupP-listID actually work, for the time being, but the emulator with a debug rom

Re: Bitmap PDB

2003-08-19 Thread ThuNguyet Nguyen
Hi Ken, 1. convert a windows bmp to a pdb 2. read and display the pdb from a prc I wrote a similar program before. I read the bitmap file format (MS site, search for BITMAPFILEHEADER or so), then I read about bitmap on the Palm in the Companion and SDKs. I also read about the format of the

Can I debug the program on the SD card?

2003-08-19 Thread ThuNguyet Nguyen
Hello all, I am writing a Palm program for the Tungstens and it works fine on the Internal memory but if I put it on the SD card and run it, I get the Fatal Alert saying MemoryMgr.c, Line:3564, NULL handle. Tapping on the Reset button in the Alert doesn't work, I have to do hard reset. I use

Re: Strange positioning problem with popup form

2003-08-19 Thread ThuNguyet Nguyen
Hi Mark, From: Mark Nudelman [EMAIL PROTECTED] Form A, a 160x160 form, is on screen. A menu item calls FrmPopupForm to bring up form B, which is a 160x103 form positioned near the bottom of the screen (it is positioned at 0,56). Everything works fine, except if I tap on the unobscured part

Re: Can I debug the program on the SD card?

2003-08-19 Thread ThuNguyet Nguyen
Hi Ben, From: Ben Combee (view other messages by this author) At 03:31 PM 8/19/2003, ThuNguyet Nguyen wrote: What does the OS do when we run a program from the SD card? After it copies your program off the card, your app gets a special sysAppLaunchCmdCardLaunch launch code which means I'm

Re: Programmatic Category creation

2003-08-12 Thread ThuNguyet Nguyen
Hi there, I am working on an application which wants to store data in the user's To-Do list, in a predetermined category. I can't find example code for how to programmatically create a Category which does not exist (if there's an open slot, otherwise use Unfiled), and to apply that new

Re: pdb file

2003-08-11 Thread ThuNguyet Nguyen
Hi there, Q1: pdb is a table or a database file?? pbd is the database file, record database file. prc is the resource database file. Q2: how can i access a pdb file in my palm application? ( how to use) Use the data manager functions. You need to open it, read / write and remember to close

RE: Very Persistant Problem

2003-07-30 Thread ThuNguyet Nguyen
Hi there, ... None of the events that relate directly to the two controls are being sent to the form handler ... Has anyone ever seen anything like this? No, it haven't happen to me. What I can think of is in the contructor, do you check to make sure the buttons are enable? May be you

Re: Newbie Database Questions

2003-07-29 Thread ThuNguyet Nguyen
Ahh, if anybody knows where can a copy an example of writing databases on palm, please give-me the link too. Too lazy to read your code You can get the CW 8 Demo from MW web site. The link is: http://www.metrowerks.com/MW/download/request.asp?action=dlproduct=PalmOSsubmit=Select+%3E%3E

RE: Simulator Directory

2003-07-28 Thread ThuNguyet Nguyen
Hi Jeff, My primary complaint was that the Simulator didn't provide an easy way to insert/remove (mount/unmount) the media, whereas the Emulator does. Please show me how to debug VFS using POSE. You mentioned before that we need the HostFS file to be installed on the POSE. I searched for it

Re: par or pdbmake for UNIX

2003-07-28 Thread ThuNguyet Nguyen
Unfortunately I haven't figured out par but pdbmake I've got working however it doesn't do null characters. (not that I could create anyway). I didn't use par or pdbMake but I did read the source code of pbdMake and learn to make the PBD file so I can make it myself the way I want it. The only

Re: Newbie Database Questions

2003-07-28 Thread ThuNguyet Nguyen
Hi there, When I started to learn Palm database, I tried the database sample in Palm Programming The Developer's Guide by O'Reily, then I tried MemoPad tutorial. I learned a lot from that. There is a lot of function calls to do each of the operation you want. Open the database get the data

Re: Newbie question: fopen

2003-07-28 Thread ThuNguyet Nguyen
Hi there, I wonder if I can use fopen calls in my code. No, I don't think so. To work with the file streams on the Internal memory, you can use the File Stream Manager To work with the files on the External memory, you can use VFS manager tnn __ Do you

Re: fldEnterEvent - Loss of field control

2003-07-24 Thread ThuNguyet Nguyen
I'm currently handling a fldEnterEvent for the only two editable fields in my form. May I ask why you have to handle fldEnterEvent. I think if you do whatever you need to do in fldEnterEvent and don't set the handle to true, then the system will do what it suppose to do with fldEnterEvent. tnn

Re: PalmOS Security Lockout Form

2003-07-11 Thread ThuNguyet Nguyen
Hi there, Our program has set programmatically the Power-off feature on the Auto-Lock Handled in the Security Lock Form. Whenever user enter our application at a particular form, say formB (where formA is the main screen) then power-off the palm. The palm will ask he/she to enter the

Re: Palm Simulator/Emulator Help

2003-07-09 Thread ThuNguyet Nguyen
Hi there, The emulator is able to load the library but it doesnt support sound APIs that are being called in my application program, where as the simulator, displays an error message that it couldnt find the required dll. I think both emulator and simulator don't support sound APIs. I have

Re: Need help using TblGetItemPtr - getting wrong data

2003-06-19 Thread ThuNguyet Nguyen
Hi there, I read your posts about TblSetItemPtr() and TblGetItemPtr(). Both of these functions are available on PalmOS 3.5 so you don't need to use tableP-items[row * tableP-numColumns + column].ptr I didn't use TblSetItemPtr() and IblGetItemPtr() before. I do use TblSetItemInt() and I always

Re: Dynamic popup list....not able to proceed

2003-06-13 Thread ThuNguyet Nguyen
Hi there, I skim thru your code from the last posts, I am not good at catching the bugs, so If you have CW 9, I can built a test program with dynamic popup list and you can try. tnn __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to

Re: 515 and console mode

2003-06-13 Thread ThuNguyet Nguyen
Hi there, putting the device in console mode (shortcut .. 2 and holding various scrollbuttons while doing a reset). I know that we do Shortcut Dot Dot Two to put the device in the Console mode but I haven't heard that holding various scrollbuttons while doing a reset put the device in the

Re: getting field text and padding

2003-06-10 Thread ThuNguyet Nguyen
Hi there, To get the text in the field, search the archives for textfield or SetFieldText(), GetFieldText(), FreeFieldText()... These functions are in almost every Palm books that I read. After you get the string from your text field, you can pad it with this function (no compiling and testing

Re: getting field text and padding

2003-06-10 Thread ThuNguyet Nguyen
Hi there, As I said, the input string must be at least maxlen+1 (which is 16). You overwrite every string. Char a[15] = 123456789; // should be Char a[16]; Char b[15] = 987654321; // Char b[16]; Char c[15] = 741852963; // Char c[16]; PadStringWithChar(a,15,' '); // maxlen = 15

Re: MsaTimeToSu

2003-06-04 Thread ThuNguyet Nguyen
Hi, Do i need to set each element of a MsaTime var in order to obtain the Sound Unit with MsaTimeToSu or can i just set the .frame element ? UInt32 startsu; MsaTime time = {0, 0, frame}; MsaTimeToSu(_msaRefNum, time, startsu); I set time.minute and time.second, I never use the time.frame.

RE: FrmHideObject not consistent?

2003-05-31 Thread ThuNguyet Nguyen
Hi Don, I apply the same code to yet another label object on the form, and for some reason, the FrmHideObject only clears a portion of the label field, leaving garbage (the old string) in roughly the last half. It's as if the WinEraseRectangle that (I'm guessing) is done inside FrmHideObject

Re:Hide cursor

2003-04-03 Thread ThuNguyet Nguyen
Need some help turning of the blinking cursor of an edit field: Can you use FrmSetFocus(FrmGetActiveForm(), noFocus); ? tnn __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com -- For

Re: Tungsten Issues?

2003-03-13 Thread ThuNguyet Nguyen
Hi Mike, I have tested this on the Emulator using 3.5 and 4.0 debug ROMS and don't see this problem. But for some reason on the Tungsten, when the application is launched, the screen just goes blank and then returns back to the launcher. I have a program that runs on Tungsten|T and it happens

Re:Stopping a Sound Stream using Sound Streaming API (PalmOS 5)

2003-03-11 Thread ThuNguyet Nguyen
Stopping a Sound Stream using Sound Streaming API (PalmOS 5) The problem which I am facing is - I have a stop button in the application which when pressed should stop the playing of sound.Basically when the stop button is pressed, I am calling an API of mp3 library which stops the playing of

Re: Draw a colored bitmap!

2003-02-28 Thread ThuNguyet Nguyen
Ben wrote: While you loaded the 8-bit image using the clipboard, did you paste it into a 1-bit bitmap? Did you setup a bitmap family in Constructor with a 8-bit family member? Did you paste into that? If you open your .rsrc file now, is the bitmap shown as 1-bit? And does he also need to

Re:Hide and Show bitmap object as other objects,and then, move it..

2003-02-28 Thread ThuNguyet Nguyen
I want to Show and Hide bitmap just as other object (label, for example) but it seems that the function FrmShowObject does not work. FrmShowObject always works for me. I hide/show bitmaps/graphic buttons. Let say I have 3 graphic buttons btn1, btn2, btn3. They are the same size and same

Re:Emulator that suports Memory Sticks?

2003-02-21 Thread ThuNguyet Nguyen
Hi there, As I remember, the Sony emulator for N710/N760 supports MF (supports VFS). When you create a section, you tell it the size (16, 32, 64, 128 ?), then you can drap whatever you want to put in the MS to folder MS128 (or MS64, etc...). It has been a while so I don't remember if the

Re:color labels or buttons?

2003-02-13 Thread ThuNguyet Nguyen
Hi Tina, Can I put two labels on one form -- one label text is red, and the other To draw a color text, I use the Win...() functions. I am sure there must be other way to do it. This is what I did: Save the draw state Save the font (if you want to change the font) Set your font Set the text

Re: FrmPopupForm???...

2003-02-13 Thread ThuNguyet Nguyen
Hi Dan, I remember people said st about FrmReturnToForm(0) before. (Search the forum for FrmReturnToForm :) ) So, I never use it. What I did is: Let say you are in FromA, you will show FormB (modal form), then you go back to FormA. I only use the pair FrmPopupForm() and FrmReturnToForm() for

Re: CW9, add segment 3 - Tungsten is frozen ...- Solved (to: Ben Combee)

2003-02-12 Thread ThuNguyet Nguyen
Hi Ben, I found out that all the strange things happened when I add another segment to my app because I drap my file with the PilotMain() function to the 2nd segment. I forgot that rule. My mistake. I fix it and it works OK now. Thanks again for your help and the help from MW tech support.

Re: Little Help, memory error

2003-02-11 Thread ThuNguyet Nguyen
Hi Al, This is the prototype of StrPrintF Int16 StrPrintF(Char *s, const Char* formatStr, ...); Do you forget to define the string that you will put your format string in (1st parameter). It should be big enough to hold the time string and the number of seconds, at least 14 characters, I

CW9, add segment 3 - Tungsten is frozen when I kill the debugger, why?

2003-02-10 Thread ThuNguyet Nguyen
Hi all, I am using CW9 on Win98. I debug my program on the real device (Tungsten). My program works fine until I add segment 3 to it then the program works fine in the debugger until I exit the program. At this time the palm still OK. When I kill the debugger, then the Tungsten resets and and

Re: CW9, add segment 3 - Tungsten is frozen when I kill the debugger, why?

2003-02-10 Thread ThuNguyet Nguyen
Hi Ben, I am using CW9 on Win98. I debug my program on the real device (Tungsten). My program works fine until I add segment 3 to it then the program works fine in the debugger until I exit the program. At this time the palm still OK. When I kill the debugger, then the Tungsten resets and and

Re:FrmPopupForm???...

2003-02-10 Thread ThuNguyet Nguyen
Hi Dan, What I did is In frmUpdateEvent, I call FrmDrawForm(), then do all the custom draw for your form after that. Sometimes, I have to erase the whole window, then draw the form, then do all the custom draw. Hope that helps. tnn __ Do you

Re:Fatal Exception - HELP

2003-01-28 Thread ThuNguyet Nguyen
Hi there, The problem is that the code below gives me a Fatal Exception. The problem that I am encountering is that this error is not consistant in any way. Some times it will happen when I input a number once, other times it takes 20 or more tries to break it. I suppose your function

How to detect when the side button (record button) on Tungsten T is released?

2003-01-24 Thread ThuNguyet Nguyen
keyDownEvent (vchdHard5, autoRepeatKeyMask). Please tell me which event I should get when the button is released. Thanks in advances. Thunguyet Nguyen __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com

Re:missing object in form

2002-11-26 Thread ThuNguyet Nguyen
missing object in form From: Max Bian (view other messages by this author) Date: Tue, 26 Nov 2002 08:00:57 Hello. I just picked up the palm programming again and I got a problem I cannot solve. Pose reported

Re:missing object in form

2002-11-26 Thread ThuNguyet Nguyen
Sorry for my last email, wrong key stroke :(( MyApp (2.0) called SysFatalAlert with the message: Form.c, Line:1762, Object #3401 in form #3600 is missing. I use Contructor to generate the UI of the program and if the form is XY00 then every object in the form will be XY??. So, for me, I think

Re:Tungsten Serial Comm

2002-11-18 Thread ThuNguyet Nguyen
Hi Matt, My company wrote an app for one of our clients that uses Serial communication. Now, someone is trying to use it with a tungsten and they say it's not working. Has anything changed in the Tungsten or Palm OS 5 that might affect this? Do you use old serial manager on your program? My

Re: How to get the size of palm free memory?, link to sample code

2002-11-18 Thread ThuNguyet Nguyen
Hi there, This is the link to the sample code from Palmsource.

Re: Sampled Sound on Tungsten: SOLVED

2002-11-05 Thread ThuNguyet Nguyen
Hi Daniel, Just a question : when you create a sound stream, are you using sndInt16 ( or sndInt16Big which is the same ) ? I was having the exact same problem, until I try to use sndInt16Little. I didn't get any answer on this one from Palm, but as it does not involve big changes in your code

sample sound on Tungsten T?

2002-11-04 Thread ThuNguyet Nguyen
Hi there, I'm trying to add voice recording and playback from a memory card to some applications using the OS5 sound API's. It appears that the buffer passed to the callback routines is not correct. It never changes even though audio is supposed to be double buffered, and whatever data is

[OT] trip to Europe

2002-08-02 Thread ThuNguyet Nguyen
Hi everyone, I am sorry for the very off topic question. Palm news groups are the only groups that I join. So, I have no place else to turn to. My sister plans to go to Europe with her friend next week for 3 weeks. Today, her friend called and said she couldn't make it. They don't have

Re: dynamic heap chunk corrupted when calling FldDrawField():SOLVED

2002-07-17 Thread ThuNguyet Nguyen
Hello Keith, Thank you so much for pointing out to me what happens. During a regular checkup, Palm OS Emulator determined that the dynamic heap chunk with header address 0x5058 got corrupted. The hOffset field of the chunk header did not reference a memory location within a master pointer

dynamic heap chunk corrupted when calling FldDrawField()

2002-07-16 Thread ThuNguyet Nguyen
); FldRecalculateField( pField, true ); if(bRedraw) FldDrawField( pField ); } } In the contrustor, the text field is set usable editable underline single line not dynamic size left justified max characters: 64 This is the function call Char authorstr[41] = Thunguyet nguyen; SetFieldText

RE: Transffer of the .PDB files...

2002-07-05 Thread ThuNguyet Nguyen
Hi there, I need know any manner of send a .PDB file to a Server via Socket. I tryed File Streaming API, but this not work, Do you know other manner ? Have you tried Exchange manager? I use that for transfering files between Palm and PC. Exchange manager converts between the file format on PC

RE: Transffer of the .PDB files...

2002-07-05 Thread ThuNguyet Nguyen
Hi Aaron, On Fri, 5 Jul 2002, ThuNguyet Nguyen wrote: I need know any manner of send a .PDB file to a Server via Socket. I tryed File Streaming API, but this not work, Do you know other manner ? Have you tried Exchange manager? I use that for transfering files between Palm and PC. Exchange

Re: Why LstGetSelection() doesn't return noListSelection? it works, thanksss.

2002-06-06 Thread ThuNguyet Nguyen
Hi John, When you initialize your list, did you use LstSetSelection() and initialize the selection to noListSelection? I didn't do it before. I do it now and it works fine. Thank you so much. tnn __ Do You Yahoo!? Yahoo! - Official partner of

Why LstGetSelection() doesn't return noListSelection? Please help

2002-06-04 Thread ThuNguyet Nguyen
Hello all, Please tell me what I do wrong. I am using CW 8 (update to 8.2) on the POSE ver 3.5 (m505 skin). I have a dialog form that has a popup trigger associated with a list. Content of the list is dynamically created inside the program. If user selects the 1st item in the list,

Re: digitizer problem ...

2002-05-28 Thread ThuNguyet Nguyen
Hi there, Does anybody face the problem as a digitizer problem occurred when our palm software installed. I have a similar problem. I have a Palm V and the digitizer doesn't work. I run the Welcome (build in) program to calibrate the screen again (or Pref - digitizer) and the Palm seems to

old and new serial mgr, SrmOpen() question.

2002-05-03 Thread ThuNguyet Nguyen
Hi all, When I use old serial manager, before beaming, I have to close the serial port and open it again after that. What do I have to do when I use new serial manager? Do I have to close the serial port, open it using the logical portID 'serPortIdPort' SrmOpen(serPortIrPort, baudrate,

Handle user events, please help.

2002-04-18 Thread ThuNguyet Nguyen
Hello all, In my Palm program, I have 5 forms A, B, C, D, E. The user can move between forms. The main loop is as below: static void AppEventLoop(void) { UInt16 error; EventType event; do { EvtGetEvent(event, evtWaitForever); if (! SysHandleEvent(event)) if (!

RE: Chunk overlocked.. any help ? (not that easy :-)

2002-04-16 Thread ThuNguyet Nguyen
Hi, As what Paul Gibson said, I suggest: TimSecondsToDateTime (TimGetSeconds (), dateTime); todayInt = ( ((Int32) dateTime.year-1904) 16) + ( ((Int32) dateTime.month) 8) + ((Int32) dateTime.day); // do you have the right number of records in the DB? if

  1   2   >