Stack Size

2006-01-31 Thread Jim McGowen
I got this from another post: Chris Apers previously wrote: Is there a way to know the size of the stack ?. UInt32 GetStackSize( // returns size of stack in bytes void) // no parameters { MemPtr StartPP = NULL; MemPtr EndPP = NULL; SysGetStackInfo(StartPP, EndPP);

System date/time dialog

2005-10-07 Thread Jim McGowen
I'd like to intercept the event when the user taps on the clock icon on the E2 and the taskbar clock on the T5. Unfortunately the only event I get before the system date/time dlg is opened is a penDownEvent. Anyone know how I can do this? - Jim -- For information on using the

frmObjectFocusTake

2005-09-14 Thread Jim McGowen
The Palm OS Reference documentation for frmObjectFocusTakeEvent says the event data has a structure of frmObjectFocusTake but when I do a frmObjectFocusTake data = (frmObjectFocusTake)event-data; frmObjectFocusTake is undefined. What's the story? - Jim -- For information on using the

Re: The File vs Database Paradigm

2005-09-14 Thread Jim McGowen
I think the solution your looking for is to create a conduit for your app that interprets the data in your palm databases into whatever format you like on your pc. Check out the samples in the latest conduit SDK. Lance Drake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Palm

Re: Calling SysReset under OS5

2005-09-14 Thread Jim McGowen
No problems using it on OS5 here. Been using it in my app for over a year now. Vince Lee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is there any reason why SysReset() won't work under PalmOS5? I have some old code in a utility app that indicates that at least early OS5

T5 Control Bar Events

2005-09-09 Thread Jim McGowen
Is there an event mask or something I could use to determine if the user tapped on the control bar on the T5? Reason I ask is because I want to throw away all control bar events. - Jim -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see

Re: 5-Way Navigator handling

2005-09-02 Thread Jim McGowen
Is this true? vchrPageUp == pageUpChr == vchrRockerUp -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: 5-Way Navigator handling

2005-09-01 Thread Jim McGowen
I've been testing with real hardware, the TC, T5, and E2. I didn't know you could simulate the 5-way. Ton van Overbeek [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 2005-08-31, Ben Combee [EMAIL PROTECTED] wrote: At 05:26 PM 8/31/2005, Jim McGowen wrote: Used to be I could

Re: 5-Way Navigator handling

2005-09-01 Thread Jim McGowen
I agree, the documentation and sample code are confusing. The TestFiveWay sample provided with the palmOne SDK uses two different code paths for old devices and new devices depending on whether or not a couple of libraries can be loaded. I can't find any documentation to explain what these

Re: 5-Way Navigator handling

2005-09-01 Thread Jim McGowen
I found the function FrmSetNavMode() which is what aI think I need but what header do I need to include to get it? I tried HsNav.h but get compile errors about SYS_SEL_TRAP. Ben Combee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 08:56 PM 8/31/2005, you wrote:

Re: 5-Way Navigator handling

2005-09-01 Thread Jim McGowen
that exports the function is not on the handheld. Great, back to the drawing board... Jim McGowen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I found the function FrmSetNavMode() which is what aI think I need but what header do I need to include to get it? I tried HsNav.h but get compile

Re: 5-Way Navigator handling

2005-09-01 Thread Jim McGowen
Well after much toil I'm back where I started, only even more confused than I was. What I want to do is handle 5-way navigation key down events. I don't need one-handed navigaion or focus rings ect... I simply want to handle scrolling and selecting in a custom list control I made. I got this

Re: 5-Way Navigator handling

2005-09-01 Thread Jim McGowen
But if the T5 can't handle it, how do I get it into Interaction Mode? Ben Combee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 03:58 PM 9/1/2005, you wrote: FrmSetNavState() causes a (Sys 0505) on both the Tungsten C and T5. Just noticed this in the documentation: IMPORTANT Do

Re: 5-Way Navigator handling

2005-09-01 Thread Jim McGowen
at least i'm close :) I went through the reference but can't find the glue equivalent to FrmSetNavState(). Ben Combee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Isn't there any way to just disable these new features and make the 5-way on newer devices act like older ones? Is

Re: 5-Way Navigator handling

2005-09-01 Thread Jim McGowen
Just tried your code on the T5 and bad news, no workie. I'm assuming key == event-data.keyDown.chr? Robert Moynihan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jim McGowen wrote: Well after much toil I'm back where I started, only even more confused than I was. What I want

Re: 5-Way Navigator handling

2005-09-01 Thread Jim McGowen
Tried FrmNavSetState() on the T5, got 0x505. FrmSetNavSate() is defined in HsNav.h. Thought that's what they meant by HsNav functions. Ben Combee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 05:36 PM 9/1/2005, you wrote: at least i'm close :) I went through the reference but

Re: 5-Way Navigator handling

2005-09-01 Thread Jim McGowen
beacause they need to handle other non-5-way key down events. I'll write an ugly special case for them if I have to. Logan Shaw [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jim McGowen wrote: Well after much toil I'm back where I started, only even more confused than I was. What I

Re: 5-Way Navigator handling

2005-09-01 Thread Jim McGowen
:[EMAIL PROTECTED] Jim McGowen wrote: The Tungsten C produces 2 key down events for each button press. NavKeyPressed doesn't work for the 1st event but does for the second one. Same with NavSelectPressed. Almost the same thing with the T5 except I only get 2 key down events with the select

Re: 5-Way Navigator handling

2005-09-01 Thread Jim McGowen
, the first one isn't handled by your code, but the second one is, except on the Tungsten C the select key is processed twice for a single press. (that's debugging on the devices, not sims) Robert Moynihan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jim McGowen wrote: Just tried your

