B4J Question [ABMaterial] ABMLabel click event

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi

Could i add click event to a ABMLabel !? And how to code it, I want to open a Modalsheet when i click on the ABMLabel.
 

alwaysbusy

Expert
Licensed User
Longtime User
From the cases in the feedback app (and the README files in the zip):

B4X:
'[NEW] ABMLabel can have a Clicked event
'---------------------------------------
'This can come in handy if you just want the user to be able on a label.

'Usage:

  Dim lblPerson As ABMLabel
   lblPerson.Initialize(page, "lblPerson", "{NBSP}", ABM.SIZE_PARAGRAPH, True, "")
   lblPerson.SetCursor(ABM.CURSOR_POINTING)
   lblPerson.Clickable = True
   CardCont.Cell(2,2).AddComponent(lblPerson)

'Event:

  Sub lblPerson_Clicked(Target As String)
    ' do your stuff
  End Sub
 
Upvote 0
Top