Re: How to successfully change Control text repeatedly?

2002-12-01 Thread Henk Jonas
Why do you verify it? You assume, that something behind sizeof(ControlType) is the actual label store. You prevent further OS versions from growing the ControlType structure. But I can't see a reason for this check. Henk DeVon Fowler wrote: I'm trying to change the text repeatedly for various

Re: warning: enumeration value "x" not handled in switch

2002-12-01 Thread Henk Jonas
Paul, Paul wrote: However your comment about "Moving the assignment of false to handled into the default: case will keep the same bytecount, and improve performance" seems to invite bugs. If someone writes a new case label and forgets to set "handled" you'll have a problem with the return code b

Re: Multisegment wrestling...

2002-12-01 Thread Henk Jonas
Hi kcorey, I do not have problems to call globals from the default segment in my multi segment apps. Even if I usually try to organize them in a way that their scope only lies inside one source file. And then I use set or get function to change them. Henk kcorey wrote: [...] interested in rea

Re: problems in MW tutorial for Palm Errand

2002-12-01 Thread mouse
Also, i dicovered another problem: if i choose "Fri"to add a piece of event,but i actually do the follows: 1.i enter a letter 'a' in the text filed; 2.then,i clear it 3.i push "Save day"button the OS pop up a window show"Friday's errands have been saved to the database".But i actully did not add a

Re: problems in MW tutorial for Palm Errand

2002-12-01 Thread mouse
Well, in chapter 11,when i run the Errand app on the 3.5 simulator-dbg,i choose the "view" button, it represents the "View Errands "form,when i click my mouse on "Wed",it surely was highlighted;then, i choose "Mon",both of the buttons "Wed"and "Mon"are highlighted.The same with "Wed"and other weekd

RE: problems in MW tutorial for Palm Errand

2002-12-01 Thread Jon Blackman
I just finished chapters 11 and 12 just this momement and all was fine. What seems to be the problem? (Using CW 8.0 demo and 3.5 emulator.) Jon has anybody notice that there r a few bugs in the example under MW tutorial for Palm OS ->Errand? From about Chapter 11 there turns to be some bugs.And s

problems in MW tutorial for Palm Errand

2002-12-01 Thread mouse
Hi,all has anybody notice that there r a few bugs in the example under MW tutorial for Palm OS ->Errand? From about Chapter 11 there turns to be some bugs.And so, the final project has more bugs. I used a OS 3.5 emulator,the app dosen't go the way as expected! -- For information on using the Pa

Re: How to get current battery capability?

2002-12-01 Thread Miken
HI,Brian Smith,Thanks Are you use symbol modem for handspring visor?My customer don't know English,and when modem battery is low,it will pop up warn dialog,but the information is English. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com

Start my application from silkscreen virtual key

2002-12-01 Thread Xue Qu
Hi, all How shall i do if i want to start my application from silkscreen virtual key? -- Xue Qu Kingsoft Corporation PDA Development Group Tel: 8610-62524868-337 Email: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] ICQ: 169940222 Add: 7F Jade Palace Hotel Office Tower, No.76 Zhichun Road, Haidian Di

Re: Event queue is full

2002-12-01 Thread JB Parrett
FldInsert() adds a fldChangedEvent to the event queue, so you are filling it up if you call it 15 times without giving the system a chance to process each one. It is much better (for this and other reasons) to put text into the fields using FldSetTextHandle() - see the sample code that comes with

How to successfully change Control text repeatedly?

2002-12-01 Thread DeVon Fowler
I'm trying to change the text repeatedly for various controls including pushButtonCtl and popupTriggerCtl. There were techniques for verifying that the text returned from CtlGetLabel() was the initial default value. This now generates warning or error messages in Palm OS5: freeTxtP = (char *)

Re: warning: enumeration value "x" not handled in switch

2002-12-01 Thread Mark Wilden
From: "Paul" <[EMAIL PROTECTED]> > > Mark: As a C code expert I don't need you to tell me what a default label is You're confused, Paul. This is my first post to this thread. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/

Re: warning: enumeration value "x" not handled in switch

