mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
16 lines
330 B
C++
16 lines
330 B
C++
#include "RichTextCtrlSelection.h"
|
|
|
|
RichTextCtrlSelection::RichTextCtrlSelection()
|
|
{
|
|
CtrlLayout(*this, "Window title");
|
|
a <<= "This is some text";
|
|
b <<= "This is another text";
|
|
|
|
a.WhenLeftClick = [=] { b.ClearSelection(); };
|
|
b.WhenLeftClick = [=] { a.ClearSelection(); };
|
|
}
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
RichTextCtrlSelection().Run();
|
|
}
|