Re: How to get Form rect?

2005-10-19 Thread Logan Shaw
[EMAIL PROTECTED] wrote: I can see the FormRectangleType in the Help but not getting how to use it Do you mean just plain RectangleType? for getting my current form's Rect i.e. Height, Width, and X, Y pos. It's pretty easy. Just do this: RectangleType formbounds;

Re: How to get Form rect?

2005-10-19 Thread Logan Shaw
[EMAIL PROTECTED] wrote: And one more thing, how can I clear my Form, I am drawing on a form and I want to refresh the whole form screen for the next drawing. Just use FrmDrawForm(). I usually do all my custom drawing on top of the form right after I do FrmDrawForm(). If I had a function

Re: Free Palm OS HTTP(S) librarry

2005-10-19 Thread Philippe Fischer
Hi, there is already a HTTPLib on newer palm devices (treo, T5, E2). The headers from the lib an some doc can be found in the SDK from PalmOne (not the PalmSource SDK!!). Regards Philippe On Wed, 19 Oct 2005 02:08:43 +0800, Mohammad Afshari [EMAIL PROTECTED] wrote: Hello I'm

RE: Free Palm OS HTTP(S) librarry

2005-10-19 Thread David Birdsall
You can always use tcp/ip sockets to send and parse HTTP headers along with code to read and write the body data. It takes a while (easier if you're using something like POL) but you still need to know the ins and outs of the Palm NetLib API + SSL API if you wish to do secure sockets. It is

AlmSetProcAlarm

2005-10-19 Thread Kris
Hi all, I need to use Proc Alarm: AlmSetProcAlarm and I have problems to pass a correct pointer of my callback function. Could anyone please tell me some hints/example how to sort this out ? 1) Should I use DmDatabaseProtect or MemHandleLock to keep the code resource locked ? 2) Should I use

Re: AlmSetProcAlarm

2005-10-19 Thread Jürgen Wind
Can I assume you know that it's MUCH easier to use the alarm launch codes ? Jürgen Kris wrote: Hi all, I need to use Proc Alarm: AlmSetProcAlarm and I have problems to pass a correct pointer of my callback function. Could anyone please tell me some hints/example how to sort this out ? 1)

Re: AlmSetProcAlarm

2005-10-19 Thread Kris
Yes, I know that, but in my application I need to do some actions not visible for an User and the LCD must remain off. /Kris -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: pnoJpeg2GetInfo fatal alert

2005-10-19 Thread Stefan Stolz
hi! I think/hope i've found the error. The prc-File which was in the zip-file was corrupt. I've uploaded a 2.11-zip-file with a new prc-file. Maybe this works. Stefan Anning Chen wrote: I'm also getting an error where if I call the pnoJpeg2GetInfo function the simulator just crashes

Re: CodeWarrior, Palm OS DS or what?

2005-10-19 Thread Piero Pirrone
Hi Del, many thanks for the reply. The main problem is not the investment in software, here in our software house spend a lot of money each year for any kind of software, the problem instead is its development cycle. I do an example: we bought some times ago Pocket Studio for Palm OS, it is

Re: CodeWarrior, Palm OS DS or what?

