PictureSelected event
Description
Occurs when the user selects a picture in the RichTextEdit
control by clicking it.
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_renpictureselected |
RichTextEdit |
Parameters
None
Return Values
Long. Return code choices (specify in
a RETURN statement):
-
0 Continue
processing
Examples
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:
|
1 |
string ls_transfer_rtf |
|
1 |
|
1 |
This.SelectTextAll() |
|
1 |
ls_transfer_rtf = This.CopyRTF() |
|
1 |
|
1 |
rte_2.PasteRTF(ls_transfer_rtf) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest