Dear Fellow Palm Developer:

Thank you for considering supporting the pedit family of editors from your palm application.

This will explain to you how to access pedit and/or pedit32 memos either directly from you application or by issuing a sysAppLaunchCmdGoTo launch code to one of the pedits.

There are four pedits: pedit, pedit32, peditPro, and peditLight [please spell them exactly as given here - please do not capitalize the starting "p"].

pedit = a 100% MemoPad compatible text editor which uses memoPad's MemoDB database.

pedit32 = a 0% MemoPad compatible text editor which uses its own Memo32DB database.

peditLight = pedit for palms with limited RAM [it is NOT the poor man's pedit!].

peditPro = pedit and pedit32 in one application. When peditPro is in peditMode, it behaves 100% as pedit. When peditPro is in pedit32Mode, it behaves 100% as pedit32.


/********************** ADD THESE TO YOUR HEADER FILES *********************/
#define memo04DBName		"MemoDB"
#define memo32DBName		"Memo32DB"

#define Memo04DBCreator		sysFileCMemo // = 'memo'
#define Memo32DBCreator		'pn32'

#define pedit04Creator		'pn10'
#define pedit32Creator		'pn32'
#define peditProCreator		'pnPr'
#define peditLightCreator	'pnLi'

// with this launch code. pedit starts up in ListView
typedef enum {
	myAppCmdGoToListView = sysAppLaunchCmdCustomBase
} MyAppCustomActionCodes;

/******************** EOF ADD THESE TO YOUR HEADER FILES *******************/

When you use sysAppLaunchCmdGoTo, please see myGoToPedit.c for a self-contained and working example.

EXAMPLE for using myAppCmdGoToListView.

{
	DmSearchStateType searchState;
	UInt16 cardNo;
	LocalID dbID;
	
	if (DmGetNextDatabaseByTypeCreator (true, &searchState, sysFileTApplication, peditProCreator, true, &cardNo, &dbID) == errNone && dbID)
		{SysUIAppSwitch (cardNo, dbID, myAppCmdGoToListView, NULL);}
}

Please contact me if you need more assistance.


Sincerely,
Paul Nevai

E-mail: 2me@PaulComputing.com
Web:    www.paulcomputing.com