RE: Japanese StrPrintF

2001-01-03 Thread Ken Krugler
esn't give localizers the flexibility they need to re-arrange string elements. The correct Text Mgr routine to use would be TxtParamString, or the equivalent TxtGlueParamString in PalmOSGlue if you need to run on older versions of the OS. -- Ken Ken Krugler TransPac Software, Inc. <htt

RE: Debug Messaging...

2001-01-03 Thread Yu, Ken [IT]
Have you looked at the Palm Reporter?. It does exactly what you need. > -- > From: S KAR[SMTP:[EMAIL PROTECTED]] > Reply To: Palm Developer Forum > Sent: Wednesday, January 03, 2001 12:30 AM > To: Palm Developer Forum > Subject: Debug Messaging... > > Is there

Re: Currency Symbol(s)

2001-01-02 Thread Ken Krugler
cessary) and the L for Italy, etc, etc. > >Am I missing something obvious? No. The Locale Mgr (added in 4.0) provides an API for getting the currency symbol. If you need compatibility with older versions of the OS, then link in the PalmOSGlue lib and call the LmGlueXXX equivalents. -- Ken

Re: strange resource problem

2001-01-01 Thread Ken Krugler
object's text (e.g. form title, label, or control title) to something that's longer than the space allocated inside of the form object. The string data winds up tromping on the following object's information, such as its location. -- Ken Ken Krugler TransPac Software, Inc. <

Re: Invalid Insertion Point Position

2001-01-01 Thread Ken Krugler
definitely be displayed if the the height of the field is less than the height of a line of text. 2. If the field is single-line, and you're calling FldSetTextPtr with a string that contains linefeeds, then you could run into problems. 3. If the field is multi-line, then you need to call

Re: application version string

2001-01-01 Thread Ken Krugler
best way is to use > DmFindResourceType() function :) instead of DmGet1Resource() or > DmGetResource() Use DmGetResource. There's no reason to use to DmFindResourceType, and it won't work correctly with overlays unless you put in a fair amount of extra effort. -- Ken

Re: Japanese StrPrintF

2001-01-01 Thread Ken Krugler
versions of the OS >= 3.1, StrPrintF() handles the %C formatting character, which prints a WChar variable. -- 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: Japanese

