Re: StrChr

2001-02-02 Thread Ken Krugler
te a custom routine? Best regards, Paul StrChr() was patched on older Japanese ROMs (3.1 & 3.5) to return correct results - you won't get a ptr into the middle of a double-byte character. In 4.0 the core code has been modified to work correctly without patching. -- Ken Ken Krugler Tran

Re: International applications

2001-02-02 Thread Ken Krugler
working directly with characters and strings. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: 2 Stupid questions

2001-02-02 Thread Ken Krugler
>2) How can I erase the empty spaces from the corners of a string? What in >other languages is done by Trim(). That would be to convert " Hello World! >" to "Hello World!" There's a TxtGlueStripSpaces() routine in PalmOSGlue.lib. -- Ken Ken Kru

Re: Formatting UInt32 with commas

2001-02-05 Thread Ken Krugler
usands and decimal separator characters. 4. Call StrLocalizeNumber() to convert the ',' and '.' characters in the string from step 1 into the appropriate characters returned in step 3. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: How much memory to allocate for string when converting from UInt32 using StrIToA

2001-02-05 Thread Ken Krugler
20 plus null terminator = 12 >chars! Or you could just use the maxStrIToALen constant defined in StringMgr.h. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see h

Re: Accessing Built-in Resource Types

2001-02-07 Thread Ken Krugler
roblem. It provides a documented API to get locale-specific settings for any locale which is "known" to Palm OS...currently there are 20+. 3. The 4.0 SDK has LmGlueXXX routines in PalmOSGlue.lib that do the right thing on all versions of the OS (hmmm, not sure about 1.0). -- Ken Ken K

Re: Accessing Built-in Resource Types

2001-02-09 Thread Ken Krugler
On Wed, 7 Feb 2001 16:19:49 -0800 John Marshall wrote: >Ken Krugler <[EMAIL PROTECTED]> wrote: > > 3. The 4.0 SDK has LmGlueXXX routines in PalmOSGlue.lib that do the > > right thing on all versions of the OS (hmmm, not sure about 1.0). > >Gee, Ken, haven't

Re: StrCaselessStr () - please help

2001-02-12 Thread Ken Krugler
EncodingPalmLatin); } else { // Must be an older version of Palm OS, thus has to be Latin. return(true); } } -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using

Re:Character String

2001-02-13 Thread Ken Krugler
opic (using SysStringByIndex versus getting the resource yourself) back in September of last year. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: call a shared library from a shared library?

2001-02-13 Thread Ken Krugler
>I am positive that the library is loaded, because I can call it from an app. >Any other thoughts? You don't have PC-relative strings selected in your compiler settings, and thus the library name you're passing to SysLibFind is bogus? -- Ken Ken Krugler TransPac Soft

RE: How to display numeric data in the right alignment in the Table

2001-02-13 Thread Ken Krugler
= FntCharsWidth(Factura.Saldo, StrLen(Factura.Saldo); Which is faster, smaller, and works properly for all character encodings. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

RE: Getting Date at build time

2001-02-13 Thread Ken Krugler
tant(1002), ResLoadConstant(1000), (DateFormatType)PrefGetPreference(prefDateFormat), buildString); And then you could set the form label to buildString. This will give you the date that the .prc was actually generated, since Rez is

Re: Bitmaps and offscreen windows

2001-02-17 Thread Ken Krugler
re trying to restore the screen depth, then the draw window has been set to 0x800 on debug ROMs, and there's a bug in the 3.5 OS where it will try to use this window when handling a depth change in the WinScreenMode() code. The work-around is to either make sure you've got a valid draw window before calling WinScreenMode, or don't worry about restoring it on exit from your app, since the OS will do this for you. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Help needed with palm assembly language

2001-02-19 Thread Ken Krugler
#54510), as the relative location of the function being called will change. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: a BUG with FldSetScrollPosition () in OS 3.5???

2001-02-25 Thread Ken Krugler
they removed it [was this the reason?]. No. The go-to-top & go-to-bottom commands were useful when the OS didn't support a scrollbar, as otherwise the user would have to sit there pressing the up or down scroll buttons until they got to the top or bottom. -- Ken Ken Krugler TransPac So

Re: FldGetTextLength (fldP) and StrLen (FldGetTextPtr (fldP))

2001-02-25 Thread Ken Krugler
that precede the terminating '\0' byte. It is not a count of the number of characters, and thus the behavior doesn't change when running on a Japanese system which uses a multi-byte character encoding. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1

Re: ListToField.c example

2001-02-25 Thread Ken Krugler
tH); > // Unlock the new text handle. > MemHandleUnlock(newTextH); One minor nit. Once you've called FldSetTextHandle, the field code effectively "owns" the handle. Thus you should avoid messing with the handle following this call, which means that the unlock sh

