Treo 600 - Console mode

2004-07-20 Thread Gaurav Mengi
Hi ,
  I want to load my application from my Desktop PC to the Treo 600
device.I 'm connecting my device using USB cable.To bring the device into
console mode..i run that DotDot.prc and even tried by entering the shortcut
key..But everytime the Codewarrior gives the message put the device in
Console mode..though the device is into console mode...

If i try to do it withy the Serial cable..e'thing is fine.


Can any one tell me why is it happening with USB??

Gaurav



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Treo 600 - Console mode

2004-07-20 Thread Ben Combee
At 02:14 AM 7/20/2004, you wrote:
Hi ,
  I want to load my application from my Desktop PC to the Treo 600
device.I 'm connecting my device using USB cable.To bring the device into
console mode..i run that DotDot.prc and even tried by entering the shortcut
key..But everytime the Codewarrior gives the message put the device in
Console mode..though the device is into console mode...
If i try to do it withy the Serial cable..e'thing is fine.
The Treo 600 doesn't support USB debugging.  Sorry.
-- Ben Combee, DTS technical lead, PalmSource, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Palm OS Dev Fourm Archives: http://news.palmos.com/read/all_forums/

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Tungsten T3 Serial port problem

2004-07-20 Thread raja_venkat
Hi,

Thanks lot for your response .
Iam interested in testing SerialFix version 2.2 .
Iam unable to find SerialFix version 2.2 .
Pls let me know how to follow it.

Thanks & Regards,
  Venkat
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Creating > 64Kb movable chunk

2004-07-20 Thread \[ a | x \] - Peter Alex
There is an article on kb.palmsource.com 'keyword'
memglueptrnew which discuss about large memory chunk
allocation (to use memglueptrnew, bmpcreate or
ftrptrnew).
 
i hope it can help

regards, 

Peter Alex
--- Luc Le Blanc <[EMAIL PROTECTED]> wrote:
> My application needs to store various computation
> results into memory
> chunks. Since these chunks need to grow over time in
> the course of the
> application, I allocate them as movable using
> MemHandleNew to prevent
> that one chunk blocks another when attempting a
> resize. Alas,
> MemHandleNew seems to be limited to 64Kb (I get a
> NULL beyond that),
> unlike a new API like MemGluePtrNew that seems to be
> limited only by the
> device heap space. Is there a way to allocate a
> movable chunk > 64Kb?
> 
> 
> --
> Luc Le Blanc
> 
> 
> -- 
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
> http://www.palmos.com/dev/support/forums/
> 





__
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Problem saving bitmap version 3 to resource

2004-07-20 Thread Season
Hi, I want to read a bitmapV3 from resource, modify it, and save it back to
database resource, but the saved resource is not bitmap version 3 and
density of 144, it showed bitmap version 0 and density of 72... I have done
it with the same code for bitmap version 2 (with offscreen creation of
genericFormat) and it works. Below is my code, please help!!!


// open file
DmGetNextDatabaseByTypeCreator(true, &ldssInfo, sysFileTApplication, 'ABCD',
true, &lintCard, &llidDB);
ldorDB  = DmOpenDatabase(lintCard, llidDB, dmModeReadWrite);

// read bitmapV3 into memory, modify it and display it on screen
lmhdBitmap = DmGet1Resource('Tbmp', 2008);
if(lmhdBitmap != NULL)
{
 lbmpBitmap = (BitmapPtr) MemHandleLock(lmhdBitmap);
 lwhdWindow = WinCreateOffscreenWindow(22, 22, nativeFormat, &lerrRV);
 lwhdCurrent = WinGetDisplayWindow();
 WinSetDrawWindow(lwhdWindow);
 WinDrawBitmap(lbmpBitmap, 0, 0);
 WinDrawLine(0, 0, 12, 12);
 lrtpFrame.topLeft.x  = 0;
 lrtpFrame.topLeft.y  = 0;
 lrtpFrame.extent.x  = 22;
 lrtpFrame.extent.y  = 22;
 WinCopyRectangle(lwhdWindow, lwhdCurrent, &lrtpFrame, 30, 20, winPaint);
// display as bitmapV3 on screen successful
 WinSetDrawWindow(lwhdCurrent);
 MemHandleUnlock(lmhdBitmap);
 DmReleaseResource(lmhdBitmap);
}

// remove bitmapV3 resource
lintRec  = DmFindResource(ldorDB, 'Tbmp', 2008, NULL);
DmRemoveResource(ldorDB, lintRec);

