Board index » cppbuilder » Copy selected text
Ola
CBuilder Developer |
Copy selected text2006-08-16 07:49:22 PM cppbuilder98 In the application I am creating I want to implement cut, copy and paste functionality. The application contains many different fields e.g. TextEdit, MaskEdit, ComboBox, Grid. I want to copy the selected text (highlighted) in the application independent of which field that contains the selected text. My intention is to place the selected text on the clipboard and from there use the text. There exist functions to perform this for the individual fields (CopyToClipboard) but I don't know which field that currently is selected. How can I receive this information? Does there exist a basic object that the more specific field objects inherit from, on which the copy operation can be performed? An answer would be greatly appreciated! Best Regards /Ola |