Re: text manager

2001-02-25 Thread Ken Krugler
hen I'd think that you've got a bug someplace else in your code. The snippet that you included in your post seems correct. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: PRC2OVL - then what??? ( overlay manager mysteries )

2001-02-25 Thread Ken Krugler
_ have an overlay resource, since the original data is gone. I don't know whether there's a PRC2OVL option to inject an overlay resource into the base, but if not then that's a useful enhancement. Potentially PalmRez could also be modified to have an option for adding the overlay to the generated PRC. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: CW6 does not like to do things by halves

2001-02-27 Thread Ken Krugler
? 1. The resource type is TSLt or tSTL? 2. What's the transliteration option chosen in the PalmRez pref panel? 3. 0xF0 is LATIN SMALL LETTER ETH in both the Windows 1252 and Palm Latin character sets. Were you trying to get the VULGAR FRACTION ONE HALF (0xBD)? -- Ken Ken Krugler Trans

Re: Localizing an Application

2001-03-03 Thread Ken Krugler
I was wondering if anyone had some sample code that deasl with displaying >and manipulating strings with multi-byte characters. All of the PIM app sample code in the SDK (3.5 or later) should be using the Text Mgr to correctly handle text processing. -- Ken Ken Krugler TransPac Software, Inc.

Re: ListToField.c example

2001-03-03 Thread Ken Krugler
#x27;m not sure why you'd get a fatal error from the Memory Mgr. A stack crawl would be very useful here. 2. FldFreeMemory (called by the form code on field objects) will _not_ release the memory used by a text pointer. So in your example, I think you're leaking the memory allocated for

Re: Palm OS 4.0 dr5 posted in seeding area

2001-03-09 Thread Ken Davidson
> The latest posting (dr5) of the 4.0 ROMs, SDK, etc. is now available > in the seeding area... Is there any way to know what the various builds in the ZIP file are targeted for? Most are obvious, but a few are pretty cryptic. Thanks. Ken Davidson [EMAIL PROTECTED] -- For informat

Re: How to deal with OS 3.50 memory leak...

2001-03-19 Thread Ken Krugler
leak, and so running my program, I see the available ram leak away 100K >a tap - certainly not acceptable. The 3.5 memory leak bug only happens when you do a soft reset - orphaned memory chunks (such as those used by features) don't get auto-freed. So the memory leak you're describi

Re: StrNCompare & PalmOS4

2001-03-21 Thread Ken Krugler
orrectly handle comparison of characters which are weakly equal but differ in the number of bytes required to represent them in the string - for example, a single byte 'a' (0x61) and a double-byte 'a' (0x8281). But that doesn't mean it won't work correctly when comp

Re: StrNCompare & PalmOS4 (BUG!)

2001-03-24 Thread Ken Krugler
t start >with OS 4.0? Shift-JIS (Japanese) 3.1 or later, and Latin (EFIGS) 4.0 or later. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: 4.0 and PalmOSGlue - crash

2001-03-24 Thread Ken Krugler
ttributes, or there's a very weird bug in the ROM - but then everything would start failing throughout the OS, as there are many other places that get character attributes via the TxtCharAttr call. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-920

Re: TxtGlueCharIsPrint

2001-03-27 Thread Ken Krugler
you tried calling TxtCharIsPrint(virtual char) on a debug ROM, you'd get a fatal alert that says "Invalid char passed to TxtCharAttr". -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forum

