mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
36 lines
507 B
C++
36 lines
507 B
C++
#include "PullText.h"
|
|
|
|
|
|
|
|
PullText::PullText()
|
|
{
|
|
CtrlLayout(*this, "Window title");
|
|
|
|
bt1 <<= THISBACK(OnButton1);
|
|
bt2 <<= THISBACK(OnButton2);
|
|
}
|
|
|
|
|
|
|
|
void PullText::OnButton1(void)
|
|
{
|
|
String qtf;
|
|
qtf << txText1.GetQTF(CHARSET_ISO8859_1);
|
|
//qtf << "[a NRE PARAGRAPH: &";
|
|
DUMP(qtf);
|
|
txText1.SetQTF(qtf);
|
|
|
|
}
|
|
|
|
void PullText::OnButton2(void)
|
|
{
|
|
RichText clip=txText2.CopyText(0,10000);
|
|
txText2.Clear();
|
|
txText2.PasteText(clip);
|
|
}
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
PullText().Run();
|
|
}
|
|
|