From 348e1876d25320e6480f2795c9388b2bc080c743 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sun, 7 Mar 2021 12:16:12 -0500 Subject: text entry, with cursor, but no keyboard --- src/user/rhello/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/user/rhello') diff --git a/src/user/rhello/main.cpp b/src/user/rhello/main.cpp index c92b430..f179317 100644 --- a/src/user/rhello/main.cpp +++ b/src/user/rhello/main.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include #include @@ -26,7 +27,11 @@ void main() { button b(pbl, &onclick); padding pb(b, 2); + entry e(6, 20, "I'm a text entry!\nEventually you will be able to edit me."); + padding pe(e, 2); + dllist wl; + wl.add_front(pe); wl.add_front(pb); wl.add_front(pl); vbox vb(wl); -- cgit v1.2.3