2000-12-27 Thread Ken Krugler
'TEXT', extension == '.r', no flags set, and the compiler == 'Rez'. -- Ken > >Thanks for the help. >Steve O. > >-Original Message- >From: Ken Krugler [mailto:[EMAIL PROTECTED]] >Sent: Saturday, December 23, 2000 11:36 AM >To: [EMAIL P

Re: Dynamic scrollbar

2000-12-27 Thread Ken Krugler
crollbar dynamically and also associate >to the form or field. There's no support in the OS for dynamic scrollbars. You can create a form in Constructor with one or more scrollbars, and then hide the ones that you don't need. Clunky, but it works for when you've got a known ma

RE: globals

2000-12-26 Thread Yu, Ken [IT]
> -- > From: Paul Nevai[SMTP:[EMAIL PROTECTED]] > Reply To: Palm Developer Forum > Sent: Sunday, December 24, 2000 11:47 PM > To: Palm Developer Forum > Subject: globals > > How can I acess the system globals? Is there a function or a trick for > that? > Thank

Re: Japanese

2000-12-23 Thread Ken Krugler
hing similar to 'Palm_rc'. There's the pilrc resource compiler used as part of the GCC toolchain. I think Neil Rhodes created a plug-in version of this for CodeWarrior. I don't know if it correctly handles Japanese text - probably not, since text measurement (for menus/pop-

Re: CountryPreferencesType

2000-12-22 Thread Ken Krugler
can use the new Locale Mgr calls to get specific country (actually locale) preferences. There are also glue versions of the Locale Mgr routines available in PalmOSGlue.lib, which provide backwards compatibility for code running on pre-4.0 ROMs. -- Ken Ken Krugler TransPac Software, Inc. <ht

Re: Localization question

2000-12-21 Thread Ken Krugler
nted out, there's a chapter in the docs on localization. The short answers are: 1. Put all of your UI (not just strings) into resources. 2. Use the Text Mgr routines whenever you're manipulating text data at the character level. 3. Use Constructor to localize the UI. -- Ken Ken

Re: Localization, overlays, and stripped files...

2000-12-18 Thread Ken Krugler
asn't the case (OK, it was a bug) - ROM was always used. -- Ken >At 12:03am -0800 00-12-16, Palm Developer Forum digest wrote: > >Subject: Re: Localization, overlays, and stripped files... > >From: "Gil Chapnick" <[EMAIL PROTECTED]> > >Date: Fri, 15 D

RE: Font Pointers

2000-12-16 Thread Ken Krugler
> > -Original Message- > > From: Ken Krugler [mailto:[EMAIL PROTECTED]] >... > > > > >FntGetFontPtr() will return a pointer to the current font ... but if > > >FontHack is in play the current font may not be one of the > > ROM fonts even

Re: Localization, overlays, and stripped files...

2000-12-16 Thread Ken Krugler
OM? Not without implementing Hebrew locale support in the system, or running on top of a Palm OS hack/extension that does this for you. The device's language would have to be set to lHebrew, and the country to cIsrael. -- Ken >"Stephen Best" <[EMAIL PROTECTED]> wrote in mes

Re: Problem in MemoryMgr.c...when performing a FldDelete

2000-12-16 Thread Ken Krugler
o catch/correct this situation, though they ought to be tossing up a non-fatal alert as well. There might be a bug in this correct code, though - I haven't walked it recently. BTW, any time you've got a fatal alert problem that you're reporting, it's very useful to include the R

Re: Localization, overlays, and stripped files...

2000-12-16 Thread Ken Krugler
rom the _English_ version of the PRC, then use either the version of Constructor that edits PRCs (released on CD at PalmSource) or RsrcEdit (Palm app resource editor) to translate the overlay into French. I don't have the tools documents in front of me, but I'm hoping the PRC2OVL ma

Re: Font Pointers

2000-12-14 Thread Ken Krugler
but if >FontHack is in play the current font may not be one of the ROM fonts even if >you use one of the standard font IDs. I'm curious why you need to get the ROM font, versus the current font. Also note that Japanese (Shift-JIS) font pointers are not going to be the same

Re: Constructor [and grayed UI]

2000-12-14 Thread Ken Krugler
come across this? Any ideas? Maybe your resource file is locked? -- 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: Using .r files with CW6

2000-12-12 Thread Ken Krugler
he main app project. Though without knowing all of the settings for the project, this is just a guess. Looking back at your original post, another possible problem with your first approach (replacing .rsrc files with derezzed .r files) is that you need to specify in your CodeWarrior file mappings

RE: List of system resources

2000-12-03 Thread Ken Krugler
At 12:00am -0800 00-12-03, Palm Developer Forum digest wrote: >Subject: RE: List of system resources >From: "Scott Johnson (Bellevue)" <[EMAIL PROTECTED]> >Date: Sat, 2 Dec 2000 11:06:18 -0800 >X-Message-Number: 13 > > > From: Ken Krugler [mailto:[EMAIL PR

Re: RLE compression

2000-12-02 Thread Ken Krugler
t;N bytes are to be read as-is", frequently the high-bit. Thererefore the >result for my example could be: 0x84 0x01 0x02 0x03 0x04 > > Now ... which way does Palm do it? RLE doesn't have any special support for encoding non-repeating bytes more efficiently (though it should

Re: List of system resources

2000-12-02 Thread Ken Krugler
gt;If this document >does not exist, it would be a valuable addition to the developer's >documentation ... It would be great if you were guaranteed the availability of everything in UIResources.h and SystemResources.h, but that's currently not the case. Hopefully it will get cleaned up

FrmGetControlGroupSelection caution

2000-11-30 Thread Ken Krugler
a form that contains grouped controls with object indices > 42, or you have anticipated situations in which FrmGetControlGroupSelection needs to return frmNoSelectedControl. In that case you might want to ignore the high byte of the routine result, by casting it back to a UInt8. -- Ken Ken Kru

Re: RLE compression

2000-11-27 Thread Ken Krugler
schemes. > >So the question is : what is the precise specification of PalmOS RLE ? Searching the palm-dev-forum list at egroups for RLE compression, I found my previous post on this topic: http://www.egroups.com/message/palm-dev-forum/39500 I don't know if the format has been formally doc

RE: DmGetResource on 'tPUT' failing

2000-11-25 Thread Ken Krugler
xt. So I'd suggest setting the control's text to something that gives you roughly the same width, or positioning an (unused) gadget behind the popup trigger which has the appropriate width. -- 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: PRC 2 OVERLAY TOOL

2000-11-24 Thread Ken Krugler
the eScribe article <http://www.escribe.com/computing/pcpqa/m24669.html> which I found using <http://www.google.com> to search on "PRC2OVL". -- 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: Create a library that spans one code segment

2000-11-23 Thread Ken Krugler
om the main lib. You could also pass the main library's refnum to routines in the sub-library, so that it could call main library routines. Ugly, but workable. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm D

Re: ASCII Character set

2000-11-23 Thread Ken Krugler
extension of Shift-JIS. ASCII normally refers to the 7-bit (0x00..0x7F) character set used in the US and Europe. -- 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: Creating my own library

2000-11-23 Thread Ken Krugler
t;'example.tmp'. Please advise. Thanks In the Target Settings panel, you need to make sure the Post-linker pop-up has "none" selected. I'm guessing that currently it says "PalmRez Post Linker", which is looking for the "example.tmp" resource file. --

Re: I know I'm missing something....

2000-11-23 Thread Ken Krugler
ect Hierarchy" from the Layout menu. This lets you see all of the objects in the form, even if they don't show up in the form window because they have a height of zero. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For infor

Re: Using .r files with CW6

2000-11-23 Thread Ken Krugler
regular .rsrc files and the output of the code linker to create a merged .rsrc file. Or you can add the merged .rsrc file to the linker target; either way works. The resulting file, which contains code, regular resources and generated resources, is then specified as the input to PalmRez i

Re: Numeric Field Constructor Bug?

2000-11-18 Thread Ken Krugler
ut. >Is this a bug in the constructor or is it supposed to be this way? As far as I know, there isn't a bug in Constructor w/specifying fields as numeric. Note that you can currently paste non-numeric text into a numeric field, so you need to do your own validation of the field c

Re: OS 3.5, listboxes with large amounts of data

2000-11-17 Thread Ken Krugler
ot pop-up) list in a form, though, the LstDrawList routine will get called by FrmDrawForm, so there are still cases where the bug could show up. -- 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: "Record left locked" error using edit in place

2000-11-17 Thread Yu, Ken [IT]
he trick. > -- > From: Yu, Ken [IT] > Reply To: Palm Developer Forum > Sent: Friday, November 17, 2000 10:21 AM > To: Palm Developer Forum > Subject: "Record left locked" error using edit in place > > I am receiving this error: "Record left

"Record left locked" error using edit in place

2000-11-17 Thread Yu, Ken [IT]
However, I do not get this error if I remove focus from the field (by tapping on some other control) and then exit the app. Does any one know what I'm missing? I am using POSE with OS3.5 color debug ROMs. Thanks, Ken -- For information on using the Palm Developer Forums, or to unsubscribe, p

Re: OS 3.5, listboxes with large amounts of data

2000-11-16 Thread Ken Krugler
of things, this seems to be a bug in the PalmOS! Yup, it looks like a bug in LstDrawList(), when it tries to erase any unused space following the last visible item. I can't see any good work-around, other than using a gadget to do your own list. -- Ken Ken Krugler TransPac Software, Inc.

Re: FldGetScrollValues

2000-11-16 Thread Ken Krugler
ended with a linefeed, but otherwise it seems like it's going to return the wrong value. -- 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: Can't do non-ASCII characters in Rez files on Windows?!

2000-11-15 Thread Ken Krugler
At 12:00am -0800 00-11-15, Palm Developer Forum digest wrote: >Subject: Re: Can't do non-ASCII characters in Rez files on Windows?! >From: John Marshall <[EMAIL PROTECTED]> >Date: Tue, 14 Nov 2000 11:24:28 -0800 >X-Message-Number: 53 > >Ken Krugler <[EMAIL PROTE

Right-to-left output (Arabic style)

2000-11-15 Thread Ken Krugler
a technical report on this at www.unicode.org). Also check out at any of the current Arabic/Hebrew hacks for Palm OS - I think there are three or four currently. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using th

Re: Globals problem with Tbl callback in shared library

2000-11-14 Thread Ken Krugler
nsure that A4 is set up correctly. Your technique is one way of handling this. For other situations where there's no good place to stash the pointer, you can either use a feature (slow but easy) or set up a bit of callback glue code (fast but tricky). -- Ken Ken Krugler TransPac Softwar

RE: Can't do non-ASCII characters in Rez files on Windows?!

2000-11-14 Thread Ken Krugler
ted to the 0x18 location so that every regular font, no matter what the character encoding, would contain this truncation character. So 99% of all apps can just use the '3.0 and earlier' setting and be fine. > Better documentation would be helpful. I'll pass along the

Re: MenuHandleEvent is eating messages

2000-11-14 Thread Ken Krugler
other Palm structure that you initialize and then pass to the OS. The reason is that any currently undefined fields (including padding fields) might wind up becoming real fields in the future, and the OS would like to be able to depend on them being set to zero. -- Ken Ken Krugler TransPac Sof

Re: Can't do non-ASCII characters in Rez files on Windows?!

2000-11-11 Thread Ken Krugler
At 12:00am -0800 00-11-11, Palm Developer Forum digest wrote: >Subject: Can't do non-ASCII characters in Rez files on Windows?! >From: "Scott Johnson (Bellevue)" <[EMAIL PROTECTED]> >Date: Fri, 10 Nov 2000 10:23:16 -0800 >X-Message-Number: 32 > >[This is in

Re: a Palm OS bug report

2000-11-09 Thread Ken Krugler
with Palm 3 but OK with Palm Vx. > >Is this new? What the heck is going on? Please advise me. Got me. I tried making this exact same call from an app, on Poser emulating a Palm III, with Palm OS 3.3 (debug), and it worked fine. A stack crawl of the crash would be interesting. -- Ken Ke

Re: Get system date

2000-11-07 Thread Ken Krugler
stem preferences > > PrefGetPreferences(&sysPrefs); Avoid using PrefGetPreferences() - use PrefGetPreference(selector) instead. The structure returned by PrefGetPreferences() has to be a fixed size, so that older code won't croak on newer ROMs, which means that new preferences c

Re: link error with resource

2000-11-07 Thread Ken Krugler
in a form? If so, >where CAN one be used? I'm assuming you're using CodeWarrior, so my guess would be that your version of PalmRez is out of date, and thus doesn't know about graphic buttons. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470

Re: location of const data in memory

2000-11-06 Thread Ken Krugler
entioned covers your first example above, namely pointers to data; these can't be PC-relative, since the correct value for the pointer isn't known until run-time. On the other hand, your second example should become PC-relative data if you use this pragma with a recent version of CodeWar

RE: Palm Vx syncs only at 9600

2000-10-31 Thread Yu, Ken [IT]
A few of my users have reported this behavior as well. If you hard resetted, then we can rule out a hack or another program causing the problem. Maybe it IS the fault of a dirty connection, but I find it peculiar that it has happened to others and with Vx models. -Ken > -- >

RE: Continued: Resource ID numbers

2000-10-27 Thread Ken Krugler
he current app's DB, requests for a given resource (e.g. tFRM=1000) will get the resource from the overlay, not your base application. Hmm, this topic has come up before. Maybe I should write some sample code... -- 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: Trapping hardware application buttons

2000-10-26 Thread Ken Krugler
break; default: return(false); break; } return(true); } -- 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/