Re: Incorrect Text Table Version

2001-03-29 Thread Ken Krugler
r code didn't get updated. >Or so it seems. I'm no expert on this stuff. I just read source >code. If I'm wrong, I'm sure Ken Krugler will dive in here and >correct me (with one of his patented "1. 2. 3. ..." e-mails!). After seeing NCR's patent on &

Re: Does Palm want to end this news group?

2001-04-04 Thread Ken Davidson
and freeware authors make precious little money for their time as it is. How many do you think are going to fork over that kind of money and continue to use this platform? Commercial authors, maybe. But there are far fewer of those around. Someone please correct me if I'm wrong. Ken Davidson [E

Re: Double Byte API

2001-04-09 Thread Ken Krugler
buffer which contains the character code; this should be set up via a call to TxtSetNextChar(). >I already have a terminal with the Japanes Palm OS on it. I assume you mean you have a device with a Japanese ROM, versus your desktop setup. -- Ken Ken Krugler TransPac Software, I

Re: UNICODE converters for PalmOS?

2001-04-10 Thread Ken Krugler
he device character encoding. So if you're running on a Japanese device, then yes you can use this to convert between Shift-JIS and Unicode. You can verify the existence of the routine by checking that the result of IntlGetRoutineAddress(intlTxtConvertEncoding) is not NULL. -- Ken Ken Kr

Re: FindStrInStr

2001-04-10 Thread Ken Krugler
Str discusses the issue in some detail. The short answer is that you need to call TxtGluePrepFindString (in the PalmOSGlue.lib) to prepare the search string before calling FindStrInStr. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For infor

Re: Constants in shared library

2001-04-10 Thread Ken Krugler
constdata on But I don't think it works for constants with initializers that need to calculate addresses (e.g. an array of pointers to constant character strings), as those can only be calculated at run-time. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1

Re: Dynamic UI and Visor Platinium

2001-04-11 Thread Ken Krugler
t addresses are no longer valid. 6. Finally, I'm assuming that the caller of MainFormInit isn't relying on the form address it's passing in. Your calls to LstNewList will update the value of the form pointer that's on the stack frame, but the caller's copy won't be gettin

Re: Is this really correct?

2001-04-14 Thread Ken Krugler
ounterintuitive" does not begin to cover >this. Unfortunately yes. Hmm, we could start a list of the worst routine names, constants, APIs, etc. MemSet comes to mind. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the

Re: Bitmaps on grayscale 4.0 devices

2001-04-14 Thread Ken Krugler
of 4 bits, you'll get this warning. In pre-4.0 versions of the OS, the check was using a fixed value of 8 for the max display depth. As to why the OS should care about this, got me... -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For informa

Re: Is null always one byte [was a not necessarily naive question]

2001-04-17 Thread Ken Krugler
*chP == chrNull) without having to use TxtGetNextChar. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: FldWordWrap() difference on Japanese roms vs English

2001-04-22 Thread Ken Krugler
ing? Because it's based on CP932, which is based on Shift-JIS, which doesn't have these characters. So I guess you'd have to ask the Japan Industrial Standards body about the omission. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: DateTemplateToAscii Sample Code

2001-04-26 Thread Ken Krugler
of week name, starting from Sunday. Or if you needed to format a date in the ISO standard ("2001-04-26") you could do that with: Char buffer[11]; DateTemplateToAscii("^4l-^3z-^0z", month, day, year, buffer, 11); -- Ken Ken Krugler TransPac Software, Inc. <

Re: How to use unicode in Palm?

2001-04-27 Thread Ken Krugler
can handle the UTF-8 and UCS-2 encodings for Unicode. A stripped down version of this same routine also exists in ROMs used by Sony's 3.5-based devices. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Develope

Re: Portable Keyboard driver 1.2 bugs?

2001-04-28 Thread Ken Krugler
, I'll e-mail Palm once again. There is a known bug in the field code (I believe it's been fixed in 4.0) where using the up/down arrow keys to move from a longer line to a shorter line would cause the behavior you're describing here. -- Ken Ken Krugler TransPac Software, Inc. <

