Android Question Whether you can get common properties when customizing a control

LucaMs

Expert
Licensed User
Longtime User
I don't understand the question well, however in the code you can get the common properties, the basic ones that you set in the Designer, from the Map "Props" and from the Label "lbl" (in DesignerCreateView).

(Useful code)
B4X:
For Each Key As String In Props.Values
    Log(Key & TAB & Props.Get(Key))
Next
 
Upvote 0

byz

Active Member
Licensed User
Thank you @LucaMs , I tested the code you gave and found that there are too many nests. At present, it is not as convenient as directly setting custom attributes. (It would be nice if Erel had a public way to access it directly one day)
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Thank you @LucaMs , I tested the code you gave and found that there are too many nests. At present, it is not as convenient as directly setting custom attributes. (It would be nice if Erel had a public way to access it directly one day)
A useful feature that Erel could implement (with great difficulty), could be:

in the Designer, by menu or, even better, a dialog to be displayed with a simple right-click of the mouse, to be able to create a new custom property; it should then be visible in the Designer and should create the line of code "#DesignerProperty: ..."
 
Upvote 0
Top