Ryan, come back!

2000-10-24 Thread Yu, Ken [IT]
We'll be good, we promise!! -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: What form functions are valid before FrmDrawForm?

2000-10-21 Thread Ken Krugler
I haven't tried this, but you could set the clip to be empty, then call FrmDrawForm, and thus avoid the re-draw. -- 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: Creating overlay and localizing

2000-10-20 Thread Ken Krugler
at. PRC databases are what you find on the device. The overlay DB must be on the same card as the base PRC, which means you can't have the base PRC on your device and the overlay on a Springboard module. -- 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: Is it possible to change text in menus dynamically?

2000-10-14 Thread Ken Krugler
the text in menus dynamically? Using MenuShowItem, MenuHideItem, and MenuAddItem, you can achieve some degree of dynamic text support. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubsc

Re: 'fmap' resource type in Address Book

2000-10-13 Thread Ken Krugler
em header files either. >What did I screw up and how can I fix it? I don't know how exactly you lost the resource data. It should be in one of the Address app resource files that you get with the SDK. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470

RE: Object not in form (but it is!!!)

2000-10-07 Thread Ken Krugler
itle, text label, control label), you typically tromp on the following object's structure. This typically munges the object id, attributes, and/or position. The end result can be mysterious "object not in form" errors, or objects disappearing from the screen (because their position h

