Re: Hotsync wrecks touch screen

2006-04-12 Thread Thomas Damme

Mark Chauvin schrieb:

I have a customer that installs my program and his
digitizer loses its calibration.  It's on a m100, and
I've never seen this happen before.  What could be
causing it?  All he has to do is install the .prc with
Palm Desktop, do a hotsync, and his digitizer
calibration is way off.  Hard reset, recalibrate,
everything is fine until he does another hotsync.


We _often_ have this when you use a new Palm and try to sync it under an 
old name (when you replace the old). Then old preferences are restored 
and mix up everything. Between older Palms this worked but the new once 
kill each other with their different types of preferences.
Maybe your software problem is just a coincidence when he installs his 
new Palm??


Just a thought, but not unlikly..

Regards,

Thomas

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


How to change the text on button in runtime

2006-04-12 Thread hvreddy
Hi all,
Is there any API to change the text(label)(button name)  on the button in 
programm at runtime.
Thanks in advance,
Regards,
Harsha.
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: How to change the text on button in runtime

2006-04-12 Thread Rosca Bogdan
if i undestood crectly u want to change the, let;s say
a label's text at runtime .. here is how i do it ..
hope it will help

CtlSetLabel((ControlPtr)GetObjectPtr(MyFormMyLabelLabel),
  
);
ShowObject(ProduseNumeProdusLabel);

CtlSetLabel((ControlPtr)GetObjectPtr(MyFormMyLabelLabel),m_strMyNewLabelText);
ShowObject(ProduseNumeProdusLabel);

i use this twice coz it was the first thing that pop
out my mind when i saw that it doesn't completly
replace the text.. so first i insert that long space
then i insert the text i want to be shown

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: How to change the text on button in runtime

2006-04-12 Thread Rosca Bogdan
oops forgot to replace in show too :) .. srry about that

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: I need to know what type of UI element versamail uses

2006-04-12 Thread Lee Fyock

Ben Combee said:

Versamail uses it's own internal widget system that mostly replaces
the Palm OS widgets while still providing the Palm OS look-and-feel.=20
Nearly everything in VM is custom drawn.
  
VersaMail uses an internal widget system and OO framework, but nearly 
every widget has a Palm OS control at the bottom.


Are we agreeing with different words, or are you thinking of something 
in particular?


Lee


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


Displaying an icon in command bar

2006-04-12 Thread Tam Hanna
Hi Guys,
I have a little problem concerning the display of an icon in the command 
bar(while my app is not running).

Basically, everything works, but when users want to beam a file, a Fatal Alert 
like No lock bitmap is displayed.

What's wrong here? I already 'extracted' the bitmap into an own db,... but 
still don't get whats cooking...

Best regards
Tam Hanna


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


re: Hi-res on Tungsten T

2006-04-12 Thread Tam Hanna
Hi,
please keep in mind that some boxen with OS5 have a low-res screen. So, simply 
checking OS version will not suffice.

The documentation explains a different procedure...

Best regards
Tam Hanna
http://tamspalm.tamoggemon.com
http://www.tamoggemon.com

Created on the go using Versamail 2.6.1 on a Tungsten T3. Please accept my 
apologies for formatting!



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


Wierd memory allocation bug with gSOAP.

2006-04-12 Thread dvanderwel
(I posted this on the gSOAP discussion forum, but I figured I might be able to 
get help here since my problem might be a Palm issue and not a gSOAP issue).

Hello,

I had a working gSOAP Palm application that I had built using gSOAP 
2.7.6c.
 
wsdl2h.exe generates the xsd__base64Binary structure for the byte[] 
data type from a .NET web service.  Everything was fine and dandy 
until I upgraded to gSOAP 2.7.7.
 
Ever since the upgrade to 2.7.7 this data structure has been giving 
me serious memory allocation problems in my application, and I can't 
make any sense of it.

Here is some simplified code to explain my problem:

My old working code had a number of methods that connect to 
different web methods.  These web methods are dealing with 
base64Binary structures in the request object. 

Here is an example of how I was doing things when it worked 
(simplified). 

void Method1()
{
char* mystring = abcdefg;
struct _ns1__AuthenticateStudent_USCOREGeneral AuthenticateStudent;

AuthenticateStudent.base64struct= MemPtrNew(sizeof(struct 
xsd__base64Binary));
AuthenticateStudent.base64struct-__ptr = (unsigned char*)mystring;
AuthenticateStudent.base64struct-__size = StrLen(mystring);

//Call the web service
rc = soap_call___ns1__AuthenticateStudent_USCOREGeneral(soap, 
WebServiceURL, NULL, AuthenticateStudent, 
AuthenticateStudentResponse);  
}

Now, this code actually still works if i call it once.  If I 
call this method more than once I recieve the error MyApp just read 
from memory location 0x63657373, causing a bus error.  A bus error 
means that the application accessed a momory location that is not in 
RAM or ROM, nor corresponds to a memory mapped hardware register.

If I have a different method that makes use of the baseBinary64 
structure, it will fail if the above method was called first.

Now, if I modify this method to continually call the webservice it 
will work fine.  But it will still fail if I call the method a 
second time.

void Method1()
{
char* mystring = abcdefg;
struct _ns1__AuthenticateStudent_USCOREGeneral AuthenticateStudent;

AuthenticateStudent.base64struct= MemPtrNew(sizeof(struct 
xsd__base64Binary));
AuthenticateStudent.base64struct-__ptr = (unsigned char*)mystring;
AuthenticateStudent.base64struct-__size = StrLen(mystring);

//Call the web service
rc = soap_call___ns1__AuthenticateStudent_USCOREGeneral(soap, 
WebServiceURL, NULL, AuthenticateStudent, 
AuthenticateStudentResponse);  

MemPtrFree(AuthenticateStudent.base64struct);

AuthenticateStudent.base64struct= MemPtrNew(sizeof(struct 
xsd__base64Binary));
AuthenticateStudent.base64struct-__ptr = (unsigned char*)mystring;
AuthenticateStudent.base64struct-__size = StrLen(mystring);

//Call the web service
rc = soap_call___ns1__AuthenticateStudent_USCOREGeneral(soap, 
WebServiceURL, NULL, AuthenticateStudent, 
AuthenticateStudentResponse);  

... repeat ...

}

