If you want to change the property in the code, you need to add two routines:
B4X:
Public Sub setMultiLine(MultiLine As Boolean)
mMultiLine = Multiline
'your code if needed
End Sub
Public Sub getMultiLine As Boolean
Return mMultiline
End Sub
mMultiLine is a local variable in the class holding the property.
You need to be clear on what you want!
Do you want a MultiLine property or a SingleLine propety?
Knowing that one is the opposite of the other.
I find it strange, it seems, that you want a SingleLine property but you ask for a MultiLine property !!??
Why not define directly a SingleLine propety?
I created custom control, with edit control, that have a parameter that can setting the single line o multiline (are opposite).
but I see that it's impossibile to read the property inside the standard.
Add the custom property as suggested.
In my previous post, I was surprised that define a MultiLine property and then inside the code you transform into a SingleLine property.
To have a consitency with an EditText object, define s SinglLine property.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.