Re: Palm Sort Order

2000-10-06 Thread Ken Krugler
correctly is to re-sort it in response to the post-HotSync launch code. Trying to match the device sort order on the desktop is a losing proposition. -- 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: Insertion Point Problem

2000-10-05 Thread Ken Krugler
nown situation where you can get this fatal alert if you've got alert text with one or more trailing linefeeds. Check the list archive for more information. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm D

Re: localization and CodeWarrior

2000-10-04 Thread Ken Krugler
hich >locale you are compiling for? I'm trying to find out why >my overlay isn't working. If there are, I can't find them. The only locale-specific setting in CodeWarrior is the transliteration target for PalmRez, which needs to be set to Japanese for apps that contain Shift-J

Re: Chinese tools

2000-10-04 Thread Ken Krugler
e characters, then I'd replace each double-byte character with a generic Japanese character (e.g. 0x8140) in the .rsrc file, and select Japanese as the target for PalmRez. Then I'd use a hex editor to edit the resulting PRC, replacing 0x8140 sequences with the real character codes - ho

Re: TextTableItem wider than column width?

2000-10-04 Thread Ken Hejmanowski
>>You can use WinDrawChars to draw anywhere within the current draw window, so unless you change the draw window or the Table Manager has changed the draw window (and you can always change it to anything you want anyway), you can use it to draw in the second column. However, if the second column

