Re: Adding categories programatically

2007-07-17 Thread Lionscribe
You should unlock the category ptr brfore setting the name. Also you do not 
unlock if you do not find the name.
In any case you should rather code this way without directly accessing the 
appInfoPtr (though it's a drop slower:

UInt16 i;
char name[dmCategoryLength];

for (i = 0; ihttp://www.access-company.com/developers/forums/


Re: Re: Adding categories programatically

2007-07-17 Thread helen . khais
I am on a honeymoon vacation from July 16th until July 30th. For all urgent 
inquiries you may contact Maria Dyatlova ([EMAIL PROTECTED]) 

Thanks and Best regards, Helen 



-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


PDB file reception

2007-07-17 Thread Hynek Sladky
I need receive PDB file (from web server) and save it to RAM. Is there 
any PalmOS function to convert binary stream (PDB downloaded from web) 
into PDB in RAM (divided into records...)?
I think there must be some support while it is used for saving PDB/PRC 
after sending it through IrDA or BlueTooth but I am not able to find 
which PalmOS function it is...


Thanks in advance.
Hynek Sladky

--
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: Adding categories programatically

2007-07-17 Thread Michal Seliga
[EMAIL PROTECTED] wrote:
> I am on a honeymoon vacation from July 16th until July 30th. For all urgent 
> inquiries you may contact Maria Dyatlova ([EMAIL PROTECTED]) 
> 
> Thanks and Best regards, Helen 
happy honeymoon. and forum admin could ban this address as present ;-)

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: PDB file reception

2007-07-17 Thread Bodo Wenzel
> Is there any PalmOS function to convert binary stream (PDB downloaded from
> web) into PDB in RAM (divided into records...)?
You might like to use DmCreateDatabaseFromImage().

Bodo


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: Scrolling Fields

2007-07-17 Thread f4t3z3r0
Hmm, I dunno. Maybe the pagesize is too high? Thus it would jump from beginning 
to end (and vice versa) in one click.

- Original Message 
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: Palm Developer Forum 
Sent: Monday, July 16, 2007 11:12:10 AM
Subject: Scrolling Fields

I'm trying to set up a field in my application that works with a scroll bar. I 
have everything laid out but I am having trouble getting the field to respond 
to changes in the scrollbar. The field just stays put or jumps all the way to 
the end or the beginning when I attempt to move the scrollbar.
When I move through and edit the field the scrollbar responds perfectly it just 
doesn't work the other way around. Here is the function that I call when I 
receive the SclRepeatEvent. 

Boolean MainForm::updateField(Int16 oldpos, Int16 newpos, struct ScrollBarType 
* bar)
{
struct FormType * frmP = FrmGetFormPtr(Messages);
FieldType *field;
UInt16 fieldIndex;
fieldIndex = FrmGetObjectIndex(myForm, Messages);
field = (FieldType *)FrmGetObjectPtr(myForm, fieldIndex);
UInt16 scrollPos = 0;
UInt16 textHeight = 0;
UInt16 fieldHeight = 0;
UInt16 maxValue = 0;
const char * myChars = FldGetTextPtr(field);
fieldHeight = FldCalcFieldHeight(myChars, 140);
Int16 minimum = 0;
Int16 maximum = 0;
Int16 value;
Int16 pageSize;
UInt16 linesToScroll = (UInt16) newpos - oldpos;
WinDirectionType direction = winUp;
if(linesToScroll<0)
{
linesToScroll = -1 * linesToScroll;
direction = winDown;
}
FldScrollField (field, linesToScroll,direction); 
// Update the scroll bar. 
SclGetScrollBar (bar, &value, &minimum, &maximum, &pageSize); 
if (direction == winUp) 
{
value -= (Int16) linesToScroll; 
}
else 
{
value += (Int16) linesToScroll; 
}
SclSetScrollBar (bar, value, (Int16) 0, (Int16) fieldHeight, pageSize); 
return true;
}
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/




-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: Scrolling Fields

2007-07-17 Thread Andrew Tamoney
I have played around a bunch with the page size.  I have set it to one and
also 14 which is the number of lines in the field.  I have set min to 0 and
max to the number of lines in the field so the value of 14 makes the most
sense to me but for some reason that didn't work.

On 7/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hmm, I dunno. Maybe the pagesize is too high? Thus it would jump from
> beginning to end (and vice versa) in one click.
>
> - Original Message 
> From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> To: Palm Developer Forum 
> Sent: Monday, July 16, 2007 11:12:10 AM
> Subject: Scrolling Fields
>
> I'm trying to set up a field in my application that works with a scroll
> bar. I have everything laid out but I am having trouble getting the field to
> respond to changes in the scrollbar. The field just stays put or jumps all
> the way to the end or the beginning when I attempt to move the scrollbar.
> When I move through and edit the field the scrollbar responds perfectly it
> just doesn't work the other way around. Here is the function that I call
> when I receive the SclRepeatEvent.
>
> Boolean MainForm::updateField(Int16 oldpos, Int16 newpos, struct
> ScrollBarType * bar)
> {
> struct FormType * frmP = FrmGetFormPtr(Messages);
> FieldType *field;
> UInt16 fieldIndex;
> fieldIndex = FrmGetObjectIndex(myForm, Messages);
> field = (FieldType *)FrmGetObjectPtr(myForm, fieldIndex);
> UInt16 scrollPos = 0;
> UInt16 textHeight = 0;
> UInt16 fieldHeight = 0;
> UInt16 maxValue = 0;
> const char * myChars = FldGetTextPtr(field);
> fieldHeight = FldCalcFieldHeight(myChars, 140);
> Int16 minimum = 0;
> Int16 maximum = 0;
> Int16 value;
> Int16 pageSize;
> UInt16 linesToScroll = (UInt16) newpos - oldpos;
> WinDirectionType direction = winUp;
> if(linesToScroll<0)
> {
> linesToScroll = -1 * linesToScroll;
> direction = winDown;
> }
> FldScrollField (field, linesToScroll,direction);
> // Update the scroll bar.
> SclGetScrollBar (bar, &value, &minimum, &maximum, &pageSize);
> if (direction == winUp)
> {
> value -= (Int16) linesToScroll;
> }
> else
> {
> value += (Int16) linesToScroll;
> }
> SclSetScrollBar (bar, value, (Int16) 0, (Int16) fieldHeight,
> pageSize);
> return true;
> }
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe,
> please see http://www.access-company.com/developers/forums/
>
>
>
>
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe,
> please see http://www.access-company.com/developers/forums/
>

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

application start from another application

2007-07-17 Thread luis maldonado

Hi one and all...

I'm trying to start an application using the following code:

Err = SysAppLaunch (0 , 0, 0,0 , "MyApp",  &resultP);

and all I get is a crash, what am I doing wrong?

in reading the ACCESS documentation, it documents the
Err SysAppLaunch (
  UInt16 cardNo,
  LocalID dbID,
  UInt16 launchFlags,
  UInt16 cmd,
  MemPtr cmdPBP,
  UInt32 *resultP
)

as the API function to use to call another application as a subroutine but 
the documentation
does not give an example on how to use the function or a description of the 
parameter block...


Can any one point me in the right direction?

Thanks to all

_
http://newlivehotmail.com


--
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: application start from another application

2007-07-17 Thread Phreak OnALeash
SysUIAppSwitch(0,DmFindDatabase(0,"MyApp"),0,sysAppLaunchCmdNormal,
0,&resultP);

LocalID is not the same as app name. to get id use DmFindDatabase

On 7/17/07, luis maldonado <[EMAIL PROTECTED]> wrote:
>
> Hi one and all...
>
> I'm trying to start an application using the following code:
>
> Err = SysAppLaunch (0 , 0, 0,0 , "MyApp",  &resultP);
>
> and all I get is a crash, what am I doing wrong?
>
> in reading the ACCESS documentation, it documents the
> Err SysAppLaunch (
>   UInt16 cardNo,
>   LocalID dbID,
>   UInt16 launchFlags,
>   UInt16 cmd,
>   MemPtr cmdPBP,
>   UInt32 *resultP
> )
>
> as the API function to use to call another application as a subroutine but
> the documentation
> does not give an example on how to use the function or a description of
> the
> parameter block...
>
> Can any one point me in the right direction?
>
> Thanks to all
>
> _
> http://newlivehotmail.com
>
>
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe,
> please see http://www.access-company.com/developers/forums/
>



-- 
/*PhreakOnALeash*/

WELCOME TO THE DISCLAIMER!

Please, protect your family.
This mail contains explicit depictions
Of things which are real.
These real things are commonly known as life.
So, if it sounds sarcastic, don't take it seriously.
If it sounds dangerous,
Do not try this at home or at all.
And if it offends you, just don't listen to it.

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

re: application start from another application

2007-07-17 Thread caio-developerpavilion
Hi Luis,

To call another application, use the SysUIAppSwitch function.
Take a look at this sample:

LocalID localID;
localID = DmFindDatabase (0, "Memo Pad");

if (localID)
{
SysUIAppSwitch(0, localID, sysAppLaunchCmdNormalLaunch, 0);
}

Best Regards,
-- 

Caio Proiete
PDAExpert Tecnologia em Software

Web Site: http://www.pdaexpert.net


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: PDB file reception

2007-07-17 Thread Jeff Loucks

ExgDBRead() and ExgDBWrite() may help you.

On 7/17/07, Bodo Wenzel <[EMAIL PROTECTED]> wrote:

> Is there any PalmOS function to convert binary stream (PDB downloaded from
> web) into PDB in RAM (divided into records...)?
You might like to use DmCreateDatabaseFromImage().

Bodo


--
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/




--
[Jeff Loucks]

--
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Tungsten E2 and CW 9.3 yet again

2007-07-17 Thread kiryat8
I have read the threads concerning debugging the Tungsten E2 with CW 9.3 
without being able to resolve the matter.
1) I installed CW9.3 without having a previous version on my computer.
2) I installed Desktop PalmDesktopWin414e.zip. The synch works fine.
3) The link to the DotDotTwo Palm program is broken so I download the Chinese 
version and recompiled. When running the HotSynch on Palm does not work so I 
guess it is working.
4) When I try to debug from CW I immediately get a dialog "Connect Attempt 
failed".
5) I tried copying the USBTransport.dll file but without any change.
it's version is 6.0.1.0.
Any suggestions
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/