PictureSelected

Description

Occurs when the user selects a picture in the RichTextEdit control by clicking it.

Event ID

Event ID

Objects

pbm_renpictureselected

RichTextEdit

Arguments

None

Returns

Long. Return code choices (specify in a RETURN statement):

Examples

Example 1

When the user clicks a picture in a RichTextEdit control rte_1, the picture is selected. This code for the PictureSelected event selects the rest of the contents, copies the contents to a string with RTF formatting intact, and pastes the formatted text into a second RichTextEdit rte_2:

string ls_transfer_rtf


This.SelectTextAll()

ls_transfer_rtf = This.CopyRTF()


rte_2.PasteRTF(ls_transfer_rtf)

See also