Re: Bug in FrmRemoveObject(), or my error?

2001-04-30 Thread Ken Krugler
ect in the form, and I got address errors as the fixup code tried to adjust a bogus text pointer. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: stack overflow on japanese 3.5 rom... help

2001-05-01 Thread Ken Krugler
e is around 3K - the OS will bump this to about 4K, which seems like it should be enough, though I didn't test what happens when you receive a beam while converting text with the FEP in the on-screen keyboard window. To be safe, I'd stick with a 4K stack in the 'pref' res

Re: Problems with TxtGluePrepFindString

2001-05-03 Thread Ken Krugler
epared" via a call to TxtGluePrepFindString. Currently for Latin this just does a case-remapping and strips diacriticals, but that could change in the future. For Japanese it jumps through all kinds of hoops, including forcing everything to be a wide (two-byte) character. So yes, you do need

Re: TxtConvertEncoding

2001-05-03 Thread Ken Krugler
ig (almost 30K) data tables for handling Shift-JIS in either direction (you could obviously trim this down if you only needed to go from the device to Unicode, or were willing to accept slow Unicode->device conversion speeds). -- Ken Ken Krugler TransPac Software, Inc. <http://www.t

Re: Q: are there any constraints on ErrThrow in a shared lib?

2001-05-06 Thread Ken Krugler
n handlers in each of the top-level routines, which execute the cleanup code and then rethrow the exception. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: TxtConvertEncoding Function for Sony 3.5 devices

2001-05-07 Thread Ken Krugler
alling IntlGetRoutineAddress on the Sony 3.5 devices (at least not without some future update), as that routine will hang if you pass it any selector other than intlTxtConvertEncoding. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on

Re: Highlighting line in the text field in which user taps?

2001-05-08 Thread Ken Krugler
ill probably generate a Poser warning re accessing private UI data structures. Make sure you handle the cases of FieldType.lines being NULL, and the calculated line index being >= FldGetVisibleLines(fldP). -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200

RE: How to block hardware buttons but leave silk screen buttons?

2001-05-08 Thread Ken Krugler
t; I hope the article also says that you _first_ need to check for the command bit being set in the keyDown event modifiers field. It's incorrect to rely on the character code ranges when deciding whether a keyDown event contains a virtual character. -- Ken Ken Krugler TransPac Softw

RE: How can the Currency symbols be retrieved?

2001-05-11 Thread Ken Krugler
e got a perfectly good API :-) There are glue routines in the 4.0 SDK version of PalmOSGlue, unfortunately they currently leak memory. Hopefully a fixed version will be available in the near future. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For i

Re: A4 instead of A5

2001-05-16 Thread Ken Krugler
>Is it possible to force the compiler CW6 to use for the reference to global >data a register A4 instead of A5? If you're creating a shared library, then yes it's possible. With a bit of hacking on the Metrowerks startup code you could probably also make it work for regular ap

Re: lookup tAIN resources using SysCreateDataBaseList

2001-05-17 Thread Ken Krugler
tAIN'=1000 resource. The Buttons panel uses SysCreateDataBaseList, so I'm pretty sure it works properly. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Country Setting

2001-05-17 Thread Ken Krugler
you mean by this. You can change the country value saved in system preferences. You can change various system preference values that are initialized (based on the selected country) during the setup process. You can't change country-specific settings (at least not easily) such as the curren

RE: A4 instead of A5

2001-05-21 Thread Ken Krugler
to what I did for globals in a shared library). If you want to support multiple segments, then it gets more difficult. At some point you might want to look at GCC's support for A4-based globals, since I believe it's more sophisticated and easier to modify if it doesn't do exactly

Re: How to detect penUpEvent in graffiti area?

2001-05-22 Thread Ken Krugler
t silkscreens might have a smaller >grafitti area than the Western units. Look at the related >EvtGetPenBtnList for more assistance. Ben is right, the Japanese 3.1 ROM has a narrower silkscreen area, due to the four extra FEP buttons. So you'd wind up with three cases: OS >= 3.5, O