2002-12-01 Thread Paul
> >My question: > >I'm not sure what to put in the default block. Should I set handled to 1 or > >leave the block empty? And explain why, please (yes, this is an essay > >question ). > > Leave the default block empty. Setting handled to 1 can prevent the system > from working, since it may not han

Multisegment wrestling...

2002-12-01 Thread kcorey
Well, the app I'm working on has grown to the point where I'm starting to really wrestle with multiple segments. I can usually shuffle things around to get them to work, but it seems a highly arbitrary way to work. I'm using Falch.net's Developer studio 2.7 and PRC-tools. I've tried going into

Change size and position of a form

2002-12-01 Thread Mike McCollister
I know that I can change the size or position of an object, however, is there a way to change the size and position of a form? Thanks, Mike McCollister __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.co

Re: Question to the developers of Palm OS system.

2002-12-01 Thread Ben Combee
At 13:17 2002-12-1 +0100, you wrote: Hello! When will you update the "Palm OS Companion" document so that it complies with Palm OS 5? The "Palm OS Companion" document that is currently distributed together with Palm OS 5 SDK is the same as with Palm OS 4 SDK, however lots of things have changed a

Re: warning: enumeration value "x" not handled in switch

2002-12-01 Thread Stringer
>From: John Marshall <[EMAIL PROTECTED]> > >>On Fri, Nov 29, 2002 at 07:51:38PM +, Matthew Bevan wrote: >>> "warning: enumeration value "x" not handled in switch" where >>>"x" are all >> the various possible events such as penDownEvent, >>>et. al. I realize I can turn this off one of two ways

Re: adding a new record in the Address Book

2002-12-01 Thread Henk Jonas
Wouldn't you better first fill your AddrDBRecordType and than call AddrDBNewRecord() ? Henk Silvain Jewoh wrote: Hi, > [...] -- - [EMAIL PROTECTED] www.metaviewsoft.de http://www.han

Re: How to get current battery capability?

2002-12-01 Thread Brian Smith
On Sun, 1 Dec 2002, Miken wrote: > When battery capability is low,I need warn customer to charge.But how to > get current capability? Look up SysBatteryInfo in the Palm OS API Reference. It returns all sorts of info about the battery status, including current voltage, percentage remaining, and a

Re: Just have to say ...

2002-12-01 Thread Steve Jerrett
This thread brings to mind a line from the docu-drama on Bill Gates'/ Microshaft's rise to dominance released several years ago. Towards the end of the program, the founder of Mac turns to Gates after he's just announced the launch of Windoze, a stolen port of the Mac OS, and says, "Mine's bett

Event queue is full

2002-12-01 Thread Rajasekhar Reddy P
Hi all I am geting an "Fatal error Event.c line no 247 Event queue is full" In my form 15 fields are there. i am geting data from database and show into fields i am useing the following code fld=FrmGetObjectPtr(frmP,FrmGetObjectIndex(frmP,id)); FldInsert(fld,text,StrLen(text)); But when i a

How to get current battery capability?

2002-12-01 Thread Miken
When battery capability is low,I need warn customer to charge.But how to get current capability? and if I use symbol modem for handspring visor,how to get current modem battery capability? Thanks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.

Question to the developers of Palm OS system.

2002-12-01 Thread RaNo
Hello! When will you update the "Palm OS Companion" document so that it complies with Palm OS 5? The "Palm OS Companion" document that is currently distributed together with Palm OS 5 SDK is the same as with Palm OS 4 SDK, however lots of things have changed and hence "Palm OS Companion" is no lon

Re: Just have to say ...

2002-12-01 Thread Matthew Bevan
My brother and co-worker ported some Windows software to Windows CE (-not- pocketPC ;) for a data-harvest application. *shudder* Even though the program was originally written in MFC, it didn't help. For embedded development I'm sticking with Palm, even though the APIs are lacking. I'm writi

Re: Just have to say ...

2002-12-01 Thread Larry Gilbert
Alan Perry wrote: you can get an IDE (with integrated debugger) from MS for free I'll wager a cup of Redmond Starbucks coffee that it doesn't run on Linux. ;-) --Larry -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/for