B4A Library [custom view] AutoTextSizeLabel

Status
Not open for further replies.

BarryW

Active Member
Licensed User
Longtime User

How can i get this using Panel.getview(0)?
 

iCAB

Well-Known Member
Licensed User
Longtime User
Hi All

So far I have been doing all layouts by code, so this is my first time using the designer and Custom views.
I am just wondering why i am unable to capture the click event, even though the label is enabled in the designer.

B4X:
Private Sub AutoTextSizeLabel1_CLick
    Log("not trigerred by default ")
End Sub

For the above to work, I have to add the line below in DesignerCreateView
B4X:
lbl.Initialize("AutoTextSizeLabel1")

I am wondering if there is a better way perhaps using "Initialize"

Thanks
iCAB
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…