Re: Invalid char passed to TxtCharAttr?

2001-05-22 Thread Ken Krugler
aracter code. Since this table only has 256 entries, you'd get bogus results without this check for bad character codes. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: a virtual question

2001-05-23 Thread Ken Krugler
sVirtual() macro that tests these flags. Note, however, that SysHandleEvent will always return true for a keydown event that has either the appEvtHookKeyMask or libEvtHookKeyMask flags set, so unless your app has an unusual event flow, your typical form event handler will never see a keydown event with

Re: Overlays concept in Palm Pilot

2001-05-23 Thread Ken Krugler
med as well. Also, the OS automatically picks an overlay based on the device's locale. So there's no easy way for a user with a French device to run the application in "German UI" mode. That's not a common case, but people have asked about it in the past. -- Ken Ken Krugler T

Re: Fields slow with big content?

2001-05-28 Thread Ken Krugler
you've got a lot of text without any linefeeds, then it will take a long time to scroll up. When scrolling down, it just wraps the next line, thus the total length of following text shouldn't matter. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-

Str[N]Compare performance in 4.0

2001-06-08 Thread Ken Krugler
byte-by-byte comparison. Otherwise, you want to use locale-specific sorting as provided by the Txt[Caseless]Compare routine. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Sign extended character passed to StrChr()

2001-06-08 Thread Ken Krugler
recreate this outside of Gremlins. > >Does anyone know what causes this message and/or what a sign extended char >is? Is it char > 0x00FF? The archives should contain a fairly recent discussion of how sign extension can accidentally happen. Note that the Char type is a signed 8-bit val

Re: MemPtr ???

2001-06-10 Thread Ken Krugler
d contain text (based on what PalmRez supports for transliteration). Any new type will be ignored for purposes of auto-moving into overlays, spell-checking, testing for untranslated text, etc. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For infor

Re: more Timer Latency

2001-06-12 Thread Ken Krugler
geBase article at <http://oasis.palm.com/dev/kb/papers/1969.cfm>, right? You'd find this by searching on the key word "timer". -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer

Re: Programming Kyocera phone jog dial

2001-06-13 Thread Ken Krugler
ar Palm up and down buttons >only set the chr and leaves the keyCode as 0. This seems to be the ONLY >way to tell them apart. Is that going to be a reliable way to >differentiate them going forward? Seems unlikely. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com>

Re: Str[N]Compare performance in 4.0

2001-06-14 Thread Ken Krugler
almost didn't make these routines public, because I had precisely this concern about developers using them when they should be using Str[N]Compare or TxtCompare. Str[N]CompareAscii compares raw byte values, and thus can be used to sort any string that's null-terminated, includin

Re: WinDrawTruncChars

2001-06-15 Thread Ken Krugler
ed on 3.1, so I'm somewhat supprised a function which >adds an elipse >was added in an OS without an elispe in the font. There's a bug in WinDrawTruncChars in 3.1 on Latin devices. As Ben Combee wrote, use WinGlueDrawTruncChars. -- Ken Ken Krugler TransPac Software, Inc. <http

Re: TxtGlueTruncateString

2001-06-15 Thread Ken Krugler
lue which you are not calling. I seem to remember some changes that John Marshall made to the GCC version of the library in the 4.0 SDK to help segment it to avoid (or minimize?) this problem. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For inf

Re: TxtGlueTruncateString

2001-06-16 Thread Ken Krugler
ext buffer for drawing, but on 3.1 Latin ROMs the call to TxtSetNextChar was accidentally turned into a no-op via a macro (though only in the source for Window Mgr routines). So the real bug is that WinDrawChar is busted on 3.1 Latin ROMs. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpa

Re: how ro create scrollbars dynamically

2001-06-29 Thread Ken Corey
s, and machines with 4/8/16 bit displays. -- Ken Corey, CTOAtomic Interactive, Ltd. [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: search function

2001-07-14 Thread Ken Krugler
equivalent). -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: WinGlueDrawTruncChars() of SDK3.5's PalmOSGlue on Visor

