hi group,
how do u do?
i am working on a project "localisation of palm".
i am using gnu-prc tools 2.1 and sdk 4.0
i am basically developing hindi graffiti and a hindi
softkeyboard.
for the purpose i am creating custom glyphs and adding
the same to my code.
in hindi there are many exceptions.like
char1+char2=char 3.
for that i have to check,at every keydown event,  for
a specific character in the event data buffer before
it is handled by the system.if it is the one i am
looking for,i check for the previous character and
based on that i decide what to display finally.to take
in the previous character from the text field i have
to select it, draw it on a temporary text field ,take
a handle to the text on this this temporary field
,convert it to  a pointer (MemHandleLock) ,compare
,delete the contents of the temp field and then free
the memory occupied by the text by using 
FldFreeMemory.but this gives a problem!
say i m checking for letter h.so in my application if
i type h multiple times,it gives an error "field
object overlocked".in fact this problem is a little
spurious . sometimes it will occur , sometimes not.if
u press continue, it might not behave like an
intelligent code i.e. it may display dicrete
characters when it should display the combination.
the error comes from field.c 
any idea where i might find it?
it also gives errors lik "invalid handle" from mem
manager.c 
it also gives numerous memory leaks on the emulator,
but sometimes works fine  on the actual palm ,
sometimes not.i have a palm3e.
initially i tried changing the character in the event
character buffer and did not give handled=true,break
statements.but this invited a host of system errors
and the emulator would go into an infinite loop.
then i manually pasted it on the field and put the
statements , handled=true,break which eliminated the
errors.
in your opinion which is the better method?

is there any method where i can get a pointer to a
particular character on a text field without drawing
it on another temporary one ?
if no, can we make this temporary field invisible ?

i have also been able to display characters on a text
field on the click of a button . but when i save it
,it gives memory leaks.
how to avoid these memory leaks?
i am also having a problem of trying to save records
of a database in such a manner so they do not get
erased once the application quits.
do you think archiving the records will work?
or do you think, that i should save data in a
particular file.does that permanently store my data?
or is there something else to be done?

i am creating a glyph file and thats my custom glyphs
file.in single byte encoding, one can use only 255
characters.but hindi has many more literals and
combinations. as a result i wanna define 2 glyph files
so that i can have 255 x 2  possible glyphs.
for using the new glyphs for certain characters, i
have to use the function,FldSetFont.but that resets
the font of the entire field and redraws the field
with these new fonts. is there a way for me to use two
different fonts at the same time in my field?

i need this help fast!
bye, siddharth

________________________________________________________________________
For live cricket scores download  Yahoo! Score Tracker
 at: http://in.sports.yahoo.com/cricket/tracker.html

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

Reply via email to