lintDensity = BmpGetDensity(lbmpWindow);// return 144
lintVersion = BmpGetVersion(lbmpWindow);// return 3

// get bitmap size
BmpGetSizes(lbmpWindow, &lintData, &lintHeader);
lintTotal = BmpSize(lbmpWindow);

// write bitmap to a new resource
lmhdWindow = DmNewResource(ldorDB, 'Tbmp', 2008, BmpSize(lbmpWindow));
lptrWrite = MemHandleLock(lmhdWindow);
DmWrite(lptrWrite, 0, lbmpWindow, lintHeader);
DmWrite(lptrWrite, lintHeader, BmpGetBits(lbmpWindow), lintData);
MemHandleUnlock(lmhdWindow);
DmReleaseResource(lmhdWindow);

// close file
DmCloseDatabase(ldorDB);
// free offscreen window created
WinDeleteWindow(lwhdWindow, false);


--
Season



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Problems with WinCreateOffscreenWndow()..

2004-07-20 Thread BrownB
Hello, I've some problems managing WinHandles. I'm trying to allocate some globals 
OffscreenWindows using a struct of WinHandles, but it seems that the returned value 
for each WinHandle is NULL...

I use something like this:
Err allocateWindow(WinHandle *hWin){

*hWin=WinCreateOffscreenWindow(..);
}

Now, if I use:

WinHandle myWinHandle;
err=allocateWindow(&myWinHandle);

the variable myWinHandle should be pointing to the WindowType structure allocated 
before, but I found it's pointing to NULL...

This problem came out when I decided to move that function in another segment, but I'm 
shure that I declared that function as extern in the module's .h file, included in the 
module which calls that allocateWindow().

Can someone help me?
Thanks,
BrownB
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Ho can I save a bitmap in a non-res database?

2004-07-20 Thread BrownB
I'm using BmpCreateBitmapV3() to get raw data saved in a record using BmpGetBits(). 
How can I convert it to BitmapType? Can I just do a cast like 
(BitmapType*)ptr_to_myBitmapV3?
Thanks for help,
BrownB
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Invalid Handheld file deleted

2004-07-20 Thread Scott Mahoney
I am using Code warrior 9, and have built an application using POL.  I am
experiencing issues when hot synching the application to the device.
Hotsynch rejects the file as invalid, but the emulator and simulator run it
just fine.  I have a multi segment app, I do not have link single segment
checked.  Merge compiler glue into segment 1 is off as well.  I am using the
large code model.   Does anyone know how to determine what is causing the
application to be considered invalid?  I have been shuffling code around
segments to get it working, but there must be somehow to determine what is
making the application invalid.

Any help would be greatly appreciated.

Thanks!

Scott Mahoney


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


RE: Creating > 64Kb movable chunk

2004-07-20 Thread Annada Prasana
In the sdk also.

-Original Message-
From: [ a | x ] - Peter Alex [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 1:35 PM
To: Palm Developer Forum
Subject: Re: Creating > 64Kb movable chunk


There is an article on kb.palmsource.com 'keyword'
memglueptrnew which discuss about large memory chunk
allocation (to use memglueptrnew, bmpcreate or
ftrptrnew).
 
i hope it can help

regards, 

Peter Alex
--- Luc Le Blanc <[EMAIL PROTECTED]> wrote:
> My application needs to store various computation
> results into memory
> chunks. Since these chunks need to grow over time in
> the course of the
> application, I allocate them as movable using
> MemHandleNew to prevent
> that one chunk blocks another when attempting a
> resize. Alas,
> MemHandleNew seems to be limited to 64Kb (I get a
> NULL beyond that),
> unlike a new API like MemGluePtrNew that seems to be
> limited only by the
> device heap space. Is there a way to allocate a
> movable chunk > 64Kb?
> 
> 
> --
> Luc Le Blanc
> 
> 
> -- 
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
> http://www.palmos.com/dev/support/forums/
> 





__
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/

-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Treo 600 connector

2004-07-20 Thread PalmOS
Hi All,


I've tried to find the Treo 600 connector specification but I can find
nothing. I've tried at PalmOne and HandSpring sites but no results.

Could someone give me the link where I can download the Technical document
of the Treo 600 ?

Thank you in advance

Agus



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Hide PDB

2004-07-20 Thread Dorotéa Karine

My application create some PDBs.
I want to hide this PDBs at the file list of Palm OS.
How can i do this?
Thanks.
Dorotéa Karine





___
Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis!
http://br.info.mail.yahoo.com/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: How to use prc-tools

2004-07-20 Thread John Marshall
On Mon, Jul 19, 2004 at 07:31:35PM +0200, John Marshall wrote:
> On Mon, Jul 19, 2004 at 05:30:51PM +0200, Yann Garcia wrote:
>>> /usr/share/prc-tools/include/PalmOS.h:15: warning: #warning [...] you
>>> may need to run palmdev-prep [...]
>>
>>   sdk-4 headers in 'include', libraries in 'lib'
>
> This is the expected output from palmdev-prep.  And presumably you are
> using m68k-palmos-gcc -palmos4 *after* having run palmdev-prep :-).