2001-07-16 Thread Ken Krugler
I modified my program, but I still got a white rectangle. > >WinGlueDrawTruncChars() of SDK3.5's PalmOSGlue library contain the >fix for this problem? You need to be using the glue code from the 4.0 SDK. See forum archives for a past discussion on this topic. -- Ken

Re: WinGlueDrawTruncChars() of SDK3.5's PalmOSGlue on Visor

2001-07-16 Thread Ken Krugler
4. The goal of the routine is to return a modified whose width fits in pixels. If the width of the ellipsis is wider than the width of the character at - 1, then you might still wind up with a string that's wider than pixels. I'd suggest he use the 4.0 SDK, which has a corrected version

Re: Custom font problem

2001-08-01 Thread Ken Krugler
of a time in the future when resource data is compressed, and thus what you get back from DmGetResource is a handle to a copy of the data. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Warning: assignment discard qualifiers from pointer target type

2001-08-08 Thread Ken Krugler
t' from your attr variable. The meta-problem could be that you're trying to use an obsolete routine (GetCharAttr) which might soon be disappearing - somehow the compiler senses this, and is trying to encourage you to use TxtCharAttr or the TxtCharIsXXX macros. -- Ken Ken Krugle

Re: Unicode and Multi-Language support on Palm OS???

2001-08-09 Thread Ken Krugler
s as well as Hiragana, Katakana, and Kanji. Some 3rd party hacks do special things to extend the set of supported glyphs to include high-ASCII (Latin-1) characters such as u+umlaut. Often they do this by special (invalid) byte sequences that then get mapped to these extended glyphs. -- Ken Ke

PRC-tools and GCC will not work

2001-08-21 Thread Ken Green
find and header files when it goes to compile my code I've tried copying them directly into the directory with the source, and still nothing. can anyone help me :(, oh tried falch's DIE and that won't reconize the code I wrote as a file. Ken -- For information on using the Palm Dev

Re: Multibyte font Creation?

2001-08-21 Thread Ken Krugler
>Could someone help me on the concept of Multibyte encodings and how we can >CREATE fonts using the Multibyte encoding. The PalmOS multi-byte character encoding is currently undocumented, and is likely to change soon. As such there aren't any tools available now to build such a thi

Re: What was before TxtCharIsSpace() ?

2001-08-21 Thread Ken Krugler
so a space character (numeric space), while on 3.1 or later 0x19 is also a numeric space. If you wanted to be really safe, write a test program that uses the obsolete GetCharAttr() call and the IsSpace() and IsDigit() macros to verify these results. -- Ken Ken Krugler TransPac Software, In

Re: I am new at this

2001-08-27 Thread Ken Green
Hi Give this site a read through, It should be helpful. http://www.cyberport.com/~tangent/palm/faq/articles/tutorial/ Ken On Mon, 27 Aug 2001, maria jönsson wrote: > Hi! > I have downloaded cygwin, the development kit, pilrc, the emulator and > prc-tools and installed them. But

Serial Ports, POSE, whats up?

2001-08-27 Thread Ken Green
Hello all I'd ;ike anyone/everyone input on the palm serial managment. I've writen an applaction thats supposed to use the palms serial port to talk to another device(not a pc). I think i've writen the code correctly, but when I load it into pose to test it First when I try to open the p

Re: Help needed in Palm OS programming

2001-08-28 Thread Ken Krugler
27;t believe you need additional characters beyond those found in the standard Palm Latin fonts. Good luck, -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Manual Load of Overlays under 4.0

2001-08-29 Thread Ken Krugler
ing automatically is because the base data has changed (and thus the overlay is not longer valid), then you'd be asking for trouble. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Symbol Fonts

2001-08-30 Thread Ken Krugler
nes for all of these (search on 'symbol'). -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Difference between TxtFindString and StrStr

2001-09-05 Thread Ken Krugler
ot;this", for example. TxtFindString does locale-sensitive matching, which typically means it is case and diacritical insensitive. In locales such as Japan, it might also wind up treating single- and double-byte versions of the same characters as equivalent, thus the extra "match length&qu

