[Next] [Previous] [Up] [Top] [Contents] [Index]

12.4 Window Procedures

12.4.10 EditProc


This proc is called for non-automatic editing. The second parameter is a command code, one of the following:

	enum {
		edit_Null,		/* Set pasteType and other flags */
		edit_Cut,		/* User actions: */
		edit_Copy,
		edit_Paste,
		edit_Clear,
		edit_Duplicate,
		edit_SelectAll,
		edit_Undo,		
		edit_Changed,		/* Auto-editor has made changes */
		edit_EnableItems,	/* Enable/Diable Edit menu items */
		edit_Import,		/* Two more user actions: */
		edit_New
	};
 

The last parameter is currently only used by the edit_EnableItems command, in which case it is a handle to the Edit menu.

The edit_Null message is sent before any edit action (except typing). Otherwise, for text, the EditProc is only called for edit_Changed if automatic editting is on. For lists, it is called for all but edit_EnableItems (unless noAutoList is on, in which case this message is sent as well).


PSYX Programmer's Manual - 24 AUG 95
[Next] [Previous] [Up] [Top] [Contents] [Index]

Generated with CERN WebMaker