And the moral of the story is: never presume anything :-).

Yann sent me the -v output, and the problem was indeed the obvious one:
palmdev-prep had not yet been run, despite the installation instructions
and wording in the warning.

Well, it's easily fixed :-).

John

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Ho can I save a bitmap in a non-res database?

2004-07-20 Thread Ben Combee
At 05:28 AM 7/20/2004, you wrote:
I'm using BmpCreateBitmapV3() to get raw data saved in a record using 
BmpGetBits(). How can I convert it to BitmapType? Can I just do a cast 
like (BitmapType*)ptr_to_myBitmapV3?
Please look at the sample code in the PalmSource KB at
http://kb.palmsource.com/cgi-bin/palmsource.cfg/php/enduser/std_adp.php?p_faqid=341
The BitmapRsrc sample code shows how to read and write bitmaps.
-- Ben Combee, DTS technical lead, PalmSource, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Palm OS Dev Fourm Archives: http://news.palmos.com/read/all_forums/

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Treo 600 connector

2004-07-20 Thread Ben Combee
At 07:34 AM 7/20/2004, you wrote:
I've tried to find the Treo 600 connector specification but I can find
nothing. I've tried at PalmOne and HandSpring sites but no results.
Could someone give me the link where I can download the Technical document
of the Treo 600 ?
The Treo 600 development guide (a download at pluggedin.palmone.com) has a 
chapter describing the connector and giving pin descriptions.

-- Ben Combee, DTS technical lead, PalmSource, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Palm OS Dev Fourm Archives: http://news.palmos.com/read/all_forums/

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: PRC-Tools and Symbol API for scanner

2004-07-20 Thread Roger Stringer

Subject: PRC-Tools and Symbol API for scanner
From: "Olivier" <[EMAIL PROTECTED]>
Date: Mon, 19 Jul 2004 07:36:08 -1000
X-Message-Number: 16
Hi,
How i can get documentation on how to use the Symbol scanner ( like on SPT
1800 and SPT 1550 ). What is the event i have to catch in my C programs
written with Palm PRC tools ? Do i have to down load a specifique API and
library from symbol or what ?
Documentation and SDK are available for free from Symbol's web site.
I know their SDK works with Codewarrior, but I don't know if Symbol ever 
supported PRC tools.  I suggest you license a copy of Codewarrior from 
Metrowerks.

You also get the Symbol SDK with v9 of Codewarrior.
Roger Stringer
Marietta Systems, Inc.  (www.mariettasystems.com)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Treo 600 Focus Problem

2004-07-20 Thread Ste
Hi all,
I've a problem with the focus on a field on treo600. In a form I've a
TabControl (from POL library) with two tabs.
 In the first tab there are some fields that I use to search items, while in
second tab there is a CustomGrid control where I show search results.

I don't switch tabs by means of TabControl Header (I made it invisible with
SetTabHeight (-1); ) : at the begin the form shows only the first tab, with
search fields, and when user presses the "Search" button, it shows the
second tab with search results (using  SetActiveTab method of TabControl).
If user presses again "Search" button, it shows again first tab and he can
make a new search.

I've created a Navigation Map with pilrc for the form.

The problem is that if the user writes something in one of search fields of
the first tab and presses "Search" button (with the focus in the field),
when he presses the button for the second time (to make a new search), the
treo600 shows the field with the focus with a blue border. If I press the
central button of 5-way navigator, I enter in the field (I can see the
blinking cursor), but I can't write on it! Just the special hard keys work
on this field! But if I move to another field and come back to the initial
field, then I can finally write on it.

Why the field behaves in that way? Is there any workaround to this kind of
"bug" ?



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Creating > 64Kb movable chunk

2004-07-20 Thread Luc Le Blanc
"[ a | x ] - Peter Alex" a écrit :

