RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStandardMenuItem.CMTextchanged Method

Responds when this menu item's caption changes.

Pascal
procedure CMTextchanged(var Message: TMessage); message CM_TEXTCHANGED;
C++
__fastcall CMTextchanged(TMessage Message);

This method is called automatically in response to Windows messages containing a notification that the text of this menu item has changed. 

Message represents the Windows message that notifies this menu item of a change to its text. 

CMTextchanged recalculates the string it displays when the menu item is not underlining its accelerator key. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!