Sub Class_Globals
Private Root As B4XView
Private xui As XUI
End Sub
Private Sub B4XPage_Created(Root1 As B4XView)
Root = Root1
Root.Color = xui.Color_RGB(245, 247, 250) ' Light background to make the Kbd pop
' 1. Initialize the component and set the event name
Dim myKey As B4XDaisyKbd
myKey.Initialize(Me, "myKey")
' 2. Add it to your parent view (Left, Top, Width, Height)
' Note: If Width/Height are 0, it auto-resolves to its minimum size based on the Size property
myKey.AddToParent(Root, 20dip, 50dip, 48dip, 28dip)
' 3. Customize its properties!
myKey.Text = "ctrl"
myKey.Size = "md"
myKey.Tag = "ctrl_button"
End Sub
' 4. Handle the click event!
Private Sub myKey_Click(Tag As Object)
Log("Keyboard Element Clicked! Tag: " & Tag)
End Sub