2005-10-19 Thread Del Ventruella
I understand. Best wishes. - Original Message - From: Piero Pirrone [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Wednesday, October 19, 2005 7:11 AM Subject: Re: CodeWarrior, Palm OS DS or what? Hi Del, many thanks for the reply. The main problem

Re: Perform Hard reset programmatically

2005-10-19 Thread Frantisek Dufka
[EMAIL PROTECTED] wrote: Is any way to perform hard reset programmatically? Just an idea. You may try to corrupt storage heap header or some other vital data on purpose and then call soft reset. Check MemHeapPtr and MemSemaphoreReserve system calls. Frantisek -- For information on using

Re: CodeWarrior, Palm OS DS or what?

2005-10-19 Thread Regis St-Gelais
Piero Pirrone [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] snip The problem using Pocket Studio is that it use Pascal as front-end language. So since the API functions are written in C, there is a nightmare to use some API functions since the Pascal has a different

Database Access

2005-10-19 Thread Del Ventruella
I am trying to piece together code from this site's examples and a book I purchased on PalmOS programming. Unfortunately, without a lot of success. My goal is to be able to create and retrieve elements from database records. I begin with:

Re: Treo 650 font problem

2005-10-19 Thread Roger Stringer
Subject: Treo 650 font problem From: Kristian Austad [EMAIL PROTECTED] Date: Tue, 18 Oct 2005 08:17:28 - I can't believe I'm the only one using custom fonts on Treo 650... You aren't To recapture the problem: I'm using PRC-tools and pilrc. Custom fonts show up double height in

Re: pnoJpeg2GetInfo fatal alert

2005-10-19 Thread Douglas Handy
Stefan, I think/hope i've found the error. The prc-File which was in the zip-file was corrupt. I've uploaded a 2.11-zip-file with a new prc-file. Maybe this works. Thanks. Alas, unless I'm doing something wrong I'm still seeing the generic Fatal Alert. I am using the newer code -- the one

Re: Preventing an application to start if already running

2005-10-19 Thread Jeff Summers
68K applications run in a single tasking OS. So, your program can't posssibly be already running, as only one program can run at a time. To get to the launcher you pretty much had to terminate your program. Kinda reduces the risk of viruses and such, too... /js In your message regarding

Re: VFSFileOpen crash

2005-10-19 Thread Chris
As Logan Shaw told me, there's no firm rules, just put it where it seems proper to you. The app itself if it's in the /PALM/LANCHER directory of the sdcard will get launched when the sdcard is put in. I'm pretty new to all this myself, so I'll leave it to others to answer (or correct my

Re: ARMs problem

2005-10-19 Thread cori
Thanks for the reply. Soft reset did not work, hence the need to get an understanding of what was going on. Did a hard reset and hot sync and all is now OK, after I had done a backup with RescoBackup of course. Regards

Re: VFSFileOpen crash

2005-10-19 Thread Logan Shaw
[EMAIL PROTECTED] wrote: Thank you very much for your reply. Actually I was mmissing / in my file path. can you please tell me where my application gets installed? on the phone or on a simulator. is there any folder created for my application? suppose I want to place setting file for my

Re: VFSFileOpen crash

2005-10-19 Thread Logan Shaw
Chris wrote: As Logan Shaw told me, there's no firm rules, just put it where it seems proper to you. The app itself if it's in the /PALM/LANCHER directory of the sdcard will get launched when the sdcard is put in. Close, except (1) it's not always /Palm/Launcher, and you need to check

Re: Database Access

2005-10-19 Thread Logan Shaw
Del Ventruella wrote: Next I try to access the FirstName element of the first record: case Save: { Err err=0; Char *Tkva; DBRecord* rec; int back; FieldType * field = (FieldType*)GetObjectPtr(kVA); MemHandle myRecord = DmQueryRecord(gDatabase, 0); back=CreateRecord(); I'm not sure why you are

Button text not moving with form

2005-10-19 Thread Davie Lau
I have a form with buttons on it. I am moving the form with WinSetWindowBounds. The buttons move but the button text does not. The text stays in its original place. Thanks for any advice. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see

Re: cannot reproduce LifeDrive bug

2005-10-19 Thread Brian
It runs fine on the Palm 5.2 and 5.3 Debug and Release Simulators, as well as on my m515. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

hiding a label

2005-10-19 Thread cbruner
I'm updating a label during a calculation, and then when the calculation is done, I'm hiding the label, and showing a button. The way I'm doing it now seems stupid. (writing blanks). There must be a better way, but simply hiding the label doesn't seem to work. What is the best way to hide a

RE: Memory allocation

2005-10-19 Thread Gnadinger, David
I'm beating my head against the wall again. At certain times pq will already be in use. I have code to free the memory for reuse. Here's the setup (briefly): PQ *pq; PQ *tpq; ... tpq = (PQ *) MemPtrNew(order * sizeof(PQ)); tpq-items = (ITEM *) MemPtrNew(sizeof(ITEM)); ... (load data into tpq

re: Treo 650 font problem

2005-10-19 Thread Kristian Austad
Thanks for replying Roger, Yes, I've defined FONTFAMILY using one 72 res font and one 144 font that correspond, i.e. the height and width of the 72 res font is exactly half that of the 144 res font for each character. FONTFAMILY ID Verdana10 BEGIN FONT verdana 10_lo.pfn DENSITY 72 FONT

RE: Memory allocation

2005-10-19 Thread Dean Gahlon
On Wed, 19 Oct 2005, Gnadinger, David wrote: I'm beating my head against the wall again. At certain times pq will already be in use. I have code to free the memory for reuse. Here's the setup (briefly): PQ *pq; PQ *tpq; ... tpq = (PQ *) MemPtrNew(order * sizeof(PQ)); tpq-items = (ITEM

Re: Memory allocation

2005-10-19 Thread Aaron Ardiri
On 10/19/05, Gnadinger, David [EMAIL PROTECTED] wrote: I'm beating my head against the wall again. At certain times pq will already be in use. I have code to free the memory for reuse. Here's the setup (briefly): PQ *pq; PQ *tpq; ... tpq = (PQ *) MemPtrNew(order * sizeof(PQ)); tpq-items

RE: Memory allocation

2005-10-19 Thread Gnadinger, David
Sorry. My mistake in the example. I am currently only dealing with one pq structure, so they both do the same thing. I changed it, though, to agree and made it order * sizeof(PQ), but I still get the same results: tpq is never copied to pq. -- For information on using the PalmSource Developer

RE: Memory allocation

2005-10-19 Thread Gnadinger, David
That didn't work. I tried exactly what you suggested, except the item allocation line, you had tpq-items by mistake. Here's what I have now: PQ *tpq; PQ *pq; ... pq = (PQ *) MemPtrNew(sizeof(PQ)); MemMove(pq, tpq, sizeof(PQ)); pq-items = (ITEM *) MemPtrNew(item *

RE: Memory allocation

2005-10-19 Thread Gnadinger, David
PQ *pq; is a global variable. PQ *tpq; is a local variable to the function that this code is in. Is the something different in palm programming about global vs. local variables? I have 3 segments in this program. -- For information on using the PalmSource Developer Forums, or to unsubscribe,

Re: Memory allocation

2005-10-19 Thread Dean Gahlon
On Wed, 19 Oct 2005, Aaron Ardiri wrote: On 10/19/05, Gnadinger, David [EMAIL PROTECTED] wrote: I'm beating my head against the wall again. At certain times pq will already be in use. I have code to free the memory for reuse. Here's the setup (briefly): PQ *pq; PQ *tpq; ...

RE: Memory allocation

2005-10-19 Thread Dean Gahlon
On Wed, 19 Oct 2005, Gnadinger, David wrote: That didn't work. I tried exactly what you suggested, except the item allocation line, you had tpq-items by mistake. Here's what I have now: PQ *tpq; PQ *pq; ... pq = (PQ *) MemPtrNew(sizeof(PQ)); MemMove(pq, tpq, sizeof(PQ));

RE: Memory allocation

2005-10-19 Thread Dean Gahlon
On Wed, 19 Oct 2005, Gnadinger, David wrote: Sorry. My mistake in the example. I am currently only dealing with one pq structure, so they both do the same thing. I changed it, though, to agree and made it order * sizeof(PQ), but I still get the same results: tpq is never copied to pq.

determining the foreground program

2005-10-19 Thread Andrew
How can one determine what program is running for an application that has been called by the alarm manager, to determine if the program wants to launch or not/reschedule relaunch, etc... -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see

Re: determining the foreground program

2005-10-19 Thread Jeff Summers
If you control the program (if the program is yours) you can set a flag in a DB on startup, clear on shutdown, and check that flag in the alarm routine. /js In your message regarding determining the foreground program dated Wed, 19 Oct 2005 22:06:12 -, Andrew said that ... How can one

Re: Memory allocation

2005-10-19 Thread Logan Shaw
Gnadinger, David wrote: That didn't work. I tried exactly what you suggested, except the item allocation line, you had tpq-items by mistake. Here's what I have now: PQ *tpq; PQ *pq; ... pq = (PQ *) MemPtrNew(sizeof(PQ)); MemMove(pq, tpq, sizeof(PQ)); pq-items = (ITEM *)

Re: CodeWarrior, Palm OS DS or what?

2005-10-19 Thread Jon Springs
Have a look at OrbForms ( http://www.orbworks.com/ ). Very much Delphi-like, inexpensive, good support, etc. Also, C language. -Jon- Piero Pirrone [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi! I'm starting writing an application using the Palm OS Developer Suite,

Re: determining the foreground program

2005-10-19 Thread Andrew
I apologize for not making myself more clear. How can I make my program know that a certain application is open (like the phone app on the treo) so I can reschedule the alarm for a more convenient time? pxaclocker gets notified and can take appropriate actions whenever an application is

Re: determining the foreground program

2005-10-19 Thread Robert Moynihan
Andrew wrote: Is the only way to not bother a user while the phone app is open to watch every application that opens and take note of it and deal with it accordingly when the program is woken up I believe this is correct. There doesn't seem to be a good way to detect which app is in the

Re: determining the foreground program

2005-10-19 Thread Logan Shaw
Andrew wrote: I apologize for not making myself more clear. How can I make my program know that a certain application is open (like the phone app on the treo) so I can reschedule the alarm for a more convenient time? pxaclocker gets notified and can take appropriate actions whenever an

Help: Focus on buttons 5way Navig. in a Form:

2005-10-19 Thread babbu cathy
Hi all, Can anyone please clarify my below doubts. I am stange in this. 1. I didn't code for 5way navigation support in my project, but still navigation is working properly in some forms. So, DO I NEED TO DO 5 WAY CODE AGAIN TO THAT FORMS, SINCE ALREADY IT'S TAKEN THE NAVAIGATION AUTOMATICALLY

Re: cannot reproduce LifeDrive bug

2005-10-19 Thread Alan Ingleby
The obvious conclusion here is that NVFS devices truly suck. I've had no end of porblems with subtle stability bugs. Is there a local Palm rep you can contact to get a loan device? I know we've always been able to do that in the past, but I'm in Australia, and I don't know if things work

Re: Help: Focus on buttons 5way Navig. in a Form:

2005-10-19 Thread Ben Combee
1. I didn't code for 5way navigation support in my project, but still navigation is working properly in some forms. So, DO I NEED TO DO 5 WAY CODE AGAIN TO THAT FORMS, SINCE ALREADY IT'S TAKEN THE NAVAIGATION AUTOMATICALLY IN PROPER WAY ? The system won't turn on object navigation for

re: Button text not moving with form

2005-10-19 Thread Davie Lau
Here's my code: void MoveFormHorizontal(FormType *frmP, UInt16 x) { RectangleType rect; WinHandle winH = FrmGetWindowHandle(frmP); WinGetBounds (winH, rect); rect.topLeft.x = x; WinSetWindowBounds(winH, rect); } RectangleType frmBounds; FormType*

Updating cygwin

2005-10-19 Thread ff
Hello, I loaded the Palm OS dev kit with its own cygwin on a Win XP laptop. However, I also need perl and other cygwin tools, so I tried to install them w/o overriding any of the installed files. However, now when I start a shell, I get the message the procedure entry point _impure_ptr could

Re: VFSFileOpen crash

2005-10-19 Thread kiranp
Hi Logan, Thanks a lot for your detailed response. A lots of basics got cleared form your response. I just wanted to ask one more thing .. can we attach a file with an application? i.e. with PRC. means after I install my application on the device, it should also copy my file on to the device(