Skip to content

Message - Cm_Menu

Identifies the message that is sent when users press the Enter key on the item

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Parameters

Parameter Type Description
iItem Integer The item number (0-based)

Syntax

Property Integer Message
Access Type Syntax
Read Access: Get Message to IntegerVariable
Write Access: Set Message to IntegerVariable/Value

Description

The Message property identifies the message that is sent when users press the Enter key (kEnter) on the item. Each item has a message property. The message will be sent to the current object. If that object does not understand the message, the system will use the normal delegation rules to delegate the message to another object.

Set Message 3 to msg_None

Normally the message property of an item is set by the on_item command or the add_item and insert_item messages. The message property is usually used to get the ID of the message and send it as a parameter to another message.

Send Process (Message(Self, Current))