> There is an article on kb.palmsource.com 'keyword'
> memglueptrnew which discuss about large memory chunk
> allocation (to use memglueptrnew, bmpcreate or
> ftrptrnew).
>
> i hope it can help

Not much, alas. None of these calls allocate movable chunks, which remains the problem 
if further resizes are to take place.
The only workaround I see: allocate nonmovable chunks, and when resizing is needed, 
create a new bigger chunk, copy the old
chunk into the new chunk and drop the old chunk. But that requires twice the heap 
space, and that sounds like a perfect recipe
to fragment memory.


--
Luc Le Blanc


> --- Luc Le Blanc <[EMAIL PROTECTED]> wrote:
> > My application needs to store various computation
> > results into memory
> > chunks. Since these chunks need to grow over time in
> > the course of the
> > application, I allocate them as movable using
> > MemHandleNew to prevent
> > that one chunk blocks another when attempting a
> > resize. Alas,
> > MemHandleNew seems to be limited to 64Kb (I get a
> > NULL beyond that),
> > unlike a new API like MemGluePtrNew that seems to be
> > limited only by the
> > device heap space. Is there a way to allocate a
> > movable chunk > 64Kb?


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


RE: Treo 600 connector

2004-07-20 Thread Agus Silas
Thanks a lot Ben...

Agus
-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Ben
Combee
Envoyé : mardi 20 juillet 2004 14:38
À : Palm Developer Forum
Objet : Re: Treo 600 connector

At 07:34 AM 7/20/2004, you wrote:
>I've tried to find the Treo 600 connector specification but I can find
>nothing. I've tried at PalmOne and HandSpring sites but no results.
>
>Could someone give me the link where I can download the Technical document
>of the Treo 600 ?

The Treo 600 development guide (a download at pluggedin.palmone.com) has a 
chapter describing the connector and giving pin descriptions.


-- Ben Combee, DTS technical lead, PalmSource, Inc.
"Combee on Palm OS" weblog: http://palmos.combee.net/
Palm OS Dev Fourm Archives: http://news.palmos.com/read/all_forums/



-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/


--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Create (or adjust) Scrollbar dynamically?

2004-07-20 Thread Geoffrey
Hi all,

I got a text field that create dynamically by FldNewField. I want to
have a scrollbar with the same height of the text field.
The problem is the height of the text field is dynamically assign, how
can I make the height of the scrollbar be the same as the field?
It seems no API to create or adjust a scrollbar dynamically, can anyone
give me some hints on it?

Thank you.
Geoffrey


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


about resources database.

2004-07-20 Thread BrownB
Can I put structures or other "non-resource" data in a resource database?
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Create (or adjust) Scrollbar dynamically?

2004-07-20 Thread Ben Combee
At 09:40 AM 7/20/2004, you wrote:
Hi all,
I got a text field that create dynamically by FldNewField. I want to
have a scrollbar with the same height of the text field.
The problem is the height of the text field is dynamically assign, how
can I make the height of the scrollbar be the same as the field?
FrmSetObjectBounds will adjust the dimensions of a scrollbar.
-- Ben Combee, DTS technical lead, PalmSource, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Palm OS Dev Fourm Archives: http://news.palmos.com/read/all_forums/

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: about resources database.

2004-07-20 Thread Ben Combee
At 09:40 AM 7/20/2004, you wrote:
Can I put structures or other "non-resource" data in a resource database?
A resource is just a blob of data with a four-byte type and a 16-bit 
ID.  As long as the type you use doesn't conflict with a system type, you 
can put whatever you want in there.  In my SXSW 2004 app, I store whole 
databases in resource chunks, using a list of pointer offsets in another 
chunk to quickly navigate through the unstructured data.

-- Ben Combee, DTS technical lead, PalmSource, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Palm OS Dev Fourm Archives: http://news.palmos.com/read/all_forums/

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


bitmap in a table cell?

2004-07-20 Thread geoff
Hey,

Does anyone know how to put a bitmap in a table cell?

Thanks

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: bitmap in a table cell?

2004-07-20 Thread Dorotéa Karine
Put in the TableDrawItemFuncType function this:

x = bounds->topLeft.x ;
y = bounds->topLeft.y ;

h = DmGetResource(bitmapRsc, img); 
if (h != NULL) 
{
p = (BitmapType *)MemHandleLock(h);
WinDrawBitmap((BitmapPtr) p, x, y);
MemHandleUnlock(h);   
DmReleaseResource(h);
}   

