F Firpas Active Member Licensed User Longtime User Jun 6, 2018 #1 Hi to everybody In this post: https://www.b4x.com/android/forum/threads/modal-form-with-scrollable-text.42772/#post-259024 Erel gives as a solution to use a readonly TextArea. But how to do it?? I can do it disabled (Enabled = False) but i dont want change the aspect. Thanks in advance Last edited: Jun 6, 2018
Hi to everybody In this post: https://www.b4x.com/android/forum/threads/modal-form-with-scrollable-text.42772/#post-259024 Erel gives as a solution to use a readonly TextArea. But how to do it?? I can do it disabled (Enabled = False) but i dont want change the aspect. Thanks in advance
LucaMs Expert Licensed User Longtime User Jun 6, 2018 #2 I would try so: Code: Sub taName_TextChanged (Old As String, New As String) If New <> Old Then taName.Text = Old End If End Sub taName is a TextArea, of course. Upvote 0
I would try so: Code: Sub taName_TextChanged (Old As String, New As String) If New <> Old Then taName.Text = Old End If End Sub taName is a TextArea, of course.
F Firpas Active Member Licensed User Longtime User Jun 6, 2018 #3 It isn't a solution for me because the content must be changed by code. I only want I want to prevent user intervention Upvote 0
It isn't a solution for me because the content must be changed by code. I only want I want to prevent user intervention
LucaMs Expert Licensed User Longtime User Jun 6, 2018 #4 Firpas said: It isn't a solution for me because the content must be changed by code. I only want I want to prevent user intervention Click to expand... Use a global boolean variable to check if the content was changed by code. Code: Sub taName_TextChanged (Old As String, New As String) If Not(mChangedByCode) Then If New <> Old Then taName.Text = Old End If End If End Sub mChangedByCode = True taName.Text = "xyz" Upvote 0
Firpas said: It isn't a solution for me because the content must be changed by code. I only want I want to prevent user intervention Click to expand... Use a global boolean variable to check if the content was changed by code. Code: Sub taName_TextChanged (Old As String, New As String) If Not(mChangedByCode) Then If New <> Old Then taName.Text = Old End If End If End Sub mChangedByCode = True taName.Text = "xyz"
F Firpas Active Member Licensed User Longtime User Jun 6, 2018 #6 I need to scroll. I've seen the property "Editable" as Boolean in Javafx Scene Builder, but it not exist in the internal designer. It may be possible with some method of Java Object? Attachments Sin título-1.png 63.6 KB · Views: 505 Upvote 0
I need to scroll. I've seen the property "Editable" as Boolean in Javafx Scene Builder, but it not exist in the internal designer. It may be possible with some method of Java Object?
F Firpas Active Member Licensed User Longtime User Jun 6, 2018 #7 SOLVED I`ve found the solution: Code: Sub asJavaObject(j As JavaObject) As JavaObject Return j End Sub asJavaObject(TxtObjPlan).RunMethod("setEditable", Array(False)) Upvote 0
SOLVED I`ve found the solution: Code: Sub asJavaObject(j As JavaObject) As JavaObject Return j End Sub asJavaObject(TxtObjPlan).RunMethod("setEditable", Array(False))
LucaMs Expert Licensed User Longtime User Jun 6, 2018 #8 Dim jo As JavaObject jo = TextArea1 jo.RunMethod("setEditable", Array As Object(False)) Upvote 0
F Firpas Active Member Licensed User Longtime User Jun 6, 2018 #9 Ok It is the same i posted Thank you Upvote 0
LucaMs Expert Licensed User Longtime User Jun 6, 2018 #10 I know, we were writing at the same time, this is the reason for my... Upvote 0