RE: Text in selector trigger

2001-06-22 Thread Ray Marshall
That's exactly what you want to do. As long as you don't copy a string that is longer than the original string, you're in good shape. Do a CtlGetLabel to get a pointer to the original string, copy your string into the buffer and call CtlSetLabel to update it. //Ray -Original Message-

RE: List Draw Function (was Re: Dynamic List Content?)

2001-06-21 Thread Ray Marshall
You need to handle the popSelectEvent and add the text to the trigger yourself. The problem is that the system thinks that there is data in your list and, of course, there isn't. Your handler for popSelectEvent needs to return true to indicate that the OS should not try to do it itself. //Ray

RE: Dynamic List Content?

2001-06-20 Thread Ray Marshall
Your structure MyData has a Char* member at the end. That is, it's a pointer to a string somewhere and not that the bytes starting at that location are the actual string. In other words, its not equivalent to having char name[ x ] where x is the length of the string. I suspect that your record

RE: Colored Text...does anyone know the answer??

2001-06-15 Thread Ray Marshall
How about using WinSetTextColor? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Robert Purcell Sent: Friday, June 15, 2001 2:02 PM To: Palm Developer Forum Subject: Colored Text...does anyone know the answer?? This is the 2nd time I've posted this

RE: How do you make a list id for a popup trigger?

2001-06-14 Thread Ray Marshall
You want to associate the list and the trigger at design time. You just need to create an empty list and then fill the list to what ever you want at runtime. //Ray -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Nicolás Zeitlin Sent: Sunday, June 03,

RE: Question about DBs..

2001-05-23 Thread Ray Marshall
That is true. If you have a database of type 'DATA' and you have a conduit installed for the creator ID of that database, the backup conduit won't backup the database. I guess it assumes that you will since you wrote a conduit or the nature of your conduit doesn't require backing up. (ie, you're

RE: Constructor problem

2001-04-20 Thread Ray Marshall
You are going to need to put only the fields that will fit on the screen and manage the scrolling yourself. For example, if you can fit 12 fields on the screen and you need 24, you will display the first 12 items in the fields to start. When you get a scroll event from your scroll bar, will move

Link Error: __RuntimeModule__: Entry Point '__InitCode__' is undefined

2001-04-17 Thread Ray Marshall
Does anyone know what this linker error means? I am using CodeWarrior 7. The only change I've made recently was to convert some code to C++. Any ideas? //Ray -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

RE: Link Error: __RuntimeModule__: Entry Point '__InitCode__' is undefined

2001-04-17 Thread Ray Marshall
Thanks Ben! That solved my problem. //Ray -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ben Combee Sent: Tuesday, April 17, 2001 7:43 PM To: Palm Developer Forum Subject: Re: Link Error: __RuntimeModule__: Entry Point '__InitCode__' is undefined &quo

Save behind flag

2001-04-13 Thread Ray Marshall
I've struggled a bit lately with the ole "Save Behind" feature of a form. I searched the forum archives and didn't quite get the answer I was looking for and so I thought I would post my conclusions for future searches. Also, if I have misunderstood this very odd feature, please let me know. The

RE: Reading Next Database

2001-04-12 Thread Ray Marshall
How about the DmQueryRecord( dbPtr, 1 ) instead. You're adding 1 to the DmOpenRef and not the record index. //Ray -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jim Garozzo Sent: Thursday, April 12, 2001 12:46 PM To: Palm Developer Forum Subject:

RE: Running two different forms at the same time

2001-03-22 Thread Ray Marshall
nly plain text this time) -Original Message- Ray Marshall wrote: Unless I am not understanding what you are doing, you shouldn't need to have any application bloat (except for a slight duplication of the resources). You should write common code to handle the navigation form and have the event ha

RE: Running two different forms at the same time

2001-03-21 Thread Ray Marshall
Unless I am not understanding what you are doing, you shouldn't need to have any application bloat (except for a slight duplication of the resources). You should write common code to handle the navigation form and have the event handler for each form just call the common navigation code. Not only

Memory modules

