version 2003
PA_UpdateEditMenu (undoString; undo; redo; cut; copy; paste; clear; selectAll)
Parameter | Type | Description | |
undoString | char * | New string for the "Undo" item | |
undo | char | Enable (1)/Disable (0) the "Undo" item | |
redo | char | Enable (1)/Disable (0) the "Redo" item | |
cut | char | Enable (1)/Disable (0) the "Cut" item | |
copy | char | Enable (1)/Disable (0) the "Copy" item | |
paste | char | Enable (1)/Disable (0) the "Paste" item | |
clear | char | Enable (1)/Disable (0) the "Clear" item | |
selectAll | char | Enable (1)/Disable (0) the "Select all" item |
Description
The routine PA_UpdateEditMenu forces the "Edit" menu to update, using the new values passed.
Pass the new value of the "Undo" item in undoString.
All other parameters change the state of each corresponding item. If the parameter is 0, the item is disabled; if it is 1, the item is enabled.
Depending on default settings or on previous calls to PA_UsePStrings or PA_UseCStrings, undoString must be a Pascal or an ANSI C string.
NOTE
This routine should only be used from within an external area. It can work without any area, but it was not written for this purpose and the developer should not use this routine outside an external area.
Example
Disable all items of the Edit menu except "Undo".
PA_UpdateEditMenu("Undo disable this menu", 1, 0, 0, 0, 0, 0, 0) ;
See Also
No reference.
Error Handling
PA_GetLastError always returns eER_NoErr