B4J Question DesignerCreateView(Base as Pane, Lbl as Label,...

BPak

Active Member
Licensed User
Longtime User
Where does the Lbl get set?
How to set the Lbl style?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The Label is a placeholder. It is not added to the layout, though you can add it if you like.

It holds the text related properties (these properties are added automatically to all custom views):

SS-2016-02-19_08.05.50.png


For example in AnotherDatePicker I use this single line to copy the style to a different view:
B4X:
dateField.Style = Lbl.Style 'copy the font related style
 
Upvote 0

BPak

Active Member
Licensed User
Longtime User
The Label is a placeholder. It is not added to the layout, though you can add it if you like.

It holds the text related properties (these properties are added automatically to all custom views):

SS-2016-02-19_08.05.50.png


For example in AnotherDatePicker I use this single line to copy the style to a different view:
B4X:
dateField.Style = Lbl.Style 'copy the font related style
So I can put the Lbl settings I want to use into the Text Propertes?
 
Upvote 0

BPak

Active Member
Licensed User
Longtime User
Not sure that I understand. The properties that you add will be added to the Custom View properties.
What is entered into the TextProperties in the Designer Properties appears in the Lbl properties.
Tried doing this with your AnotherDatePicker example and found out how it works.
 
Upvote 0
Top