Re: 5-Way Navigator handling

2005-09-01 Thread Jim McGowen
Just tried it again on the device and it worked! Before, I tried it on the Garnet simulator(PalmSim_54_dbg.exe) when I got the 0x505. Didn't know there was a T5 specific simulator, I'll have to go find it. Ok, cool, but it still works the same on the T5. I still get 2 key down events for

Re: 5-Way Navigator handling

2005-09-01 Thread Jim McGowen
Glad to hear it's not just me :) Robert Moynihan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jim McGowen wrote: Just tried it again and it DOES work... must have copied something wrong the first time, sorry bout that! Yeah, I thought that it had to work. Still seeing multiple

5-Way Navigator handling

2005-08-31 Thread Jim McGowen
I'm writing some code to handle the 5-way navigator supporting both the Tungsten C and the T5. Using code taken from the sample app FiveWayV2 I've come up with this: m_oldNavLibrary = false; UInt16 gLibRefNum; Err error = SysLibFind( kPmKeyLibName, gLibRefNum ); if( error ) { error =

Re: 5-Way Navigator handling

2005-08-31 Thread Jim McGowen
PROTECTED] At 05:26 PM 8/31/2005, Jim McGowen wrote: Used to be I could just use the macros defined in PalmNavigator.h(now PalmOneNavigator.h), simple as pie, but eveidently they don't work for newer devices like the T5 (by the way this is not decumented anyplace I could find). The current palmOne

Re: Display Large Text Messages on a Field

2005-08-31 Thread Jim McGowen
I have to do this in one of my apps. I store all the text in a database then load a chunk at a time, just enough to fill the display. Then when the user scrolls, I load the next chunk. Régis Daniel de Oliveira [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all!!! There is

Re: 5-Way Navigator handling

2005-08-31 Thread Jim McGowen
and Palm macros are scheme specific, while the generic form ends up calling both. At 06:23 PM 8/31/2005, Jim McGowen wrote: NavDirectionHSPressed(eventP, nav) doesn't work at all on the Tungsten C. NavDirectionHSPressed(eventP, Up) and NavDirectionHSPressed(eventP, Down) don't work on the T5

Re: 5-Way Navigator handling

2005-08-31 Thread Jim McGowen
I mean event-data.keyDown.chr. Jim McGowen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] NavDirectionPressed works great for the TC but NavDirectionPressed( event, Up ) and NavDirectionPressed( event, Down ) don't work for the T5. This DOES work on both: if( NavDirectionPressed

Re: OS 5 is messing up certain numbers

2005-08-17 Thread Jim McGowen
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From: Jim McGowen [EMAIL PROTECTED] Found something strange... Looks like Palm OS 5 changes certain numbers multiplying. For example: double x = 0.141; long y = (long)( x * 1.0 ); y becomes 1409. Also: double x = 1410.0

Re: OS 5 is messing up certain numbers

2005-08-17 Thread Jim McGowen
0.407 - 0.409 0.563 - 0.573 I was thinking I might find a pattern and maybe special case these numbers but I'm not smart enough to see a pattern here. I think I'll try Jerome's suggestion instead. Jim McGowen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Found something strange

Re: OS 5 is messing up certain numbers

2005-08-17 Thread Jim McGowen
Just keeps getting stranger... now 0.1551 * 1.0 is giving me 1550. I have proof that it wasn't doing this yesterday! Anyway, after some discussion with another programmer I work with, we decided to change our app to do strictly integer math. That should eliminate our floating woes. Jim

OS 5 is messing up certain numbers