Re: TextTableItem wider than column width?

2000-10-03 Thread Ken Hejmanowski
first column since it's not editable, but continue what I'm already doing for the second column ( TableLoadData(), etc. ) ? I've never mixed the two and don't know if that's acceptable, but I don't see why not. I wonder if doing the WinDrawChars() will corre

TextTableItem wider than column width?

2000-10-03 Thread Ken Hejmanowski
FldSetBounds(). Is there a way around this? Thanks! -Ken Hejmanowski -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: how to have multiple code resources in a shared library?

2000-09-30 Thread Ken Krugler
rom the PlugIn in a >2nd segment in the shared library but the linker prints an error that a code >resource cannot have more than one segment when I try to build the shared >library. I'm currently working on a way to get Metrowerks to support a multi-segment shared library...stay

Re: localization just not there

2000-09-30 Thread Ken Krugler
the base app? Nope, that should be it. If you'd like, you can send me the app/overlay, and I'll see if I can figure out what's up. -- 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: Simple (?) question about dates and strings

2000-09-30 Thread Ken Krugler
ike automatically fill in the current year if they leave that out, etc. -- Ken >- Original Message - >From: "wheeler wood" <[EMAIL PROTECTED]> >Newsgroups: palm-dev-forum >To: "Palm Developer Forum" <[EMAIL PROTECTED]> >Sent: Thursday, Septe

Re: globals where?

2000-09-29 Thread Ken Krugler
lobals. Using Metrowerks, do globals use up stack space or active heap >space? Globals get allocated as a chunk in the dynamic heap. Note that your stack is _also_ a chunk in the dynamic heap, so both basically come from the same pool of memory. -- Ken Ken Krugler TransPac Software, Inc. &

Re: a Memo Pad [or text field] question