I hope this help.
Dorotéa Karine

--- geoff <[EMAIL PROTECTED]> escreveu: > Hey,
> 
> Does anyone know how to put a bitmap in a table
> cell?
> 
> Thanks
> 
> -- 
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
> http://www.palmos.com/dev/support/forums/
>  





___
Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis!
http://br.info.mail.yahoo.com/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


libprc and chained headers

2004-07-20 Thread Eric Potter
I created a desktop app to create pdb files for my palm application. To 
create the record I used the libprc library that comes with par. Libprc 
is a great library, but I do have one problem. When I create very large 
databases, the resulting pdb file has chained headers. We would like to 
aviod this. Is there a way to make libprc not use chained headers?

thanks
Eric
--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


field to list to DB questions

2004-07-20 Thread Brandon Prater
I am trying to take a number from a field and put it into a list when you hit the an 
add button. I have an error alert set to go off if the field is null, and a general 
debugging alert that pops up with your entered value if a number is present in the 
field. This seems to work the first time around. If you enter a number and hit the add 
button (the debug alert pops up with your entered 
value). If you leave the field blank and hit the add button, you get the error alert. 

The problem is after hitting the add button once,you can't go back and edit the field 
to put another number in. The cursor is there the field is blank, and you can't enter 
anything. On top of that, hitting the add button a second time gets you the Gen Debug 
alert with the first value you entered, instead of the empty field error alert. It 
seems like the field is not displaying the current pointer text after you hit the Add 
button, nor can you edit the text. Does this have something to do with handles? (which 
I am not using at this time??). I tried using one but got an error on a line like 
this: 
Handle h; 
so I gave up on that. 

I would also like to put this number in a list that is on the same form, and 
eventually in a database. concerning the list part, I am guessing that I need to add 
this value from the field to an array. I tried setting up an array or intergers just 
to play around with like this: 
int[5] practice; 
But that got me an error too. Would UInt32[5] practice; work? 

Also concerning the list, I am getting an error on this line: 
ListType listP; 

One last quick question, in Oreilly book as a note: 
C doesn't require an explicit typecast when casting from a void * such as the 
FrmGetObjectPtr. It automatically typecasts for you. C++, on the other hand, requires 
and explicit typecast in that situation. 
what does this mean, example...??? 

Now on to the code... 
[B]a[/B]

