Unit 'mseact' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#msegui]

tcustomaction.caption

When this action is assigned to a client's action property (e.g. tbutton.action or tmenuitem.action), the client's caption, imagelist, imagenr, imagecheckedoffset, colorglyph, color, hint, shortcut, tag, group and onexecute, as well as the as_disabled, as_invisible, as_checked and as_default members of state, are kept synchronized with this action

Declaration

Source position: mseact.pas line 266

public property tcustomaction.caption : captionty
  read getcaption
  write setcaption;

Description

When this action is assigned to a client's action property (e.g. tbutton.action or tmenuitem.action), the client's caption, imagelist, imagenr, imagecheckedoffset, colorglyph, color, hint, shortcut, tag, group and onexecute, as well as the as_disabled, as_invisible, as_checked and as_default members of state, are kept synchronized with this action — as long as the corresponding as_local* member of the client's own state is False. Editing one of those properties directly on the client sets its as_local* member to True automatically, detaching it from the action for that property; setting it back to False restores the action's value.


Documentation generated on: 2026-10-03