If I debug the code, the failure is occuring deep within the bowels 
of the gSOAP code.  This is also how I'm certain that its failing 
due to this data structure, since it fails on the line (my data 
structure is named hash):

soap_out_PointerToxsd__base64Binary(soap, ns1:hash, -1, a-
hash, );


SOAP_FMAC3 int SOAP_FMAC4 
soap_out__ns1__AuthenticateStudent_USCOREGeneral(struct soap *soap, 
const char *tag, int id, const struct 
_ns1__AuthenticateStudent_USCOREGeneral *a, const char *type)
{
soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, 
a, SOAP_TYPE__ns1__AuthenticateStudent_USCOREGeneral), type);
soap_out_string(soap, ns1:szLoginID, -1, a-
szLoginID, );
soap_out_string(soap, ns1:szPIN, -1, a-szPIN, );
soap_out_string(soap, ns1:szInstituteId, -1, a-
szInstituteId, );
soap_out_int(soap, ns1:versionNum, -1, a-versionNum, );

***IT FAILS ON THE NEXT LINE**
soap_out_PointerToxsd__base64Binary(soap, ns1:hash, -1, a-
hash, );
***IT FAILS ON THE PREVIOUS LINE**
soap_element_end_out(soap, tag);
return SOAP_OK;
}


And just for your reference, here is the data structure for my 
authenticate user web method that uses the base64binary data 
structure, as well as the base64binary structure.

struct _ns1__AuthenticateStudent_USCOREGeneral
{
char *szLoginID;
char *szPIN;
char *szInstituteId;
int versionNum; 
struct xsd__base64Binary *hash; 
};

struct xsd__base64Binary
{
unsigned char *__ptr;
int __size;
char *id;   /* optional element of type xsd:string */
char *type; /* optional element of type xsd:string */
char *options;  /* optional element of type xsd:string */
};


So does anyone have any idea why I'm having these problems when 
using gSOAP 2.7.7 and not 2.7.6c?
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: I need to know what type of UI element versamail uses

2006-04-12 Thread Ben Combee
On 4/12/06, Lee Fyock [EMAIL PROTECTED] wrote:
 Ben Combee said:
  Versamail uses it's own internal widget system that mostly replaces
  the Palm OS widgets while still providing the Palm OS look-and-feel.=20
  Nearly everything in VM is custom drawn.
 
 VersaMail uses an internal widget system and OO framework, but nearly
 every widget has a Palm OS control at the bottom.

 Are we agreeing with different words, or are you thinking of something
 in particular?

I was thinking that VM's table system was custom and that it had done
special stuff with buttons.  Thanks for the correction.

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


Gap between PDB header and PDB data

2006-04-12 Thread ach001
hi, i hope this is the right forum and i really hope someone can help.  from 
the documentation:

IMPORTANT: There is always a gap between the final record list in the header 
and the first block of data in the database, where the first block might be one 
of the following: the appInfo block, the sortInfo block, raw record or resource 
data, or the end of the file. The gap is traditionally two bytes long; however, 
if you write code to parse a database, your code should be able to handle any 
size gap, from zero bytes long and up.

How do i determine how long this gap will be?  Or do you just seek to the end 
of the header, then readByte until you hit a non-zero value?

(i'm trying to write a PC program to convert PDB to CVS.  i know there are lots 
out there already, but i'd like to merge this functionality into another 
another program i'd like to write)
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


PalmPhotoHandle

2006-04-12 Thread becksticles
Is there any way of converting a palmphotohandle to a WinHandle or vice versa? 
ie. so an image in an offscreen window can be scaled using PalmPhotoScaleImage, 
or a photohandle can be displayed using wincopyrectangle()

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


Re: Gap between PDB header and PDB data

2006-04-12 Thread Ben Combee
No, you use the pointers in the PDB header to find the offset to the
start of the first record.

On 4/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 hi, i hope this is the right forum and i really hope someone can help.  from 
 the documentation:

 IMPORTANT: There is always a gap between the final record list in the header 
 and the first block of data in the database, where the first block might be 
 one of the following: the appInfo block, the sortInfo block, raw record or 
 resource data, or the end of the file. The gap is traditionally two bytes 
 long; however, if you write code to parse a database, your code should be 
 able to handle any size gap, from zero bytes long and up.

 How do i determine how long this gap will be?  Or do you just seek to the end 
 of the header, then readByte until you hit a non-zero value?

 (i'm trying to write a PC program to convert PDB to CVS.  i know there are 
 lots out there already, but i'd like to merge this functionality into another 
 another program i'd like to write)
 --
 For information on using the PalmSource Developer Forums, or to unsubscribe, 
 please see http://www.palmos.com/dev/support/forums/


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


Dynamically Displaying Help Icon

2006-04-12 Thread Jim Duffy

Hi All,

Does anyone have suggestions on how one could dynamically display the help 
icon on a form? I'm referring to the 'i' icon that shows up in the upper 
right area of a toolbar if a help string resource is associated to the form.

I want the icon to show if a field in my DB has a string within it. One the 
user taps it, I want to take them to a custom dialog to show the record 
contents instead of popping up the standard Tips dialog.

Any suggestions?

Thanks in advance...

Jim



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