The text displayed when there is no image or control part.

Usage

Set_Property(OLECtrlEntID, "OLE.Caption", Text)

Values

Text can contain anything. For example: "No Image Available"

Default: ""

Remarks

The Caption property can be used to display text in the center of the picture control when there is no image or control part. This can be useful for clarifying to the user that there is no picture loaded or available. Another use is to prompt the user to drag and drop files to the picture control. In any case, it is important to understand that the caption only appears when the Image and Control Part properties are not set.

The caption is displayed using the current Font and CaptionColor property values.

Use @TMs or CRLFs as line breaks.

Example

// Notify the user when there is no picture available 
Set_Property(@Window:".OLE_PICTURE", "OLE.Caption", "No":@TM:"Picture":@TM:"Available"); 

// Prompt the user to drag files to the picture control 
Set_Property(@Window:".OLE_PICTURE", "OLE.Caption", "Drag and drop image files here.");

See Also

FontCaptionColor

  • No labels