Re: TxtFindString not working

2001-09-15 Thread Ken Krugler
Hi Tom, I think the 4.0 docs correctly note that TxtGluePrepFindString needs to be called with your target string, before it gets passed to TxtFindString. Also an archive search on TxtFindString will provide additional details. -- Ken Ken Krugler TransPac Software, Inc. <h

Re: Resource ID's above 10000

2001-09-20 Thread Ken Krugler
is than the manual suggests? There's been a number of posts re this topic in the past. If you use IDs >= 1, you run the risk of having your resource 'mask' a system resource (if they have the same type/id), and then Bad Things happen. -- Ken Ken Krugler TransPac Software,

Re: WinDrawChar and WinDrawTruncChars on PalmOS 3.1

2001-09-26 Thread Ken Krugler
bug exists on Latin 3.1 devices. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Terminated text in Clipboard -> FldPaste hangs?

2001-09-30 Thread Ken Krugler
>In article <63624@palm-dev-forum>, Ken Krugler <[EMAIL PROTECTED]> >wrote: > > > >This seems like a bug in the OS to me. > > > > No, it's a bug in your code. > >The point is that it took some serious digging to figure out what was >go

Re: String to Time

2001-10-02 Thread Ken Krugler
If you want to have a leading zero in dates (for the day or month) then you can use DateTemplateToAscii with an appropriate format string. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums,

Re: Underlined custom fonts & underlined whitespaces

2001-10-03 Thread Ken Krugler
y mistake or an OS issue? Known bug in WinDrawChar with Latin 3.1 devices. A garbage byte gets drawn, no matter what your drawing mode is. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: strtok?

2001-10-22 Thread Ken Krugler
rn(p); >} This is only safe to use when the value of is less than 0x40, as otherwise you might find the low byte of a multi-byte character. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums,

Re: Graffiti area: what are its bounds?

2001-10-25 Thread Ken Krugler
know where graffiti area starts and ends? anything >compatible with ALL devices (including Sony, Handera and others...)? I'd try EvtGetSilkscreenAreaList(), though it's only available in OS 3.5 or later. If you need to run on older devices, then you could hard-code the bounds based

Re: bmp to palm bmp

2001-10-25 Thread Ken Krugler
> i want to know is there any difference between bmp >file and palmbmp file ? Very different. >If it is there then how to >convert bmp file to Palm-bmp file , what is the format >for conversion? Check out pilrc source code. -- Ken Ken Krugler TransPac Softw

Re[2]: Graffiti area: what are its bounds?

2001-10-25 Thread Ken Krugler
== charEncodingPalmSJIS) { } -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Remote Field Navigation - vchrNextField and vchrPrevField

2001-11-02 Thread Ken Krugler
a different way to do this >? (Note: It's NOT a question of my supporting these codes as part of my >forms - I am sending these codes to OTHER applications (e.g. Address Book, >Date Book etc.) My guess is that you're not setting the commandKeyMask bit in the keyDown event's

Re: shortcut texts in ShortCut Panel

2001-11-02 Thread Ken Krugler
reated at hard reset time from a default data resource. The location of this resource has changed in the past, but currently (>= 4.0) it's in the Shortcut Lib file as dflt=1. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information

Re: Non-english Palm Address category ordering

2001-11-10 Thread Ken Krugler
he name, without any yomi. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: resource localization

2001-11-14 Thread Ken Krugler
ow to build such a >PDB resource file, or what other application do you recommend? PRC2OVL is only useful for overlays, which don't seem to be a viable solution to your problem. PilRC or PalmRez can both be used to compile your resource data. Or you could try out Multilizer as a

Re: Internationalization not working

2001-11-23 Thread Ken Krugler
hosen French language on the emulator my application >doesn't shows French titles, labels and so on. I assume you mean that you've loaded a French ROM, or you booted an EFIGS ROM and then used the Language Picker to select French. -- Ken Ken Krugler TransPac Software, Inc. <http://www.tra

<    1   2   3   4   5   6   7   8   >