2000-09-29 Thread Ken Krugler
of the beginning >of the 25th ScreenLines from the current insertion point [without moving >there]? > >Thanks! > >Best regards, Paul [pedit: http://home.columbus.rr.com/nevai/palm/ ] What's wrong with using FldWordWrap? You can walk the string, calling this routine repeate

Re: Simple (?) question about dates and strings

2000-09-29 Thread Ken Krugler
vert a CharPtr (eg. "09/28/00") to a >DateTimeType. Is there a function that does this? I see the reverse is >available to create a string based on a date. Thanks. Nope, you're on your own. Note that Palm OS software typically uses the SelectDay() routine, which avoids havin

Re: An impossible error -- HERES YOUR EXPLANATION

2000-09-28 Thread Ken Krugler
ossibly be going wrong"? situation, that's what I look at. -- 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: exact specification for image compression types needed

2000-09-27 Thread Ken Krugler
>Thanks for the info, Ken. > > > While only the scanline compression algorithm requires that > > compression be done scanline-by-scanline, in practice both process > > scanlines as chunks - which means that bitmaps using the RLE > > compression won't col

Re: Bad Field Selection - Line: 5321

2000-09-27 Thread Ken Krugler
At 12:00am -0700 00-09-27, Palm Developer Forum digest wrote: >Subject: Re: Bad Field Selection - Line: 5321 >From: "Ben Combee" <[EMAIL PROTECTED]> >Date: Tue, 26 Sep 2000 15:44:15 -0400 >X-Message-Number: 69 > >"Ken Krugler" <[EMAIL PROTECTE

Re: CardNo and DbID for Launcher

2000-09-27 Thread Ken Krugler
&searchState, sysFileTApplication, sysFileCLauncher, true, &cardNo, &dbID); -- Ken Ken Krugler

Re: Limitation to table field size

2000-09-27 Thread Ken Krugler
d type variable designating the field's max characters Yes, but no. Use FldSetMaxChars(fld, newMaxChars) - don't directly muck with _any_ Palm OS structure if there's an API available to use. There are some cases where APIs are missing (let Palm know which ones), but

Re: trademark superscript

2000-09-27 Thread Ken Krugler
ctly handle the case where it's actually a string (e.g. "(tm)") versus a single character or single byte. -- 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: exact specification for image compression types needed

2000-09-27 Thread Ken Krugler
be done scanline-by-scanline, in practice both process scanlines as chunks - which means that bitmaps using the RLE compression won't collapse a sequence of identical bytes across a scanline boundary. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-92

Re: how to have multiple code resources in a shared library?

2000-09-27 Thread Ken Krugler
gt;I think this would be obtained using DmGet1Resource(type, id) but because I >can't figure out step 1 I'm unable to proceed. You'd call DmGet1Resource('plug', 1000), then lock it down. Hope this helps get you started... -- 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 to have multiple code resources in a shared library?

2000-09-26 Thread Ken Krugler
is is easiest if there are a few routines that wind up calling in isolation a bunch of other code. In that case you could create individual code resources (the resource type doesn't matter) with single entry points for each of these higher-level functions - locking the code & calling

RE: Bad Field Selection - Line: 5321

2000-09-26 Thread Ken Krugler
ing selections -- it was discussed here a couple of > > months ago. Maybe you're hitting that. From what I recall, the bug(s) related to up/down arrow key handling didn't cause a "Bad Field Selection" fatal alert, just odd editing behavior. -- Ken Ken Krugler

RE: Which pointer type to use when accessing a record?

2000-09-25 Thread Yu, Ken [IT]
You can cast it as a BytePtr but beware that certain types must start at even byte boundaries. -Ken > -- > From: Jacob Vitas Vogelstein[SMTP:[EMAIL PROTECTED]] > Reply To: Palm Developer Forum > Sent: Monday, September 25, 2000 10:26 AM > To: Palm

Re: Callback from shared library to the main program

2000-09-24 Thread Ken Krugler
o set up register A5, either via a feature (if speed isn't an issue), getting passed its A5, or some 68K magic in a callback routine "stub". -- 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: decimal point on numeric fields

2000-09-24 Thread Ken Krugler
and that this screening is only done on key-down event handling...so you can still paste non-numeric characters into the field. An additional limitation is that you can't enter the thousands separator character (e.g. ',' in the US). So many apps do their own screening for numeric f

RE: strings and string lists

2000-09-22 Thread Ken Krugler
form. You can use a global variable, unless you've got a form that can be displayed as a result of a sub-launch. As Dave Johnson pointed out, SysStringByIndex is a handy utility routine for loading strings from a string list, but it requires you to use a string variable to save the result.

Re: Try-Catch in C++

2000-09-22 Thread Ken Krugler
so you can't use them in any code that can get called as a result of a sub-launch. An interesting tweak would be to modify the Metrowerks exception code to use the Palm OS try/catch chain (which is available during a sub-launch) as a way around this limitation. -- Ken Ken Krugler Tra

Re: get app version

2000-09-22 Thread Ken Krugler
7;s well-written Palm OS software. >"Eric" <[EMAIL PROTECTED]> a écrit dans le message news: >[EMAIL PROTECTED] > > > > I want to get the version of default app in PalmOS, but use > > DmGet1Resource('tver',ID). for the ID, it is found

RE: strings and string lists

2000-09-21 Thread Ken Krugler
tringH); If you're getting a lot of strings, then option 3 is to write two utility routines, in which case it takes 16 bytes of code per string usage. const Char* someString = GetAndLockStringResource(1000); ReleaseLockedStringResource(someStringP); -- Ken Ken Krugl

RE: strings and string lists

2000-09-20 Thread Ken Krugler
best solution currently is to use the PRC2OVL tool that comes with the 3.5 SDK. This can create an overlay from a full PRC - but that means you have to build the localized PRC first, and then extract the localized resources into an overlay. -- Ken Ken Krugler TransPac Software, Inc. <http:/

Re: strings and string lists

2000-09-20 Thread Ken Krugler
rces. In general, though, using resources for string data is considered proper coding practice for Palm apps. -- 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: silk-screen button array

2000-09-19 Thread Ken Krugler
API hasn't changed, so if you're using the 3.5 SDK to build your app, then there's no problem. If you have to use an earlier SDK for some reason (why?), then you would need to copy the routine declaration and the struct typedef. -- Ken Ken Krugler TransPac Software, Inc. <h

Re: Determining another application's version string

2000-09-15 Thread Ken Krugler
I use to retrieve another application's >version string? Figure out which app DB you want to open, then DmOpenDatabase(...) DmGet1Resource('tver', 1); DmGet1Resource('tver', 1000); DmCloseDatabase(...); -- Ken Ken Krugle

Re: FntWidthToOffset

2000-09-15 Thread Ken Krugler
NDA to get access to the code. But in that case, they can't send the source to other people. >If I want to write it, >what is the most difficult part? Handling character encodings other than Latin. Why do you want to write another version? -- Ken Ken Krugler TransPac Software, Inc. &

RE: Corruption of text in button resource

2000-09-15 Thread Yu, Ken [IT]
Although this gets rid of the error messages, it does not eliminate the label corruption problem. -Ken > -- > From: Kevin O'Keefe[SMTP:[EMAIL PROTECTED]] > Reply To: Palm Developer Forum > Sent: Friday, September 15, 2000 11:33 AM > To:

RE: Corruption of text in button resource

2000-09-14 Thread Yu, Ken [IT]
If you're using dynamic creation of controls, there's a bug in the OS that causes this. -Ken > -- > From: Owen Flagel[SMTP:[EMAIL PROTECTED]] > Reply To: Palm Developer Forum > Sent: Thursday, September 14, 2000 12:08 PM > To: Palm

RE: FrmRemoveObject() quirk

2000-09-12 Thread Yu, Ken [IT]
(search the archives for more > information). Another way around the problem is to use > FrmHideObject and FrmShowObject. > > Keith Wolcott > > Sally Anne Palmer wrote: > > > Hi Ken, > > > > I've been having the same problem this past week and it

RE: FrmRemoveObject() quirk

2000-09-12 Thread Yu, Ken [IT]
it is probably because this ROM is configured to test low memory conditions and the bug is causing some other problems but what can we do about it? It looks like I may have to try other alternatives as this method does not seem too stable. Thanks, -Ken > -- > From: Keit

FrmRemoveObject() quirk

2000-09-11 Thread Yu, Ken [IT]
n the docs. Can anyone shed some light as to what's going on? I'm using with GCC, POSE, 3.5 color ROMS. Thanks! -Ken -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: TsmGetFepMode help needed

2000-09-09 Thread Ken Krugler
5? if (TsmGetFepMode(NULL) == tsmFepModeOff) { // go ahead and move the field, the FEP isn't active. } For backwards compatibility with pre-3.5, use TsmGlueGetFepMode(NULL) in PalmOSGlue. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530

Re: GetCharCaselessValue

2000-09-08 Thread Ken Krugler
ode to act the same, then you couldn't rely on the GetCharCaselessValue table. What's the problem with using TxtFindString for searching? -- 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/

<    1   2   3   4   5   6   7   8   >