Documentation  |   Table of Contents   |  < Previous   |  Next >  

129    UIResources.h

Porting Applications to Palm OS® Cobalt

Exploring Palm OS®

In order to deal with the fact that Palm OS Cobalt doesn't support a resource search chain, a number of functions now take an additional parameter through which you explicitly identify the resource database that contains a needed resource.

Deleted APIs ^TOP^

Table 129.1  Deleted #defines

Deleted API

Use instead

GenericLaunchErrAlert

Create an application-specific alert.

StrippedBaseLaunchErrAlert

Create an application-specific alert.

systemNameStrID

Modified APIs ^TOP^

Table 129.2  Modified functions

Modified API

Description of change

uint32_t ResLoadConstant (DmOpenRef, DmResourceID)

Now contains an additional parameter through which you explicitly identify the resource database that contains the constant to be loaded.

FormType *ResLoadForm (DmOpenRef, DmResourceID)

Now contains an additional parameter through which you explicitly identify the resource database that contains the form to be loaded.

MenuBarType *ResLoadMenu (DmOpenRef, DmResourceID)

Now contains an additional parameter through which you explicitly identify the resource database that contains the menu to be loaded.

char *ResLoadString (DmOpenRef, DmResourceID, char *, size_t)

Now contains an additional parameter through which you explicitly identify the resource database that contains the string to be loaded.

Table 129.3  Modified #defines

Modified API

Description of change

#define kbdRscType 'akbd'

The value changed to reflect the fact that ARM-native keyboard resources are stored in little-endian format. 68K-style keyboard resources, in big-endian format, are now identified using the kbdRscTypeBE16 constant.

#define noteGraffitiCmd sysEditMenuGraffitiCmd

Previously was sysEditMenuKeyboardCmd.

#define noteViewMaxLength 0xffff

Previously was 4096.

#define wrdListRscType 'awrd'

The value changed to reflect the fact that ARM-native word list resources are stored in little-endian format. 68K-style word list resources, in big-endian format, are now identified using the wrdListRscTypeBE16 constant.

Unchanged APIs ^TOP^

Table 129.4  Unchanged #defines

aboutDialog

aboutErrorStr

ainID

ainRsc

alertRscType

appInfoStringsRsc

appVersionAlternateID

appVersionID

BarBeamBitmap

BarCopyBitmap

BarCutBitmap

BarDeleteBitmap

BarInfoBitmap

BarPasteBitmap

BarSecureBitmap

BarUndoBitmap

binaryGeneralRscType

bitmapRsc

bsBitmapRsc

CategoriesEditDeleteButton

CategoriesEditForm

CategoriesEditList

CategoriesEditNewButton

CategoriesEditOKButton

CategoriesEditRenameButton

categoryAllStrID

categoryAllUsedAlert

categoryEditStrID

CategoryExistsAlert

categoryNewNameDialog

categoryNewNameField

categoryNewNameOKButton

CategoryTooLongAlert

ClipboardLimitAlert

colorTableRsc

ConfirmationCancelAlert

ConfirmationOKAlert

ConfirmationOKCancelAlert

constantRscType

defaultAppIconBitmap

defaultAppSmallIconBitmap

defaultCategoryRscType

DemoUnitAlert

DeviceFullAlert

ErrCancelAlert

ErrOKAlert

ErrOKCancelAlert

exchangeLibraryInterfaceID

fontExtRscType

fontIndexType

fontRscType

formRscType

graffitiReferenceDialog

graffitiReferenceDoneButton

graffitiReferenceDownButton

graffitiReferenceFirstBitmap

graffitiReferenceUpButton

iconType

InfoCancelAlert

InfoOKAlert

InfoOKCancelAlert

launcherBatteryStrID

LowBatteryAlert

LowCradleChargedBatteryAlert

maxCategoryWidthID

menuCommandStrID

MenuRscType

MergeCategoryAlert

MergeCategoryNo

MergeCategoryYes

midiRsc

newNoteFontCmd

newNoteMenuID

newNotePhoneLookupCmd

NewNoteView

NoDataToBeamAlert

NoDataToSendAlert

noteBottomOfPageCmd

noteCopyCmd

noteCutCmd

NoteDeleteButton

NoteDoneButton

NoteDownButton

NoteField

noteFontCmd

NoteFontGroup

noteKeyboardCmd

NoteLargeFontButton

noteMenuID

notePasteCmd

notePhoneLookupCmd

NoteScrollBar

noteSelectAllCmd

noteSeparator

NoteSmallFontButton

noteTopOfPageCmd

noteUndoCmd

NoteUpButton

NoteView

oemVersionID

phoneLookupAddStrID

phoneLookupFormatStrID

phoneLookupTitleStrID

PrivacyWarningAlert

privateRecordInfoAlert

RemoveCategoryAlert

RemoveCategoryNo

RemoveCategoryYes

secEnterPasswordAlert

secEnterPasswordCancel

secEnterPasswordOK

secGotoInvalidRecordAlert

secHideMaskRecordsCancel

secHideMaskRecordsOK

secHideRecordsAlert

secInvalidPasswordAlert

SecLockBitmap

SecLockHeight

SecLockWidth

secMaskRecordsAlert

secShowMaskedPrivatePermanentPassEntryAlert

secShowPrivatePermanentPassEntryAlert

SelectACategoryAlert

strListRscType

strRsc

sysEditMenuAddFepWord

sysEditMenuCopyCmd

sysEditMenuCutCmd

sysEditMenuGraffitiCmd

sysEditMenuID

sysEditMenuKeyboardCmd

sysEditMenuLookupWord

sysEditMenuPasteCmd

sysEditMenuSelectAllCmd

sysEditMenuSeparator

sysEditMenuUndoCmd

sysFatalAlert

sysNetworkProgress01Bitmap

sysNetworkProgress02Bitmap

sysNetworkProgress03Bitmap

sysNetworkProgress04Bitmap

sysNetworkProgress05Bitmap

sysNetworkProgress06Bitmap

systemVersionID

UndoAlert

UndoCancelButton

verRsc

VeryLowBatteryAlert

VeryLowCradleChargedBatteryAlert

WarningCancelAlert

WarningOKAlert

WarningOKCancelAlert