SetSelTextBuf (C++)
Description
This example inserts the contents of temp_string at the current location of the cursor.
Code
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
const String Path = L"../readme.txt";
Memo1->Lines->LoadFromFile(Path);
}
void __fastcall TForm1::Button1Click(TObject *Sender)
{
wchar_t temp_string[20] = L"I am now here";
Memo1->SetSelTextBuf(temp_string);
}
Uses
- Vcl.StdCtrls.TCustomEdit.SetSelTextBuf ( fr | de | ja )