Boolean TableADFormDoButtonCommand(UInt16 command) { 

Boolean handled = false; 
Char *fldTextP; 
Char *listTextP, *newline = "\n"; 
FormPtr frm = FrmGetActiveForm(); 
FieldPtr fld = FrmGetObjectPtr(frm,FrmGetObjectIndex(frm,TableADT
ableNumField)); 
fldTextP = FldGetTextPtr(fld); 
// ListType *listP; 
// ListType listP; <-error here

switch (command) { 
case TableADDoneButton: 
FrmGotoForm (MainForm); 
handled = true; 
break; 

case TableADAddBtnButton: 

// FrmAlert(EnteraTableNumberAlert); 
if (fldTextP ==NULL){ 
FrmAlert(EnteraTableNumberAlert); 
} 
else{ 

FrmCustomAlert(GenDebugAlert,fldTextP," "," "); // <-this is the Gen Debug alert 
that displays the nubmer in the field
fldTextP = NULL; 

//these two lines are also creating errors
// listP = GetObjectPtr(TableADTableListList); 
// listTextP = LstGetSelectionText(listP, LstGetSelection(listP)); 


//I don't think this works b/cause it uses listTestP
if (listTextP != NULL) { /* If NULL, nothing is selected. */ 
FldGrabFocus(fld); 
FldInsert(fld, listTextP, StrLen(listTextP)); 
FldInsert(fld, newline, StrLen(newline)); 
} 
else 

FrmAlert(EnteraTableNumberAlert); 

// FrmAlert(ChooseErrandAlert); 
handled = true; 
break; 

default: 
break; 
} 

return (handled); 
} 

//using Codewarrior C++ and Sony PEG-615C POSE 

Thanks in advance... this forum rocks!! 
CliAce.

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Event for highlighting list entry

2004-07-20 Thread Curtis Hawthorne
Hi all,

Is there any way to receive an event as soon as a list item is highlighted?  I want to 
let a user drag the stylus over several list items (and possibly below the list so it 
starts scrolling) and get events when each of the items is highlighted.  My eventual 
goal is to be able to rearrange the items in the list by letting the user drag them 
around, similar to the Winamp or XMMS playlists.

The lstSelectEvent doesn't work for this because it only happens when the pen is 
lifted.  I also tried getting penDownEvent's and then doing a LstGetSelection, but 
aparently that isn't updated until the pen is lifted as well.  The only other thing I 
can think of is using the X and Y coordinates from the penDownEvent and somehow 
calculating which list entry that corresponds to or maybe sending a penUpEvent as soon 
as I get a penDownEvent that is within the list boundaries, but I'm not sure how all 
that would work.

Thanks!

Curtis H.
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Silly question re control groups

2004-07-20 Thread Rob Riker
OK, I feel a little silly posting this one, since it must be right in front of my face 
somewhere, but damned if I can find it...

Given a control on a form, how does one get its group id?
It's part of the ControlType struct, but the docs say we're supposed to treat that 
struct as opaque & use a getter API. But I can't find one to get at the group id.

Somebody slap me in the face with the obvious truth, please, I can take it...
-r
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


"Invisible" app?

2004-07-20 Thread Danielle O'Hallisey
Hi All,

I continue to make good on my pledge to find new uses for the Palm device,
and now want to know the following:
Is it possible to compile an application so that it is installed on the
handheld with no visible icon?  I am creating a suite of applications to
manage various aspects of a remote data logger installation and the idea is,
in part, to have each app set and manage alarms to “rescue” other apps in
case some event fails to happen the way it is intended (this is all part of
a strategy of multiply-redundant failsafe mechanisms).  Anyway, I can place
a device in the field with several icons on it for my installation, but
wanted to run the alarm handlers in “hidden” mode, as there is no user
interaction with them to speak of.

Thank you,

Danielle O'Hallisey


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Event for highlighting list entry

2004-07-20 Thread SLO Revo News
Is there any way to receive an event as soon as a list item is highlighted?
Not that I know of. At that point, it's too late. You can, however, 
detect when the user taps on a list item by looking for 
lstEnterEvent, then do whatever you want--track the pen, highlight an 
item, etc.

I've successfully used this method to do list item repositioning, 
multiple item selection and deselection by dragging, and tap and hold 
detection.

--
Regards,
Steve Mann
---
steve-at-slorevo.com
Available for Contract Work
--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: bitmap in a table cell?

2004-07-20 Thread geoff
Thanks much Dorotéa

- Original Message - 
From: "Dorotéa Karine" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, July 20, 2004 12:03 PM
Subject: Re: bitmap in a table cell?


> Put in the TableDrawItemFuncType function this:
>
> x = bounds->topLeft.x ;
> y = bounds->topLeft.y ;
>
> h = DmGetResource(bitmapRsc, img);
> if (h != NULL)
> {
> p = (BitmapType *)MemHandleLock(h);
> WinDrawBitmap((BitmapPtr) p, x, y);
> MemHandleUnlock(h);
> DmReleaseResource(h);
> }
>
> I hope this help.
> Dorotéa Karine
>
> --- geoff <[EMAIL PROTECTED]> escreveu: > Hey,
> >
> > Does anyone know how to put a bitmap in a table
> > cell?
> >
> > Thanks
> >
> > -- 
> > For information on using the Palm Developer Forums,
> > or to unsubscribe, please see
> > http://www.palmos.com/dev/support/forums/
> >
>
>
>
>
>
> ___
> Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis!
> http://br.info.mail.yahoo.com/
>
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Event for highlighting list entry

2004-07-20 Thread Curtis Hawthorne
> Not that I know of. At that point, it's too late. You can,
> however, detect when the user taps on a list item by looking for
> lstEnterEvent, then do whatever you want--track the pen, highlight
> an item, etc.

That sounds like exactly what I want.  Unfortunately, I'm very new to Palm programming 
and don't quite understand how I would accomplish this.  How do I go about tracking 
the pen, determining what list item should be selected, and highlighting an item?  

Determining what list item should be highlighted sounds the most confusing.  When I'm 
tracking the pen, will there be a way to retrieve the list id that should be 
highlighted or will I just get X and Y coordinates?  If it's just X and Y coordinates, 
is there a good method of relating that to a list ID (even when the pen is dragged 
below the list)?

If you could point me at what API calls I need to make or some example code it would 
be much appreciated.

Thanks again!

Curtis H.
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


hidding app icon.. but app tha is on rom

2004-07-20 Thread Alexandre Luz Barreto
ok i want to hid a icon form the lancher
but i want to hide memopad, adress book everthing that is on the rom
i want just to show my app, hotsync and calc
is there a way to do that?
cause the user can't use the other things and not even see it
thanx
--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: JpegLib

2004-07-20 Thread Konstantin Klyatskin
> Only after the author of AbsoluteWord's JPEG library reduces or has
reduced
> the price substantially would I be willing to give it a second look.  It's
> price is prohibitive of small-time development with it, and it only has
one
> major feature not present in the other (free) libraries - GIF animation.
>

Small-time developers may use the library for free provided they are OK with
nags it draws.
As for features not presented in other libraries I could list:
- minor memory reguirements
- process callbacks
- Palm OS 3.5+ compatibility
- fast scaling on decoding stage
- float scaling
- library size and speed
- easy integration/ samples/ support

Anyway, the choice is up to you.
-- 
http://www.absoluteword.com/jpglib/





-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


[ANN]: HTTPS (Secure) Library for Palm OS Released

2004-07-20 Thread SebastianM
Hi,

We recently released our NEW *HTTPS (Secure) Library for Palm OS*. This is a
CodeWarrior C++ Palm OS implementation of both HTTP and HTTPS (Secure)
protocols. This library enables your program to retrieve any document using
HTTPS, providing a secure connection to a server. HTTP protocol is also
included in the library.

The product comes packed as a Codewarrior library file with C/C++ headers,
so you can include it in your own programs by simply linking it. The Secure
HTTPS protocol requires Palm OS 5.0 or later (NOT supported in previous
versions). The HTTP runs on any Palm OS device running Palm OS version 3.0
or later.

For more information, please check here
http://www.pdadevelopers.com/pda/homehttps.htm

Thanks,

SebastianM
PDADevelopers.com
Visit us at http://www.pdadevelopers.com


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


wincopyrectangle/ offscreen manipulation

2004-07-20 Thread Catherine Soldan
  Have been programming for a long time but am just learning my way around palmos. 
While programming a more or less classic swap type jigsaw puzzle,I wish to have a copy 
of the screen image offscreen so that I can put the pieces back onscreen in mixed-up 
order. I have been attempting to do this by copying the screen to offscreen by using 
wincopyrectangle src to dest with coords of 160x160 (entire screen). I also attempted 
winsavebits. The form bitmap has been divided up and the exact coordinates of each 
piece is in an array of records(yes I am a pascal person I don't believe 'C' existed 
at the time I learned pascal and I never switched. Thanks delphi, Thanks 
pocketstudio). The problem is that when I put the piece back on the main screen using 
the exact copied offscreen image with the exact coordinates it is the wrong size. It 
appears to be from the correct place and into the correct place but is either 
double-width or double height or both.
  I assume that there is something that is fundamentally wrong about doing things in 
this manner. Please inform me of how such a simple procedure is commonly done and what 
I am doing incorrectly.



peter r. soldan
[EMAIL PROTECTED]
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: wincopyrectangle/ offscreen manipulation

2004-07-20 Thread Tim Kostka
What you are doing sounds correct (copying on/offscreen with
WinCopyRectangle).  The OS Reference recommends you use bitmap functions
instead, but both ways should work.

When using a high density screen, make sure to create the offscreen window
in the same format as the screen (nativeFormat) to avoid losing resoution.
If you're doing anything with the coordinate system, make sure you reset it
when copying/recopying the window.
-- 
Tim Kostka
http://www.nuprograms.com


"Catherine Soldan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>   Have been programming for a long time but am just learning my way around
palmos. While programming a more or less classic swap type jigsaw puzzle,I
wish to have a copy of the screen image offscreen so that I can put the
pieces back onscreen in mixed-up order. I have been attempting to do this by
copying the screen to offscreen by using wincopyrectangle src to dest with
coords of 160x160 (entire screen). I also attempted winsavebits. The form
bitmap has been divided up and the exact coordinates of each piece is in an
array of records(yes I am a pascal person I don't believe 'C' existed at the
time I learned pascal and I never switched. Thanks delphi, Thanks
pocketstudio). The problem is that when I put the piece back on the main
screen using the exact copied offscreen image with the exact coordinates it
is the wrong size. It appears to be from the correct place and into the
correct place but is either double-width or double height or both.
>   I assume that there is something that is fundamentally wrong about doing
things in this manner. Please inform me of how such a simple procedure is
commonly done and what I am doing incorrectly.
>
>
>
> peter r. soldan
> [EMAIL PROTECTED]
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Event for highlighting list entry

2004-07-20 Thread SLO Revo News
That sounds like exactly what I want.  Unfortunately, I'm very new 
to Palm programming and don't quite understand how I would 
accomplish this.  How do I go about tracking the pen, determining 
what list item should be selected, and highlighting an item?
You can track the pen  using EvtGetEvent. There should be a sample in 
the KnowledgeBase involving capturing a signature.

Determining what list item should be highlighted sounds the most 
confusing.  When I'm tracking the pen, will there be a way to 
retrieve the list id that should be highlighted or will I just get X 
and Y coordinates?  If it's just X and Y coordinates, is there a 
good method of relating that to a list ID (even when the pen is 
dragged below the list)?
X & Y coordinates, but the conversion is simple enough. Here's some "code":
// Figure out what line they're starting on. Do this after lstSelectEvent.
FormPtr frmP = FrmGetActiveForm ();
RectangleType bounds;
FrmGetObjectBounds ( frmP, FrmGetObjectIndex ( frmP, YOUR_LIST_ID ), &bounds );
pixelsPerLine   = bounds.extent.y / YOUR_LIST_HEIGHT_IN_LINES;
relativeY   = LSTSELECTEVENT_Y_COORDINATE- bounds.topLeft.y;
startLine   = relativeY / pixelsPerLine;
// Wait for another event to figure out where they stopped
do
{
EvtGetEvent( &event, evtWaitForever );
} while (event.eType != penUpEvent );
// Figure out which line they released on
relativeY   = event.screenY - bounds.topLeft.y;
endLine = relativeY / pixelsPerLine;
--
Regards,
Steve Mann
---
steve-at-slorevo.com
Available for Contract Work
--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


How to create Custom Fonts

2004-07-20 Thread Saurabh Agarwal
Hello,

I want to use custom fonts for the application.

I have downloaded XFont tool for creating custom font. It created .pfn file.
For defining custom font we need resource. How to create resource using .pfn
file.

Thanks.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Using C vs C++ to develop apps

2004-07-20 Thread Roel Wijmans
I appreciate your reply Keith,

I can see some of the issues with C++ but i still would like to hear other developer's 
opinion on the topic. As i'm not a hugely technical person as i'm just starting out, 
some of the topics in the FAQ articles don't mean much to me

>From those articles it seems C is still favoured over C++. but perhaps people are 
>combining the two?
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


RE: Event for highlighting list entry

2004-07-20 Thread Y Rekha
Hi,

Handle the lstSelectEvent. The EventPtr will have information like list
selection. To be exact eventP->data.lstSelect.selection will give you
the list selection.

rry

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of SLO
Revo News
Sent: Wednesday, July 21, 2004 6:23 AM
To: Palm Developer Forum
Subject: Re: Event for highlighting list entry

>That sounds like exactly what I want.  Unfortunately, I'm very new 
>to Palm programming and don't quite understand how I would 
>accomplish this.  How do I go about tracking the pen, determining 
>what list item should be selected, and highlighting an item?

You can track the pen  using EvtGetEvent. There should be a sample in 
the KnowledgeBase involving capturing a signature.

>Determining what list item should be highlighted sounds the most 
>confusing.  When I'm tracking the pen, will there be a way to 
>retrieve the list id that should be highlighted or will I just get X 
>and Y coordinates?  If it's just X and Y coordinates, is there a 
>good method of relating that to a list ID (even when the pen is 
>dragged below the list)?

X & Y coordinates, but the conversion is simple enough. Here's some
"code":

// Figure out what line they're starting on. Do this after
lstSelectEvent.

FormPtr frmP = FrmGetActiveForm ();
RectangleType bounds;

FrmGetObjectBounds ( frmP, FrmGetObjectIndex ( frmP, YOUR_LIST_ID ),
&bounds );
pixelsPerLine   = bounds.extent.y / YOUR_LIST_HEIGHT_IN_LINES;
relativeY   = LSTSELECTEVENT_Y_COORDINATE- bounds.topLeft.y;
startLine   = relativeY / pixelsPerLine;

// Wait for another event to figure out where they stopped

do
{
EvtGetEvent( &event, evtWaitForever );
} while (event.eType != penUpEvent );

// Figure out which line they released on

relativeY   = event.screenY - bounds.topLeft.y;
endLine = relativeY / pixelsPerLine;

-- 
Regards,
Steve Mann
---
steve-at-slorevo.com
Available for Contract Work

-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/