Upravit

Sdílet prostřednictvím


Balloon.Callback Property

Definition

Returns or sets the name of the procedure to run from a modeless balloon.

public:
 property System::String ^ Callback { System::String ^ get(); void set(System::String ^ value); };
public string Callback { get; set; }
member this.Callback : string with get, set
Public Property Callback As String

Property Value

Remarks

The procedure you specify for the Callback property must be written to receive either two or three arguments, depending on what you use the property with. If you use the Callback property with a wizard, you must write the procedure to receive two arguments: a long integer that represents the MsoBalloonButtonType value of the button that the user clicked, and a long integer that uniquely identifies the balloon. If you use the Callback property with a modeless balloon, you must write the procedure to receive three arguments: the Balloon object that called the procedure; a long integer that represents the msoBalloonButtonType value of the button the user clicked; and a long integer that uniquely identifies the balloon that called the procedure, as denoted in the balloon’s Private property.

The callback procedure must contain at least one condition under which the Close() method is applied to the Balloon object that is passed to it; otherwise, the modeless balloon cannot be dismissed.

If you specify a procedure that is stored in a separate class module, you must include the module name in the value assigned to the Callback property (for example, "Sheet1.MyCallback).

Applies to