PA_UpdateEditMenu

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_UpdateEditMenu (undoString; undo; redo; cut; copy; paste; clear; selectAll)

ParameterTypeDescription
undoStringchar *New string for the "Undo" item
undocharEnable (1)/Disable (0) the "Undo" item
redocharEnable (1)/Disable (0) the "Redo" item
cutcharEnable (1)/Disable (0) the "Cut" item
copycharEnable (1)/Disable (0) the "Copy" item
pastecharEnable (1)/Disable (0) the "Paste" item
clearcharEnable (1)/Disable (0) the "Clear" item
selectAllcharEnable (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


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next