ultimatepp/uppdev/PullText/main.cpp
cxl 351994a6cc Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

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();
}