G gerredtor Active Member Licensed User May 17, 2016 #1 Hello, i search a MARQUEE funktion for a B4i Label
Erel B4X founder Staff member Licensed User Longtime User May 17, 2016 #2 iOS does it automatically if the text needs to be truncated. Upvote 0
Pendrush Well-Known Member Licensed User Longtime User May 17, 2016 #3 When I have long text in a label (single line), text is truncated, no scrolling effect. I also need marquee effect for label. Upvote 0
When I have long text in a label (single line), text is truncated, no scrolling effect. I also need marquee effect for label.
Erel B4X founder Staff member Licensed User Longtime User May 18, 2016 #4 Example of a regular label with long text: Upvote 0
Pendrush Well-Known Member Licensed User Longtime User May 18, 2016 #5 Can I scroll truncated text somehow, from right to left? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 18, 2016 #6 No. You can however use a TextField instead and make it not editable with: B4X: Dim no As NativeObject = textfield no.SetField("editable", False) TextField does support scrolling. Upvote 0
No. You can however use a TextField instead and make it not editable with: B4X: Dim no As NativeObject = textfield no.SetField("editable", False) TextField does support scrolling.
Pendrush Well-Known Member Licensed User Longtime User May 19, 2016 #7 I need automatic scroll like this in Android B4X: Dim r As Reflector r.Target = Label r.RunMethod2("setLines", 1, "java.lang.int") r.RunMethod2("setHorizontallyScrolling", True, "java.lang.boolean") r.RunMethod2("setEllipsize", "MARQUEE", "android.text.TextUtils$TruncateAt") r.RunMethod2("setHorizontalFadingEdgeEnabled", True, "java.lang.boolean") r.RunMethod2("setMarqueeRepeatLimit", "-1", "java.lang.int") r.RunMethod2("setSelected", True, "java.lang.boolean") Upvote 0
I need automatic scroll like this in Android B4X: Dim r As Reflector r.Target = Label r.RunMethod2("setLines", 1, "java.lang.int") r.RunMethod2("setHorizontallyScrolling", True, "java.lang.boolean") r.RunMethod2("setEllipsize", "MARQUEE", "android.text.TextUtils$TruncateAt") r.RunMethod2("setHorizontalFadingEdgeEnabled", True, "java.lang.boolean") r.RunMethod2("setMarqueeRepeatLimit", "-1", "java.lang.int") r.RunMethod2("setSelected", True, "java.lang.boolean")
Erel B4X founder Staff member Licensed User Longtime User May 19, 2016 #8 There is no such feature in the native iOS label. Upvote 0