summaryrefslogtreecommitdiff
path: root/ide
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2018-03-17 21:30:46 +0000
committerMatthias Melcher <fltk@matthiasm.com>2018-03-17 21:30:46 +0000
commit0c8ae29b79c0391c9ff6ac806231e2dde890e55a (patch)
treed32497b2944e8de027cdb54a8362cd7958442ee8 /ide
parent6bf8fe983dbde42b10b1d864ab12077ba155685f (diff)
Android: added text clipping in all its uglyness.
Next: intersetcing a complex clipping region with a rectangle git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12769 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'ide')
-rw-r--r--ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx b/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx
index 32aad9294..6fc009043 100644
--- a/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx
+++ b/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx
@@ -68,9 +68,10 @@ int main(int argc, char **argv)
btn2 = new Fl_Button(10, 10, 480, 100, "-@circle;-");
btn2->color(FL_BLUE);
- btn = new MyButton((win->w()-280)/2, 200-45, 280, 80, "Hello, Android!\nWhere were you?");
+ btn = new MyButton((win->w()-280)/2, 200-45, 280, 80, "Hello, Android!\nWhere have you been so long?");
btn->color(FL_LIGHT2);
btn->labelsize(30);
+ btn->align(FL_ALIGN_CLIP);
btn->callback(
[](Fl_Widget*, void*) {
Fl::add_timeout(1.0, hello_cb, NULL);