2005-08-16 Thread Jim McGowen
Found something strange... Looks like Palm OS 5 changes certain numbers multiplying. For example: double x = 0.141; long y = (long)( x * 1.0 ); y becomes 1409. Also: double x = 1410.0; double test = 0.141; double y = test * 1.0; double z = 0.141 * 1.0; x = = 1410.0 = =

Need a time span when the system time changes.

2005-03-29 Thread Jim McGowen
I have an app that stores timestamps that need to remain relative to the current system time. That means that whenever the system time changes I need to update the timestamps in my app by the same amount the system time has changed. I register for the sysNotifyTimeChangeEvent which tells me

Re: Data Base entrys...

2005-03-29 Thread Jim McGowen
Here's some sudo code that might help you get started but as Logan suggested the programmer's companion is going to be your best friend. // Structure representing a single record struct RecordData { char mastamp[25]; UInt16 utecn; char aglocal[55]; Boolean agente; UInt32

Re: Time discrepancy

2005-01-17 Thread Jim McGowen
on the Palm as UTC time then in my conduit I subtract 2082844800 (Palm time to Windows time conversion). Now I have a Windows UTC timestamp so I just call localtime() to get the local time. Logan Shaw [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jim McGowen wrote: That's what I

Time discrepancy

2005-01-14 Thread Jim McGowen
I save a timestamp on the Palm then read it back in Windows (via my conduit) and adjust for the Palm to Windows time difference (subtract 2082844800) and the resulting timestamp I get is +5 hours. I can't for the life of me figure out where the extra 5 hours is coming from. Anyone have any

Re: Time discrepancy

2005-01-14 Thread Jim McGowen
no, I'm in Arizona (mountain time) Logan Shaw [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jim McGowen wrote: I save a timestamp on the Palm then read it back in Windows (via my conduit) and adjust for the Palm to Windows time difference (subtract 2082844800

Re: Time discrepancy

2005-01-14 Thread Jim McGowen
Savings Time. --- Jim McGowen [EMAIL PROTECTED] wrote: I save a timestamp on the Palm then read it back in Windows (via my conduit) and adjust for the Palm to Windows time difference (subtract 2082844800) and the resulting timestamp I get is +5 hours. I can't for the life of me figure

Re: Time discrepancy

2005-01-14 Thread Jim McGowen
I think your right Logan. All I know right now is it's quit'n time! I'll work on it Monday and post my findings. Thanks for all the responses. - Jim Logan Shaw [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jim McGowen wrote: That's what I was thinking... but both the palm

Re: PALMDEV: drawing a bitmap

2004-09-10 Thread Jim McGowen
, Inc. [EMAIL PROTECTED] On Wed, Sep 08, 2004 at 06:14:57PM -0700, Jim McGowen wrote: I'm having some trouble drawing a bitmap. The bitmap data is stored in a database record along with some header info. When I try to draw it on the screen it's all scrambled. This is basically my code

Problem debugging with Emulator

2004-09-08 Thread Jim McGowen
I've been using the emulator with CodeWarrior for about 2 years and haven't had any problems with it (nothing of note anyway) then I reistalled Windows XP and CodeWarrior 9.3 and now just about every time I try to debug my app I get an error from the emulator before it hits PilotMain. The error

drawing a bitmap

2004-09-08 Thread Jim McGowen
I'm having some trouble drawing a bitmap. The bitmap data is stored in a database record along with some header info. When I try to draw it on the screen it's all scrambled. This is basically my code. shape is a pointer to the record and shape-bitmapBits is the bitmap data. Can anyone spot

Hotsync is corrupting my database

2004-06-28 Thread Jim McGowen
Has anyone had problems with HotSync corrupting databases? I create a database in Windows and after I HotSync it to my Palm it's all f'd up. Here are links to the database before and after the hotsync if you'd like to take a look at them. http://paintedspider.com/after_hotsync.pdb

Palm OS Resource Editor files with CW 9.3?

2004-03-11 Thread Jim McGowen
Does anyone know if there is a way to use XML based Palm OS Resource Editor files with CW 9.3? Has anyone tried this? - Jim -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

FrmSetFocus and a numeric field

2004-01-09 Thread Jim McGowen
I'm having a strange problem. It's only evident on the Tungsten C since it has a built in keyboard. Problem is when I have a field with the numeric property set and I call FrmSetFocus when the form is loaded (after the form is drawn), the field wont accept keyboard numbers (using graffiti works

Re: Navigator button on Tungsten T2

2004-01-09 Thread Jim McGowen
you can use the NaveKeyPressed macro defined in PalmNavigator.h. if ( NavKeyPressed( eventP, Left ) ) if ( NavKeyPressed( eventP, Right ) ) Marianne [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I am using a Tungsten T2 device, I just wanted to know which event is fired when