2001-03-20 Thread Ray Marshall
Can anyone explain how memory modules work under the Palm OS? I've tried to find good documentation on this subject but haven't been able to get clear answers. I recently got a report that my application isn't working quite right when my database files are on a memory module. Sure enough, I

RE: Memory modules

2001-03-20 Thread Ray Marshall
write before you do a write to a database. That way, if it's possible to write you do, and if it's not possible you don't. And you can at least decide what you want to do from there. Hope this helps, DeAnna -Original Message- From: Ray Marshall [mailto:[EMAIL PROTECTED]] Sent: Tuesday

RE: Upgrading Visor (PalmOS 3.1) to PalmOS 3.5?

2001-02-12 Thread Ray Marshall
This is been nagging at me for a couple of months now. Does anyone know what Handspring is going to do for upgrading their users? I have read that they strategy is to release patches for older versions but have yet to see one. I am very skeptical that it would work very well. Having a Prism, I am

Categories questions

2001-02-12 Thread Ray Marshall
I am implementing categories across numerous databases (vs. the typical Palm method of having all of the records in a category within a single database). Basically, I have a single "master" database that I use with the category routines to display the CategorySelect list. I then do the work

RE: VoidPtr and FieldPtr Confusion

2001-02-05 Thread Ray Marshall
GetObject is getting a pointer to the specified object and is unaware of what type of object it is. That is why it returns a void*. As the programmer, you need to know which type of object it points to and use/cast it appropriately. For example, in this case, ContactDetailFirstNameField happens

RE: static ints

2001-02-01 Thread Ray Marshall
A struct is nothing more than a public class. That's funny, I always thought a class was nothing more than a private struct.;) //Ray -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of herry Sent: Wednesday, January 31, 2001 3:22 PM To: Palm Developer Forum

RE: Creator IDs

2001-01-31 Thread Ray Marshall
Did you remember to put your app's creator ID in the settings of your CodeWarrior project (assuming you are using CW)? They are at SettingsLinkerPalmRez Post Linker. //Ray -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ender Wiggin Sent: Wednesday,

RE: Please Help with Emulator Problem

2001-01-30 Thread Ray Marshall
-Original Message- From: Ray Marshall [SMTP:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 9:25 PM To: Palm Developer Forum Subject:RE: Please Help with Emulator Problem I solved it by upgrading to R7. R7 works much better with the emulator. Debugging speed seems

RE: Scrollbar problem!

2001-01-30 Thread Ray Marshall
If you set the values of a scroll bar to 0s, it should hide itself: SclSetScrollBar( barP, 0, 0, 0, 0 ); //Ray -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Flora_Mahdavi Sent: Tuesday, January 30, 2001 2:55 PM To: Palm Developer Forum Subject:

RE: cannot StrCopy

2001-01-30 Thread Ray Marshall
Try var-name instead of var.name. //Ray -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chad Harrison Sent: Tuesday, January 30, 2001 8:27 AM To: Palm Developer Forum Subject: cannot StrCopy here is my typedef struct: #define NAME_SIZE 25 #define

RE: Setting background color of text

2001-01-30 Thread Ray Marshall
You can do something like: RGBColorType color; color.r = 0x0; color.g = 0xFF; color.b = 0x0; WinSetBackColor( WinRGBToIndex( color ) ); //Ray -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mike Walters Sent:

RE: Setting background color of text

2001-01-30 Thread Ray Marshall
PROTECTED]]On Behalf Of Ray Marshall Sent: Tuesday, January 30, 2001 10:30 PM To: Palm Developer Forum Subject: RE: Setting background color of text You can do something like: RGBColorType color; color.r = 0x0; color.g = 0xFF; color.b = 0x0; WinSetBackColor

RE: Please Help with Emulator Problem

2001-01-29 Thread Ray Marshall
I solved it by upgrading to R7. R7 works much better with the emulator. Debugging speed seems to be about 5 times faster as well. //Ray -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alan Ingleby Sent: Monday, January 29, 2001 8:22 PM To: Palm Developer